Tuesday 27 August 2019

how to remove estimate shipping and tax in magento 2

checkout_cart_index.xml
<referenceBlock name="checkout.cart.shipping">
<arguments>
<argument name="jsLayout" xsi:type="array">
<item name="components" xsi:type="array">
<item name="block-summary" xsi:type="array">

<!-- My custom part: -->
<item name="config" xsi:type="array">
<item name="componentDisabled" xsi:type="boolean">true</item>
</item>

</item>
</item>
</argument>
</arguments>
</referenceBlock>



===================================
cart/shipping.phtml

<div class="title" data-role="title">
    <strong id="block-shipping-heading" role="heading" aria-level="2">
        <?php / @escapeNotVerified / echo $block->getQuote()->isVirtual() ? _('Estimate Tax') : _('Estimate Shipping and Tax') ?>
    </strong>
</div>

Friday 23 August 2019

How to upgrade magento 2.X to 2.X?

Step 1: Access Your Server via SSH

You need to connect your server via SSH.

Step 2: Navigate to the Magento 2 Root Directory

Once your SSH connection is up, you will need to move to your target application folder. In that application folder, you will find the public_html folder which is the root directory of Magento 2.

Step 3: Upgrade Commands

composer require magento/product-community-edition 2.1.9 --no-update

composer update
rm -rf var/di var/generation
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
php bin/magento cache:clean
php bin/magento cache:flush
php bin/magento indexer:reindex