Jump to content

A second button on full product detail page

Recommended Posts

Click button >> User can purchase item with crypto on current Squarespace site, or redirect to external site?

If current, I'm not sure SS support this. You should contact Squarespace Customer Care

If different, you can add a Button Block in addition info, link to external site, then share link to that product, we can give the code to move it above 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
  • 2 months later...
On 3/18/2022 at 3:45 PM, tuanphan said:

Click button >> User can purchase item with crypto on current Squarespace site, or redirect to external site?

If current, I'm not sure SS support this. You should contact Squarespace Customer Care

If different, you can add a Button Block in addition info, link to external site, then share link to that product, we can give the code to move it above add to cart

I need this 🥺
I added a button to the addition info, how do I move it and make it as wide as the "add to cart" button?

https://falcon-lavender-b2h4.squarespace.com/
pw: suport

 

Edited by Venera
Link to comment
19 hours ago, Venera said:

I need this 🥺
I added a button to the addition info, how do I move it and make it as wide as the "add to cart" button?

https://falcon-lavender-b2h4.squarespace.com/
pw: suport

33.png

Add this code to Last Line in Code Injection > Footer

<script>
$(document).ready(function() { 
		$('section.ProductItem-additional .button-block').insertAfter('.ProductItem-details .sqs-add-to-cart-button-wrapper');
	});
</script>
<style>
  div.sqs-add-to-cart-button-wrapper + .button-block a {
    width: 100%;
    text-align: center;
    overflow: hidden;
}
  div.sqs-add-to-cart-button-wrapper + .button-block div {
    overflow: hidden;
}
</style>

 

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
19 hours ago, Venera said:

I found it! Thank you very much!

Is it possible to change the design of the button to white with a black outline in order to somehow separate the buttons?
Here is an example

4.png

Add this code under

<style>
  div.sqs-add-to-cart-button-wrapper + .button-block a {
    background-color: white !important;
    color: black !important;
    border: 2px solid black;
    padding: 0 !important;
    padding-top: 15px !important;
    padding-bottom: 15px !important;
}
div.sqs-add-to-cart-button-wrapper + .button-block div {
    overflow: visible !important;
}
div.sqs-add-to-cart-button-wrapper + .button-block a:hover {
    background-color: black !important;
    color: white !important;
}
</style>

 

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
46 minutes ago, tuanphan said:

Add this code under

<style>
  div.sqs-add-to-cart-button-wrapper + .button-block a {
    background-color: white !important;
    color: black !important;
    border: 2px solid black;
    padding: 0 !important;
    padding-top: 15px !important;
    padding-bottom: 15px !important;
}
div.sqs-add-to-cart-button-wrapper + .button-block div {
    overflow: visible !important;
}
div.sqs-add-to-cart-button-wrapper + .button-block a:hover {
    background-color: black !important;
    color: white !important;
}
</style>

 

Perfect! Thank you a lot!  🙌

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.