View Single Post
  #1  
Old 01-04-2006, 04:30 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Related Products: Don't show link if out of stock?

I have discovered that a related product link is still displayed even if the related product is out of stock, regardless of whether the 'Disable products which are out of stock' box is checked. If the customer clicks one of these links they get an error if the product they are trying to find is out of stock / disabled. I think there needs to be a 'product_available = Y' check somewhere in the related_products.tpl before displaying the link but don't know the correct syntax.

Basically, what I want to do is..
If product is in stock display link or else do nothing.

Any help here would be appreciated.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote