Jump to content

Change Add to Cart to "Request Swatch"

Recommended Posts

Site URL: https://lanternfish-lion-lr7x.squarespace.com/

Hi there,

I hid the quantity, price and add to cart buttons on my PDPs using this code:

.product-quantity-input,
.product-price,
.sqs-add-to-cart-button-wrapper {
display:none !important;
}

Now, I would like to add some copy and a button to every PDP, something like:

Copy: Request a swatch or a free quote
Button: Request a swatch
Button link: /contact page

How do I do this?

Link to comment
  • Replies 15
  • Views 746
  • Created
  • Last Reply

It will really help us if you share the site password with us so that we can view the site.

 

Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.

Would you like your customers to be able to mark their favourite products in your Squarespace store?

Link to comment
On 10/28/2020 at 11:59 PM, MiaMiaMia said:

No, they will all link to the same place @tuanphan

Add to Home > Settings > Advanced > Code Injection > Footer

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
$(document).ready(function() { 
		$('footer.sections .button-block').insertAfter('h1.ProductItem-details-title');
	});
</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
12 hours ago, MiaMiaMia said:

Thanks! It's showing above the product name, can it be updated to show below

Add to Home > Design > Custom CSS

/* Button under product name */
.ProductItem-details .button-block {
    order: 2;
}

 

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 minute ago, MiaMiaMia said:

Sorry - just realized it's still showing in the footer on non-PDP pages. How do I hide it? Example from the homepage:

211162462_ScreenShot2020-11-03at11_06_16AM.thumb.png.db9c176531d0088ce507c1ca2caf1df5.png

Try adding to Home > Design > Custom CSS

footer.sections .button-block {display: none;}

 

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

Archived

This topic is now archived and is closed to further replies.

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