Jump to content

Adding a button near add to cart button

Recommended Posts

Hi,

Each product will have a different view demo link or same?

If same, just share link to a product + let me know button style, we can give the code

if different, you can add a view demo in Product Additional Info, then share link to a product where you added it, we can give code to move text next to add to cart

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
  • 3 months later...

Hi @tuanphan, jumping on this thread as I have the same issue and it's driving me mad!

Here is a link to a product page I'm designing, where I've added the "View Demo" button in the Additional Information field:

https://www.westcoastdigital.co.nz/website-templates/p/summer-template-squarespace-71-yoga-teacher-website

If you can help me with code that would place it alongside the "Add To Cart" Button, that would be brilliant!

Thanks,

Sam

Edited by SBeneke
Typo
Link to comment
On 3/10/2024 at 8:45 AM, SBeneke said:

Hi @tuanphan, jumping on this thread as I have the same issue and it's driving me mad!

Here is a link to a product page I'm designing, where I've added the "View Demo" button in the Additional Information field:

https://www.westcoastdigital.co.nz/website-templates/p/summer-template-squarespace-71-yoga-teacher-website

If you can help me with code that would place it alongside the "Add To Cart" Button, that would be brilliant!

Thanks,

Sam

Hi,

I don't see button in Additional Info.

You can add it then use this code to Website > Website Tools > Code Injection > Footer

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
jQuery(document).ready(function($){
  $('section.ProductItem-additional .button-block').appendTo('.sqs-add-to-cart-button-wrapper');
})
</script>

 

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
  • 1 month later...

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.