Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search

How to add 'add to cart' button in Shop block


Gilbert

Recommended Posts

At the moment I import shop products in a product gallery block onto the homepage and I am trying to add a 'add to cart' button beneath each of the products to see if that improves conversion. Is there a way to do this?

I'm using Brine template and the site is at www.oliverjwoods.com

Here's a pic of where I'd like the buttons to go

OJW_Button_Question.thumb.png.a03644640efea1fd04529086ee5f9ec3.png

Thanks for any help!

C

Link to comment

I see you are using a Summary Block to display the products. Squarespace haven't added 'Add to Cart' buttons to Product Summary Blocks and it no longer appears that they will. 

There are therefore three options:

  • Use code to add buttons to each product on a Product List Page.
  • Use code to add the button to the Summary Items by harnessing the quick view data.
  • Use a series of Product Blocks instead. This doesn't scale but is manageable for a few products. There's a checkbox on these blocks that allows you to add the button.

If you plan to use one of the code options, I do recommend hiring a developer to help you.

Edited by paul2009
Linked to more detailed answer

Improve your online store with our extensions.
About: Sqsp Circle Leader since 2017. I value honesty, transparency, appreciation and great design ♥.
Work: Squarespace Expert and founder of SF Digital, dedicated to improving websites by building the features Squarespace didn't include™.
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Link to comment

Something like this:

.product-block .productDetails .product-title {
  font-size: 2em;
  line-height: 1.3em;
  font-weight: 600;
}

Improve your online store with our extensions.
About: Sqsp Circle Leader since 2017. I value honesty, transparency, appreciation and great design ♥.
Work: Squarespace Expert and founder of SF Digital, dedicated to improving websites by building the features Squarespace didn't include™.
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Link to comment
  • 5 months later...

I just had a client ask me for something very similar! Google around I found this post, and thought I would share my solution... It was not manageable to add hundreds of product blocks and the summary block doesn't contain the item-id needed to link it to an Add to Cart button. It was best to use the product list page. I figured out a solution that works great on desktop and mobile.

https://www.bradgood.net/articles/how-to-add-an-add-to-cart-button-to-a-squarespace-product-list-page

Edited by bradgood
Link to comment
  • 1 month later...
On 5/23/2020 at 2:21 AM, BureauSF said:

Thanks for the lead, @bradgood - unfortunately I do not seem to get in working in Product Summery Blocks in Pacific template

I am using a different Category Filter with each Product Summary grid - would that make a difference for the code?

 

On 7/3/2020 at 12:54 PM, divar said:

Hey @bradgood I tried your code and unfortunately it doesn't seem to be working for me. Do let me know if someone is able to implement it. Thanks!

Try this plugin.

by @ThompsonWebDesign

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
  • 1 month later...
On 5/17/2020 at 5:10 PM, bradgood said:

I just had a client ask me for something very similar! Google around I found this post, and thought I would share my solution... It was not manageable to add hundreds of product blocks and the summary block doesn't contain the item-id needed to link it to an Add to Cart button. It was best to use the product list page. I figured out a solution that works great on desktop and mobile.

https://www.bradgood.net/articles/how-to-add-an-add-to-cart-button-to-a-squarespace-product-list-page

Hey Brad, this doesn't seem to be working for me but it would be AMAZING if it did!! Can you reach out to me at hello@rentbestdressed.com to see if you can help?

Link to comment
On 8/13/2020 at 10:12 AM, bestdressed said:

Hey Brad, this doesn't seem to be working for me but it would be AMAZING if it did!! Can you reach out to me at hello@rentbestdressed.com to see if you can help?

Can you share link to page where you use Shop Block? We can help easier.

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
  • 4 weeks later...
On 9/8/2020 at 11:10 PM, JamesL-TFM said:

I am trying to add an 'add to cart' button to a summary block showing products. I have implemented @bradgood's code on my main commerce page (thanks!) but I would like to also have add to cart buttons on the pages where I show a summary of products based on tags. Does anyone have any suggestions?

 

An example website is here:

www.tendrevolution.com/limden-brook-organic

Have you found the solution yet?

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...