lulu.lindberg Posted July 11, 2023 Share Posted July 11, 2023 Hi, thanks in advance for reading. I am using this code to add an upsell page when people click add to cart. If you click the site url listed, you'll see that when people buy a tote, it redirects to the tote upsell page. I want to exclude this product from the up sell add on... is there a way to do this? Thanks! Link to comment
tuanphan Posted July 15, 2023 Share Posted July 15, 2023 Hi, Can you share link to Tote product? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
lulu.lindberg Posted July 26, 2023 Author Share Posted July 26, 2023 @tuanphan of course! https://www.wizbeehoney.ca/shop-wizbee/p/wiz-bee-honey-tote-bag - Thank you for having a look! Link to comment
Solution tuanphan Posted July 27, 2023 Solution Share Posted July 27, 2023 On 7/26/2023 at 7:49 AM, lulu.lindberg said: @tuanphan of course! https://www.wizbeehoney.ca/shop-wizbee/p/wiz-bee-honey-tote-bag - Thank you for having a look! Try changing this line var addToCartButton = document.querySelector('.sqs-add-to-cart-button'); to this var addToCartButton = document.querySelector('body:not(#item-64ac645bc2dd9263f997ccf8) .sqs-add-to-cart-button'); Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
lulu.lindberg Posted August 2, 2023 Author Share Posted August 2, 2023 Thank you @tuanphan - it worked! Much appreciated tuanphan 1 Link to comment
lulu.lindberg Posted February 22 Author Share Posted February 22 @tuanphan how do I find the #item-xxxx - I'm looking to exclude another item from the sell on, but am having trouble finding that. Link to comment
tuanphan Posted February 25 Share Posted February 25 On 2/23/2024 at 4:49 AM, lulu.lindberg said: @tuanphan how do I find the #item-xxxx - I'm looking to exclude another item from the sell on, but am having trouble finding that. You can open product > Right click on anywhere on page > Inspect > A box will appear on right or bottom of screen > Scroll up and find <body, you will see #item.. Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment