Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

How to edit add to cart button in service portal?

Rinty
Giga Contributor

In service portal, when I click on "add to cart" button, it gives me two option. one is "Catalog Home" and another is "View Cart". I want to take off "Catalog Home" button and put another button in there called "Continue shopping" which will redirect user to the sc_cat_item_guide. Can someone please help me with that?

Clear instruction with steps please. I am not familiar with service now.

Thank you!

1 ACCEPTED SOLUTION

Rinty
Giga Contributor

Oleg,

I have done this and still it's not mapping to the sc_cat_item_guide. Can you please help me with it? 

 


spModal.open({
      message: i18n.getMessage('Items have been added successfully'),
      size: 'sm',
      backdrop: 'static',
      keyboard: false,
      noDismiss: true,
      buttons: [
         {label: i18n.getMessage('Continue Shopping'), cancel:true},
         {label: i18n.getMessage('View Cart'), primary:true}
       ]
           }).then(function() {
               $location.search("id=sc_cart");
           }, function() {
           $location.search("id=sc_cat_item_guide");
              })

           });
   }

View solution in original post

10 REPLIES 10

You are welcome!