Jump to content

Tag filtration has mistake in displaing order is in stock or avialable later


Recommended Posts

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 by wer_ru (see edit history)
Link to comment
Share on other sites

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

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 by wer_ru (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...