Yes, Pm me
Hide this line from product page.
Hey Jasoliya,
When the customer add to cart, I want them to be redirected right to the cart for easy checkout. Now it just adds the product to cart and the customer has to go to the cart page themself.
Can this be changed? Store url: visionstore.nl
Thanks alot!
Whats is cart functionality? where is button?
go to “Winkel” Choose a product.
Then “Toevoegen aan winkelmandje” <— that is the add to cart button.
Hi @Jasoliya
Thanks for pointing at the right direction. Would mind having look at the Express theme as well, I am trying to do the same thing but just able to find the right place to comment it out and paste that redirect function (location.href=‘/cart’;).
Below is the theme.js file code for your easy reference:
https://codeshare.io/2Kl698
Any help would be greatly appreciated.
@Jasoliya here is my store link: https://www.halalproteins.com/products/halal-protein
Thanks.
I checked your file but you have theme.min file its minifiled file so cant do direct in file because all code minifield, so must need to manage it by custom code. so you have to hire developer for that.
gotcha its off the shelf they minified everything so really not user friendly at all.
by any chance this is the code?
function cartAddFromForm(formData) {
var config = getDefaultRequestConfig();
delete config.headers['Content-Type'];
config.method = 'POST';
config.body = formData;
return fetchJSON('/cart/add.js', config);
}
function cartChange(line, options) {
var config = getDefaultRequestConfig();
options = options || {};
config.method = 'POST';
config.body = JSON.stringify({
line: line,
quantity: options.quantity,
properties: options.properties
});
return fetchJSON('/cart/change.js', config);
}
I dont’ think this part helpful because i thing its not for product page
somebody knows how to redirect to cartpage after add to cart ?
i am using debutify theme
thx
Send me your store url
You can find option in theme editor if you have. or you have minifield code on Js code so difficult to give you answer form this code.
i dont have this option in my theme editor
how i can change this code ?
i am searching since 2 hours ![]()
Yes that’s because you have minifield Js code that’s difficult to manage may be need developer help if you cant.
where i can find developer help ?
On this need custom adjustment so you have to hire developer