wer_ru Posted March 9, 2015 Share Posted March 9, 2015 (edited) default theme part of the goods under the deferred order. There is text in the "Displayed text when backordering is allowed". All displayed properly when viewed in the categories within the goods. But if you click on the tag, the text that the product is not available to order. It is written that the goods "in stock". http://wimmelbuch.su/search?tag=lego example The problem is product-list.tpl {If $ product.quantity <= 0} {if $ product.allow_oosp} {if isset ($ product.available_later) && $ product.available_later} {$ product.available_later} {else} {ls = 'In Stock'} { / if} {else} {ls = 'Out of stock'} {/ if} {else} {if isset ($ product.available_now) && $ product.available_now} {$ product.available_now} {else} {ls = ' In Stock '} {/ if} {/ if} for some strange reason, the variable $product.available_later not getting value and then only in conjunction with the tags. in the usual categories all right! Edited March 9, 2015 by wer_ru (see edit history) Link to comment Share on other sites More sharing options...
Oron Posted March 10, 2015 Share Posted March 10, 2015 Hello English langage only of English forum Topic moved Português to English forum Link to comment Share on other sites More sharing options...
wer_ru Posted March 10, 2015 Author Share Posted March 10, 2015 Sorry For this moment I defined variable $ product.available_later into block if. and it works. But solution is not good I get {$product|var_dump} and there is no product.available_later in list Link to comment Share on other sites More sharing options...
wer_ru Posted March 10, 2015 Author Share Posted March 10, 2015 I add this in end of the product-list.tpl (before close if) {addJsDef availableLaterValue=$product->available_later|escape:'quotes':'UTF-8'} As I undesrtand this solution is better then rude defining product.available_later, because value gets from the data base... But this is bug. This function works for another things Link to comment Share on other sites More sharing options...
wer_ru Posted March 10, 2015 Author Share Posted March 10, 2015 (edited) I got solution. in classes/Search.php edit $sql = 'SELECT DISTINCT p.*, product_shop.*, stock.out_of_stock, IFNULL(stock.quantity, 0) as quantity, pl.`description_short`, pl.`link_rewrite`, pl.`name`, MAX(image_shop.`id_image`) id_image, il.`legend`, m.`name` manufacturer_name, 1 position, to $sql = 'SELECT DISTINCT p.*, product_shop.*, stock.out_of_stock, IFNULL(stock.quantity, 0) as quantity, pl.`description_short`, pl.`link_rewrite`, pl.`name`, pl.`available_now`, pl.`available_later`, MAX(image_shop.`id_image`) id_image, il.`legend`, m.`name` manufacturer_name, 1 position, I got solution and additional info that it was old bug. I'm really disappointed that this OLD bug I got with FRESH installation. Edited March 10, 2015 by wer_ru (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts