How to get step name on checkout page in magento 2?

You can use the Magento_Checkout/js/view/progress-bar component or Magento_Checkout/js/model/step-navigator componen (used by progress-bar) inside your custom block template/component. Using progress-bar: Using step-navigator: or:

Published
Categorized as Magento

How to add a new step in Checkout page

Step 1: Create the .js file implementing the view model.Create the checkout-login-step.js file under Mageplaza/HelloWorld/view/frontend/web/js/view directory.Basically, we need step_code, step_title, order and the condition that allows to display this step. Here is the code (Read code comment to get more info) define([‘ko’,‘uiComponent’,‘underscore’,‘Magento_Checkout/js/model/step-navigator’,‘Magento_Customer/js/model/customer’],function (ko,Component,_,stepNavigator,customer) {‘use strict’;/*** check-login – is the name of the component’s .html template*/return… Continue reading How to add a new step in Checkout page

How to add/remove links on my account navigation magento 2?

Add new layout handle to one of places: If creating new module: VendorName/ModuleName/view/frontend/layout/customer_account.xml If creating new theme, 2 similar layout handles should be created to declare removal of each block separately: app/design/frontend/VendorName/themeName/Magento_Wishlist/layout/customer_account.xml (and similar layout for billing agreement module) Layout handle content:

Published
Categorized as Magento

Trigger Proceed to checkout button in Magento 2

Here you need to build a module in which you need to use event ‘controller_action_predispatch_checkout_index_index’. Create registration.php Create events.xml under etc/frontend directory Create CheckShoppingCartObserver.php file under Observer directory. namespace Module\Customize\Observer; use Magento\Framework\Event\ObserverInterface; class CheckShoppingCartObserver implements ObserverInterface{protected $_request;

Published
Categorized as Magento

Add static content in Magento Checkout address form

These are the steps: Find the Magento core form field Knockout template:vendor/magento/module-ui/view/frontend/web/templates/form/field.htmlCopy the file to your theme:app/design/frontend/Inchoo/[Theme_Name]/Magento_Ui/web/templates/form/field.htmlAt the bottom of the file, create the Knockout if in order to check where you wish to add that custom text.For example, if you wish to add something after the Last Name input, you will add this: <!–… Continue reading Add static content in Magento Checkout address form

Published
Categorized as Magento

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

Surcharge Fee for Credit Card Payment in magento2

If you would just like to add the 3.5% surcharge without showing it as a separate component you could hook into the event: sales_quote_save_before and sales_quote_address_save_before and write code to add 4.5% surcharge to quote and address grand total if $quoteObject->getPayment()->getMethod() == ‘cc’ Here are the steps I would have followed to implement the above… Continue reading Surcharge Fee for Credit Card Payment in magento2

Total Workflow of ShopVOX

Total Workflow of ShopVOX DashBoard Warning Messages are highlighted in red for immediate attention Sales leads Sales leads can be the starting point for your sales process. You can also start from a Quote as well. The importance of a sales lead is collecting all the information needed to generate a quote. A typical Sales… Continue reading Total Workflow of ShopVOX