Add to Cart Border

Solved

Add to Cart Border

Ben_Sheps
Tourist
8 0 3

Does anybody know how to put borders around the "add to cart" button in the same way that the "play" button has them? When I hover over "play," my cursor becomes a hand, but it stays a cursor when hovering over "add to cart." That said, I can still click on "add to cart," and it works fine. It is just not optimal. Any help would be appreciated. It is important to know that this is for "product tuneboom track." Thanks.

Screenshot 2024-10-17 201629.png

Accepted Solution (1)
BSSCommerce-B2B
Shopify Partner
1972 564 568

This is an accepted solution.

@Ben_Sheps, change the previous code like this

 

<style>
.product-form__tuneboom-item.product-form__item--submit {
    background-color: var(--color-btn-primary);
    box-shadow: 0 2px 3px #00000026;
    transition: all .3s cubic-bezier(.68,-.55,.27,2);
    height: 44px;
    text-align: center;
    cursor: pointer;
}
</style>

 

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now

View solution in original post

Replies 9 (9)

Vinsinfo
Shopify Partner
491 167 172

@Ben_Sheps Please share your store URL to help you on this.

Please reach out to bizdev@vinsinfo.com for any enquires related to Shopify.
Our Services: Custom Theme Development, Theme Customization, Custom Feature Implementation, Data Migration, Custom APP Development, Website Optimization and Google Merchant Center Support

GTLOfficial
Shopify Partner
851 176 190

Hello @Ben_Sheps 
Please provide url and password of your website.

- Buy me a Pizza
- If helpful then please Like and Accept Solution.
- Want to modify or custom changes or bug fix on the store Hire me. GTL web solutions
- Want Complete Storefront: Send an email ⇨- Email: info@gtlofficial.com - Skype: ritesh_27dh

BSSCommerce-B2B
Shopify Partner
1972 564 568

@Ben_Sheps,

Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above </head>

<style>
.product-form__tuneboom-item.product-form__item--submit {
    background-color: var(--color-btn-primary);
    box-shadow: 0 2px 3px #00000026;
    transition: all .3s cubic-bezier(.68,-.55,.27,2);
    height: 44px;
    text-align: center;
}
</style>

Result:

BSSCommerceB2B_0-1729232548779.png

If it helps you, please like and mark it as the solution.

Best Regards 😊

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now

Ben_Sheps
Tourist
8 0 3

Wow! Thanks for the help. That is what I needed. Now, how do I get my mouse to hover over it and change from cursor to hand? It is clickable; it just does not look like it because my cursor is not actually changing to the hand. I do not have this problem with the play button.

BSSCommerce-B2B
Shopify Partner
1972 564 568

This is an accepted solution.

@Ben_Sheps, change the previous code like this

 

<style>
.product-form__tuneboom-item.product-form__item--submit {
    background-color: var(--color-btn-primary);
    box-shadow: 0 2px 3px #00000026;
    transition: all .3s cubic-bezier(.68,-.55,.27,2);
    height: 44px;
    text-align: center;
    cursor: pointer;
}
</style>

 

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now

Ben_Sheps
Tourist
8 0 3

You're a lifesaver.

Ben_Sheps
Tourist
8 0 3

Last question: do you have a script to give a cart icon in the button like the play button does?

BSSCommerce-B2B
Shopify Partner
1972 564 568

@Ben_Sheps, add this code before </body> in theme.liquid

{% if template == 'product' %}
<script>
  document.addEventListener('DOMContentLoaded', function() {
const addToCartButton = document.querySelector('.product-form__cart-submit');
if (addToCartButton) {
    const cartIcon = `
      <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="cart-icon">
        <path d="M6 6h15l-1.68 9.39a2 2 0 0 1-2 1.61H8a2 2 0 0 1-2-1.61L4 2H1" />
        <circle cx="9" cy="21" r="1.5" />
        <circle cx="19" cy="21" r="1.5" />
      </svg>
    `;
    const addToCartText = addToCartButton.querySelector('span[data-add-to-cart-text]');
    addToCartText.insertAdjacentHTML('beforebegin', cartIcon);
    addToCartButton.style.display = "flex"
    addToCartButton.style.gap = "4px"
}
})
</script>
{% endif %}

Result:

BSSCommerceB2B_0-1729332937980.png

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now

ZestardTech
Shopify Partner
6144 1097 1474

Hello @Ben_Sheps 
Please share your store URL and password.
So that I will check and let you know the exact solution here.

Want to modify or develop new app, Hire us.
If helpful then please Like and Accept Solution .
Email: support@zestard.com
Shopify Apps URL :- https://apps.shopify.com/partners/zestard-technologies
Custom Modifications Into Shopify Theme | Shopify Private App | SEO & Digital Marketing