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
2401 695 832

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.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
SuppCity
Tourist
6 0 2

BSS-TekLabs
Shopify Partner
2401 695 832

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


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
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
10092 2398 3030

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 are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.