magento2 – Magento 2.3 Move upsell products into custom tab

This is my current code in catalog_product_view.xml, which shows a recommendations and test tab. The recommendations tab is fine as everything i need to render is within the phtml.

<referenceContainer name="content.aside">
<block class="MagentoCatalogBlockProductViewDescription" name="" template="MyModule_Catalog::product/view/recommendations.phtml">
    <block class="MagentoFrameworkViewElementTemplate"
           name="test" group="recommendations">
            <argument name="title" translate="true" xsi:type="string">Test</argument>
    <block class="MagentoFrameworkViewElementTemplate"
           name="recommendations" template="MyModule_Catalog::product/view/recommend.phtml" group="recommendations">
            <argument name="title" translate="true" xsi:type="string">Recommended Products</argument>

However for the test tab, i want to move upsell products into there. Ive tried a simple move:

<move element="" destination="" />

But it never ends up inside the tab because its trying to load a template which i dont need. Ive also tried removing the block and recreating it the way it is done in core magento, with no luck.
I just need the upsell products moved inside of this test tab.

magento2 – Magento 2.3.4 new layout update doesnt work

I have an issue with the new Magento layout update xml feature. I added a custom layout update file to change a category. It shows up in the Magento backend, but when I select it, nothing changes on the frontend. Anyone that may know the solution?

I’m aware of the issue with porto theme & the new layout update feature, but that issue is already solved. It’s just that the xml changes don’t appear on the frontend.

The layout file content:


<?xml version="1.0"?>
<page xmlns:xsi="" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <update handle="catalog_category_view_selectable_9_TEST"/>
        <css src="" />

The category config:

enter image description here

magento2 – The stock item was unable to be saved on freshly installed Magento v2.4.0

I installed the sample data ok – but when I try to add a new product, or even save changes to an existing product this happens:
enter image description here

In the exception.log I get:
(2020-09-28 10:00:44) main.CRITICAL: The stock item was unable to be saved. Please try again. {“exception”:”(object) (MagentoFrameworkExceptionCouldNotSaveException(code: 0): The stock item was unable to be saved. Please try again. at /var/www/html/magento/vendor/magento/module-catalog-inventory/Model/Stock/StockItemRepository.php:187, MagentoFrameworkExceptionLocalizedException(code: 0): Could not ping search engine: No alive nodes found in your cluster at /var/www/html/magento/vendor/magento/module-elasticsearch/Model/Adapter/Elasticsearch.php:122)”} ()

I did install the latest version of elasticsearch and it’s up and runnning on localhost.
I can even telnet into it.

I’ve heard someone say disable MSI – would that help? If so how do I do that please?

Thanks In Advance!

magento2 – how can i change Admin custom menu icon in magento 2?

Try to this way ..

You need to create adminhtml.css file to set our custom style and link for icon and replace icon.png link with your icon URL.

we have to link our CSS file by creating default.xml file at following path.


<?xml version="1.0"?>
<page xmlns:xsi="" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
        <css src=""/>


.admin__menu .level-0.item-menu_id > a:before {
    content: url('../images/icon.png');
li#menu-vendor_extension-menu_id > a > span {
    display: none;

then run some commands

rm -rf var/view_preprocessed/*
rm -rf pub/static/adminhtml/*
php bin/magento setup:static-content:deploy

magento2 – Magento Catalog price including tax is showing wrong calculation

Magento catalog price showing price excluding tax but all the settings are inclusive of tax.

My product price is Inclusive of Taxes; Say 1000

In Calculation Settings -> Catalog Price = Including Tax

In Price Display Settings -> Display Product Prices In Catalog = Inclusive Tax

But the price in catalog shows deducting tax amount from the price mentioned in Product from admin panel.

Very strange, if I choose to show inclusive and exclusive both. I get both prices as same on frontend.

Also, if I choose, In Calculation Settings -> Catalog Price = Exclusive.

Frontend shows price as correct as 1000 but within few hours if I visit the page again. It shows 1000 – taxes.

I these steps when I try, I am cleaning the cache properly, even generating static files again.