Hi,
Can anyone telll me where to add the "include_product.qty.discounts.tpl " to enable it to show under the items in the list pages as image attached.
I had it there before upgrade and cant remember where it went or if it should be in same file. I didnt use a hook for it back then.
Thanks
John
have looking in this directory:
skins/
John
Yes I had tried that John, but couldnt get anything to show in storefront.
I have also tried
for ($i = 0; $i < sizeof($products); ++$i) {
$product_id = $products[$i]['product_id'];
$products[$i]['prices'] = db_get_array("SELECT price, lower_limit, usergroup_id FROM ?:product_prices WHERE product_id = ?i ORDER BY usergroup_id, lower_limit", $product_id);
by putting it underneath
$selected_layout = fn_get_products_layout($_REQUEST);
in categories.php in controllers/customer.
I then have the hook like this in
hooks/products/product_multicolumns_list.post.tpl
{$lang.text_qty_discounts}:{foreach from=$product.prices item="price"}
{if in_array($price.usergroup_id, $auth.usergroup_ids) && $product.base_price != $price.price}
{assign var="var" value=1}
{/if}
{/foreach}
{if $product.prices|@sizeof > 1 && $var == 1}
{$lang.quantity}
{foreach from=$product.prices item="price"}
{if in_array($price.usergroup_id, $auth.usergroup_ids)}
{$price.lower_limit}+
{/if}
{/foreach}
{$lang.price}
{foreach from=$product.prices item="price"}
{if in_array($price.usergroup_id, $auth.usergroup_ids)}
{include file="common_templates/price.tpl" value=$price.price}
{/if}
{/foreach}
{/if}
Which helps it show, but it is all over the place, some are under the products some are over the products, some are double??
Could be with the change from 2.1.2 to 2.1.3 ??
Thanks
John