Jump to content

Out of stock colour


Mike101za

Recommended Posts

There is no specific CSS selector for this specific state of a product's availability. So, we will need to change the language string for it.

In admin, Languages, click to edit the language(s) you are using. Choose Catalogue from the drop-down. Then scroll to the key 'out_of_stock'.

Change to:

<span style="color:red;">This product is currently out of stock</span>

Or you can change the template.

In element.product.call_to_action.php

(in other versions of Foundation and other skins, the code in this file might be found in content.product.php)

Find:

<p class="buy_button"><strong>{$LANG.catalogue.out_of_stock}</strong></p>

Change to:

<p class="buy_button"><span style="font-weight:bold;color:red;">{$LANG.catalogue.out_of_stock}</span></p>

 

Edited by bsmither
Link to comment
Share on other sites

On 3/15/2018 at 6:05 AM, bsmither said:

There is no specific CSS selector for this specific state of a product's availability. So, we will need to change the language string for it.

In admin, Languages, click to edit the language(s) you are using. Choose Catalogue from the drop-down. Then scroll to the key 'out_of_stock'.


Change to:

<span style="color:red;">This product is currently out of stock</span>

Or you can change the template.


In element.product.call_to_action.php

(in other versions of Foundation and other skins, the code in this file might be found in content.product.php)

Find:

<p class="buy_button"><strong>{$LANG.catalogue.out_of_stock}</strong></p>

Change to:

<p class="buy_button"><span style="font-weight:bold;color:red;">{$LANG.catalogue.out_of_stock}</span></p>

 

Thank you

Mike

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...