Home › Forums › WoodMart support forum › Quickshop – Add to Cart Button Behaviour
Quickshop – Add to Cart Button Behaviour
- This topic has 7 replies, 3 voices, and was last updated 6 years, 3 months ago by Artem Temos.
-
AuthorPosts
-
August 23, 2018 at 8:14 am #73952
weekiangParticipanthi,
for variable product now: When I am in the quickshop popup, and i click the add to cart, I am return to the product listing. is there a way for me to return to the product page instead?
for simple product, the behavior I have is that it is returning to the product page.
Regards
August 23, 2018 at 8:25 am #73954
Elise NoromitMemberHello,
Please provide your site admin access we shall check the issue
Best Regards
August 23, 2018 at 8:42 am #73964
weekiangParticipantit is not a issue. more of if it is possible to do so. If you seee
https://woodmart.xtemos.com/product-category/furniture/?per_row=4&shop_view=grid&demo=
Click on the Nerd Wooden Chair’s quickview and add to cart. you see that it is returned to the product category page. I am asking if it is possible to have it return to the product page instead? https://woodmart.xtemos.com/shop/furniture/fiber-base-chair-copy/
We are at the design stage, nothing is deployed yet. Need to know what can done before we talk to the client.
August 23, 2018 at 8:45 am #73967
Artem TemosKeymasterSorry, but there is no such option for our quick shop products.
August 23, 2018 at 9:38 am #73983
weekiangParticipantThanks for the quick response. How about quickview? (The one with the magnifying glass)
Can I click the quickview, click the add to cart and goes to the product page instead of returning to the product catalog page?
Understand there might be no ready configuration for this, but is there anywhere you can point me to do to code it? a handler or something or where the code for this is housed?
August 23, 2018 at 11:51 am #73994
Elise NoromitMemberHello,
Please add this code to the Theme Settings > Custom JS:
jQuery('body').bind('added_to_cart', function (e) { e.preventDefault(); var url = jQuery('.quick-view-wrapper .product_title a').attr('href'); if (typeof (url) != 'undefined') { jQuery('.woodmart-close-side, .cart-widget-side').remove(); window.location = url; return; } });
On document ready
Best Regards
August 24, 2018 at 8:25 am #74115
weekiangParticipanthi, Thanks for helping out.
Was also trying to understand the snippet.
So what I am trying to understand is thatyou are trying to override function behavior using JQuery. Basically trying to get the product url in is in the quick-view wrapper and set it to the add to cart function. something like that?
I tried it but the variable products are still returning to the product category page. not the product page. is it working on your copy?
August 24, 2018 at 8:51 am #74123
Artem TemosKeymasterCould you please send us a link to the page where you added that code and it doesn’t work?
-
AuthorPosts
Tagged: Quickview AddtoCart
- You must be logged in to create new topics. Login / Register