Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Add text to notification area

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 01-12-2017, 12:13 PM
 
Dougrun Dougrun is offline
 

X-Adept
  
Join Date: Apr 2012
Posts: 895
 

Default 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??
__________________
4.7.x xcart store
Business 5.4xx
Reply With Quote
  #2  
Old 01-12-2017, 05:15 PM
  cherie's Avatar 
cherie cherie is offline
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default 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."
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote

The following user thanks cherie for this useful post:
Dougrun (01-13-2017)
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 03:30 PM.

   

 
X-Cart forums © 2001-2020