Hi everyone,
I recently created an ADD TO BAG button for a theme throught the coding in the Prestige Theme and it is also working fine, but the problem here is that when I’m clicking it to add the product in the cart then it is redirecting me to cart page while I’ve selected the cart to be drawer.
Can someone please guide how to resolve this as I’m new in Liquid and Shopify Platform.
Note: Sharing the code of the button that I’ve created.
ADD TO BAG
Here is the screenshot of cart type selection where I’ve selected the cart type to be drawer.
Note : It’s working fine in the product page buttons, I’m sure there is something I left while was adding it.
@Kushagra0602 , Hope you are doing well.
Could you please share your store URL and the page URL where you have added this button
@webwondersco Here is the store link.
Store Url : https://roci-india.myshopify.com
Store Password : lmcdev
Did you check if the theme has an option to add a button to the bottom of the product.
the code you have added will not work with ajax. Just check the theme options if the option for ajax add to cart button for listing page.
if not then it requires adding some custom code.
1 Like
Hey @Kushagra0602 , learn how to enable the side drawer cart or redirect to the cart page in Shopify Dawn theme after clicking “Add to Cart” with this helpful YouTube video: https://www.youtube.com/watch?v=5SefePWS5as.
1 Like