Shopify themes, liquid, logos, and UX
I am not quite yet a full developer, but am working on a website that sells products.
The customer clicks a product
They see the product information, and after selecting a size, they click add to cart
After clicking add to cart, it notifies them that they added to cart with a quick splash saying (you've just added this to your cart) for a quick second, and then you have a choice of either going to cart, or continue shopping, but it quickly goes away.
We would like for it to just redirect FROM the product page TO the cart page with the added product once they add it to their cart. How would I go about doing this? I have some familiarity with the code editor and editing minor code through there, but it is a bit over my head for sure.
I tried going through some of the store code, but it is a bit over my head.
I tried asking chatgpt but they gave me a pretty broad way of how I would supposedly do it.
(and would love for that product to also simultaneously be in their cart as they've added it)
URL: https://southminisplits.com/
Solved! Go to the solution
This is an accepted solution.
Figured I would give out the solution for anyone that needs it in the future.
I had to remove the add-to-cart class from product_view_default.liquid Worked like a charm.
There are a lot of duplicate files that seem like the product file but you need to find the default one. Once you do that remove the class and it should be fine.
Hello @southminisplits
Find the add to cart HTML code in the theme files and remove the class 'add-to-cart' from it >>
Thanks
Hello, thank you for that. I tried doing that in theme files in a copy of the theme that I have, and when I previewed it, the change seemed to not go into effect and it's just acting the same way. I tried also adding location.href="/cart"; to the button to see if maybe that would redirect to the cart once they click the "add to cart" button but still nothing.
Should i check and fix the code if you are looking to hire at reasonable rate ?
Thanks
Let's talk about it, how do I get ahold of you?
This is an accepted solution.
Figured I would give out the solution for anyone that needs it in the future.
I had to remove the add-to-cart class from product_view_default.liquid Worked like a charm.
There are a lot of duplicate files that seem like the product file but you need to find the default one. Once you do that remove the class and it should be fine.
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024