Jump to content

Adding a "Add To Cart" Button On Product / Store Page

Recommended Posts

HI, 

I use 7.0 and I want to add an add to cart button below the title and pricing on the product/shop page. I dont understand why this isnt already a built in thing on squarespace as its crucial when selling products and increases sales. Doesnt make sense. 

Every code I find online doesn't work. One worked for a bit but then you had to refresh the page multiple times for it to show up and my customers will not know to do that 

 

Anyone have a code that will work the first time the page is loaded and will stay working? Thanks!

Screen Shot 2023-11-12 at 11.14.47 AM.png

Edited by Kaylie
Link to comment
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

Quote

One worked for a bit but then you had to refresh the page multiple times for it to show up and my customers will not know to do that

For this particular issue I'm thinking the curse of Ajax Loading strikes again! Try, temporarily, turning off Ajax Loading to see if the problem goes away.

Please note that turning off Ajax Loading will affect the performance of your site. Ajax Loading is designed to increase the loading speed of your site after it first loads.

If the problem goes away then it is likely the code has not been written to be Ajax compatible. It would need to be rewritten to be Ajax compatible, assuming it it even possible.

You have to decide whether the custom code you are trying to use is worth turning off Ajax Loading. Or, it is worth trying to get an Ajax compatible version of the code.

paul2009 has a great article on the ins and outs of Ajax Loading. Please see Why does Squarespace code only work on refresh?

Quote

I dont understand why this isnt already a built in thing on squarespace as its crucial when selling products and increases sales. Doesnt make sense.

This feature only recently came to v7.1 last July. I don't see the feature coming to v7.0.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

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.