How to change the continue shopping link
-
Hi,
I want to change the continue shopping link and view cart label after the add to cart action.
How to do that?
Currently, it is not redirecting to anywhere, I want to redirect it to the home page.
Also, if the window is coming on the home page only the window should close.
Thank you,
Attachments:
You must be
logged in to view attached files.
Hi refa,
Thanks for reaching to us.
Open class-redirect.php file, located in \inc\integrations\woocommerce\modules\quick-buy\ https://prnt.sc/4qbJfgw8RoaP
And you can update shop link.
Regards,
-
This reply was modified 1 year, 10 months ago by
Hung Pham.
I am using the child theme, on which folder do I have to override the template file? If I change the parent category it will affect after the theme update.
Hi refa,
Currently, there is no way to override this with child theme.
Regards,
Are there any php custom functions to change the “continue shopping” URL? Because I don’t want it to get removed after the theme update.
Also as I mentioned earlier, when I click the continue shopping from the home page, then it shouldn’t get redirected.
Hi refa,
Unfortunately, it is not possible.
Regards,
Changed the link, still not working.
Please check the screenshot below for your reference.
Hi refa,
Please remove previous and add below code to Theme Settings > Custom JS
jQuery(document).on('click', '.popup-added_to_cart .close-popup', function(e) {
setTimeout(function () {
window.location.replace('https://danubedecor.me/');
}, 500);
});
Regards,
It worked, thank you.
Is there a way to disable the redirection if I am already on the homepage?
Hi refa,
There is no such an options by default, unfortunately.
Regards,