Jump to content

Using Product Upsell Redirect - want to exclude certain products... how to do?

Go to solution Solved by tuanphan,

Recommended Posts

  • Replies 6
  • Views 1.5k
  • Created
  • Last Reply

Top Posters In This Topic

  • 2 weeks later...
  • Solution
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
  • 6 months later...
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..

image.thumb.png.a86dbbf4dadae06e6a285b566fd27fde.png

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.