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="mag.product.info.recommendations" template="MyModule_Catalog::product/view/recommendations.phtml">
    <block class="MagentoFrameworkViewElementTemplate"
           name="test" group="recommendations">
        <arguments>
            <argument name="title" translate="true" xsi:type="string">Test</argument>
        </arguments>
    </block>
    <block class="MagentoFrameworkViewElementTemplate"
           name="recommendations" template="MyModule_Catalog::product/view/recommend.phtml" group="recommendations">
        <arguments>
            <argument name="title" translate="true" xsi:type="string">Recommended Products</argument>
        </arguments>
    </block>
</block>

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

<move element="product.info.upsell" destination="mag.product.info.recommendations" />

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:

app/design/frontend/Smartwave/porto_child/Magento_Catalog/layout/catlog_category_view_selectable_9_TEST.xml

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <update handle="catalog_category_view_selectable_9_TEST"/>
    <body>
        <css src="https://magento.stackexchange.com/css/test.css" />
    </body>
</page> 

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.

appcodeVendorExtensionviewadminhtmllayoutdefault.xml

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <head>
        <css src="https://magento.stackexchange.com/Vendor_Extension::css/adminhtml.css"/>
    </head>
</page>

appcodeVendorExtensionviewadminhtmlwebcssadminhtml.css

.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.