how to add the breadcrumbs to a checkout page

how to add the breadcrump in the checkout page using the extension

first we need to create a new extension and write the extend wrap method
next find the view of the check out page in source file using the class
and add the breadcrumbs function.

getBreadcrumbPages: function () {

var breadcrumbs = [ ];

                    try {

                        breadcrumbs.pop( { text: ‘Checkout’, href: ‘/checkout’ });
// if we need to add the one more breadcrumb field here we can add using push method
pop method is used remove the breadcrumb field //

                        console.log(this);

                    }

                    catch (e) {

                        Library.errorHandler(‘Dashboard.View’, ‘getBreadcrumbPages’, e);

                    }

                    return breadcrumbs;

                },

         });
in this we need to find the correct view otherwise it will not work
while finding the view be carefull

after that we can design that according to requirement

Leave a comment

Your email address will not be published. Required fields are marked *