Change button colour when out of stock

Change button colour when out of stock

SuppCity
Tourist
6 0 2

Hi:)

 

On my website i have a lot of products with differtent variants (for example a protein shake with different flavours). Sometimes we are out of stock with certain flavours. I would like to change the background colour of the buttons in wich you can choose your flavour when the flavour is out of stock (see picture)

How do i do this?

 

I think i need to change some code, but which files and what do i need to change?:)

 

I am using the Dawn theme and i use the Preorder Now Wolf addon to show people when something is out of stock.

 

SuppCity_0-1724332330782.pngSuppCity_1-1724332354863.png

 

Replies 5 (5)

BSS-TekLabs
Shopify Partner
1902 546 634

Hello @SuppCity 
Our team is ready to help you.
Please share your website address and access password (if necessary) so that we can check and assist you.

If our suggestions are useful, please let us know by giving it a like or marking it as a solution .
Need help from our expert? Kindly share your request with us via community@bsscommerce.com
BSS Commerce - Full-service eCommerce Agency

For give Gift to customers and Upsell in Cart, check out Salepify: Free Gifts with purchase


Post purchase upsell, downsell offers to improve sales and AOV
Salemate Post Purchase Upsell

SuppCity
Tourist
6 0 2

BSS-TekLabs
Shopify Partner
1902 546 634

- Here is the solution for you @SuppCity 
- Please follow these steps:

z5686811214059_e66de1953f1db631f9134af5cdb796ad.jpg

- Then find the base.css or theme.css file.
- Then add the following code at the end of the file and press 'Save' to save it.

.pnda-delivery-info+.product-form__submit {
     background: darkgray !important;
}

- Here is the result you will achieve:

BSSTekLabs_0-1724333083935.png

 

- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.

If our suggestions are useful, please let us know by giving it a like or marking it as a solution .
Need help from our expert? Kindly share your request with us via community@bsscommerce.com
BSS Commerce - Full-service eCommerce Agency

For give Gift to customers and Upsell in Cart, check out Salepify: Free Gifts with purchase


Post purchase upsell, downsell offers to improve sales and AOV
Salemate Post Purchase Upsell

SuppCity
Tourist
6 0 2

Thanks a lot, but i would like to change a different button (but only when out of stock, when available it should stay as it is) haha. I have added a picture with drawings:)

 

SuppCity_0-1724333255412.png

 

Made4uo-Ribe
Shopify Partner
7661 1844 2259

Hi @SuppCity 

You might needs a developer for this. To change the variant buttons according to the pre-order buttons,. 

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.