VirtueMart Forum

VirtueMart Dev/Coding Central: VM1 (old version) => Virtuemart 1.1 Development (Archiv) => Quality & Testing VirtueMart 1.1.x => Topic started by: Elmar Frank on June 26, 2009, 17:32:05 PM

Title: related products, which are not in stock, are listed if SHOW_OUT_OF_STOCK !=1
Post by: Elmar Frank on June 26, 2009, 17:32:05 PM
solution:
administrator/..../shop.product_details.php, line 86:

$q .= sprintf("AND FIND_IN_SET(#__{vm}_product.product_id, REPLACE(related_products, '|', ',' )) %s LIMIT 0, 4", (( CHECK_STOCK && PSHOP_SHOW_OUT_OF_STOCK_PRODUCTS != "1") ? 'AND `product_in_stock` > 0' : '')) ;


hope that helps!