Jump to content

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

Go to solution Solved by tuanphan,

Recommended Posts

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?


Link to comment
  • 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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.