Jump to content

Adding a product to cart in a code block

Recommended Posts

Hi

I was wondering if there was any way to add /remove a product in my store to the cart using a button and some javascript in a code block?

So on my site i am adding a layout designer where a user can add smart components to different rooms (a house or an apartment). When the user adds a component to the room I want to add that component to the cart as well, this also goes for deletion of that item from the room. Can I manage this without using the Squarespace API? 

 

Link to comment
  • Replies 0
  • Views 145
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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.