Mike101za Posted March 15, 2018 Share Posted March 15, 2018 Hi, Is there perhaps a way to change the colour of the "This product is currently out of stock" only? I would like the out of stock to be in red. Thank you Mike Quote Link to comment Share on other sites More sharing options...
bsmither Posted March 15, 2018 Share Posted March 15, 2018 (edited) 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 March 15, 2018 by bsmither Quote Link to comment Share on other sites More sharing options...
Mike101za Posted March 18, 2018 Author Share Posted March 18, 2018 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.