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
Category: Ecommerce-Web- App-Development
All articles related to Website development
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
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
Special price workflow
A user event script of the workflow to update the price of items in a sales order when an order is placed on the website. When an order is created from a website, the online price of the items is taken. We need to consider the special price if the item is special. Special price… Continue reading Special price workflow
Error : ENOSPC : system limit for number of file watchers reached
The error arised when running local server. solution:Enter the following command to resolve this issue: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
Einstein Bot plugin
Add the Einstein ChatBot for the website
Login as Customer Using Employee Login for Webstore
feature to “LOGIN AS CUSTOMER” for employees
Fast Order Entry
To add a quick add in the shopping cart page.In the shopping cart page, there will be quick to add row.By adding item code or search keyword in the input field and by clicking add to cart button it will be added to the shopping cart.The required time and solution is added below. Requirement Need… Continue reading Fast Order Entry