Change page link for View Cart button

Khanna Ji
Tera Guru

Hi All,

Does anybody know how to change the URL link for View Cart button? If you look at below screenshot, see the status below its, redirecting me to sc_cart but I want to redirecting to a custom page which I built.

Any idea where this setting/code is available? I have already cloned the OOTB Header widget so I can update the widget code.

1 ACCEPTED SOLUTION

Code is in Anguar ng template & this is that template : small_shopping_cart.html

View solution in original post

7 REPLIES 7

Siddhnath Pande
Mega Guru

Hey,

For this, cart widget it should be cloned so that you can change some code.

If you open this cloned widget you will find the code in client script something like this in below image

find_real_file.png

This image code is of another widget but almost same okay.

So now you have find this & in line 58 id=sc_home change this to your custom page on which you to redirect.

 

If the above code helps then please mark my answer Correct and Helpful.

Thanks and Regards:
Siddhnath Pandey

 

No Siddharth. If you click on View Cart button - it takes you to sc_cart. So this is not the right solution. What you have shown is something for home page.

Might be I did not get the actual requirement. But what I ahve understood from your last I am sharing here check it out.  

In my above reply, I have said this image is of some other widget with kind of same functionality you looking for, so it is obvious that the code will be different. But the structure of the code will be same. 

Okay, for now just ignore this image & open your view cart widget & search a keyword $location.search in the client script of that widget. if you find something relatable then that code compare with this image code you will find some similarity. & then might be you get the correct solution.

Still if this doesn't help let me know. or I would recommend the share me the widget name I Let you know the correct change you which you need to do

f the above code helps then please mark my answer Correct and Helpful.

Thanks and Regards:
Siddhnath Pandey

Marked all your answers as helpful.

You are awesome and very quick in responding.

Thank you for all the help ❤️ 😄