How to trigger a minicart update after adding to cart magento 2

you need to set up a sections.xml inside etc/frontend of your module that tells Magento which sections to update for a given Ajax call. Here is an example; After my Ajax call has finished to [frontName]/[ActionPath]/[ActionName] Magento makes another call to /customer/section/load passing the sections to load. By default it requests any messages but if you have… Continue reading How to trigger a minicart update after adding to cart magento 2

Published
Categorized as Magento

How get order preview on success page Magento 2

1.Override block Create the file app/code/Vendor/Module/etc/di.xml and add the following: Create the file app/code/Vendor/Module/Block/Success.php and add the following: Override template Create the file app/code/Vendor/Module/view/frontend/layout/checkout_onepage_success.xml and add the following: Create the file app/code/Vendor/Module/view/frontend/templates/checkout/success.phtml and add the following: TIP You probably want to refresh your checkout/success page a lot, so to tackle that problem, go to file app/code/Magento/Checkout/Controller/Onepage/Success.php and change at line 22.… Continue reading How get order preview on success page Magento 2

Published
Categorized as Magento

Magento Extension Development- Simple Method

Magento Extension Development Magento consists of different modules for different purposes . Module is a structural element of Magento 2. A module can be created externally or from reusable modules inside the vendor/folder.The location of the new module created is in app/code/(new_module)/.The main use of the module is for customization in Magento. Steps for creating… Continue reading Magento Extension Development- Simple Method

Scriptable Cart

A scriptable cart is used to make the customisation on the cart page. For example, if we are created a new price level for items and trying to strike through on the website will work except for the Cart page. On the cart page, it will show the default price and strikethrough. But Using a… Continue reading Scriptable Cart

Display the item name based on subsidiary

The item name will be displayed based on the subsidiary of the logged in customer. If the customer subsidiary is AU and NZ, use the value from the field “Sales Description”.If the customer subsidiary is USA , use the value from the field “American Description”For all other subsidiary, use the default field value.If no value… Continue reading Display the item name based on subsidiary