Jump to content

Can you make a normal "button" into a "add to cart" button?

Recommended Posts

I think the only way is use CSS code to make add to cart button style same as normal button. If you share link to a product - link to page where you we can see button, we can give the code to do this

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
On 2/24/2022 at 1:04 AM, Skylab said:

Hello. Here is a product I would like to make a "add to cart" button for but without using the "product" module.

https://skylabnyc.com/reshades/#landofthefreehomeofthedead

thank you for your help!

Add to Design > Custom CSS

/* Add to cart button style */
div.sqs-add-to-cart-button {
    background-color: black !important;
    padding: 1.25em 2.5em !important;
}

 

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 weeks later...
23 hours ago, Skylab said:

I have another question. Is there code I can apply where I can alter the, size, color, and font of the "product" module button? I've attached a screenshot.

Thank you for your great help.

addto cart module button into a larger button example.jpg

Use this CSS

/* Product block button */
div.product-block .sqs-add-to-cart-button-inner {
    font-size: 20px;
}
div.product-block .sqs-add-to-cart-button {
    padding: 2.1rem 2.5rem;
}

 

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

You're the best! It worked. One last question. What if I wanted to override the color of the button? What would the code look like then?

Also, do you have a website/paypal where I can buy you a cup of coffee.

 

Thanks!

div.product-block .sqs-add-to-cart-button-inner {
    font-size: 20px;
	background-color: #f1f !important;
}

#1. Use this code

div.product-block .sqs-add-to-cart-button-inner {
    font-size: 20px;
	background-color: #f1f !important;
}

#2. No. But if have some volunteers (students), ready to check your website for errors and provide code, you can donate to them. If you need it, let me know, I will check site and send it to your private message

Edited by tuanphan

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

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.