X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Add text to notification area (https://forum.x-cart.com/showthread.php?t=74862)

Dougrun 01-12-2017 12:13 PM

Add text to notification area
 
I want to add "Option out of Stock" when the type B notification icon shows, but not otherwise. On my product details page, I see
Code:

{if $show_notif_B eq 'Y'}
    {include file="modules/Product_Notifications/product_notification_request_button.tpl" productid=$product.productid type="B"}
  {/if}


but adding it to that at the end shows it no matter if the size is out or not, it just moves it to the other side of the icon.

Ideally i wanted to make the option text color red in the size column but cant figure that out.
example at https://www.vsathletics.com/store/VS-Athletics-Weightlifting-Shoe-II.html
size 14.0 is sold out. the icon changes to notify when back in stock but i can't get that text added. Any ideas??

cherie 01-12-2017 05:15 PM

Re: Add text to notification area
 
Not a direct answer, but it should already say "Out of stock" when that variant is chosen. Try switching "Show quantity selector as input textbox" in Appearance options. Then when that option is chosen the Quantity drop-down should say "Out of stock."


All times are GMT -8. The time now is 04:10 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.