View Full Version : products with 0 value
There are over 90,000 products in the datafeed with nil values .
http://outletcenter.co.uk/category.php?c=0&iListLimit=10&sListSort=lo&iListOffset=90450
Perhaps it would be better to remove the ŁO and replace it with "Please check with merchant"
Now that the sort by price has been sorted (well done AW!) these zero prices REALLY mess-up the listings.
I have tried and looked for a way to remove all 0.00 items with no success.
Can anyone advise as to how this can be done with the client software?
Much appreciated.
I would presume that if you know coding it would be easy enough to elimate the 0.00 items (in the refineby.tpl possibly)?
{* Only show if there are any *}
{if count($aRefineByDefs)>0 }
<div class="refineby">
<h3>Refine by</h3>
<table>
<tr>
{foreach from=$aRefineByDefs item=oRefineByDef}
<th>{$oRefineByDef->sName}</th>
{/foreach}
</tr>
<tr>
{foreach from=$aRefineByDefs item=oRefineByDef}
<td>
(<a id="clear" href="{$oRefineByDef->sCancelRefineByLink}">clear filter</a>) <br /><br />
{foreach from=$oRefineByDef->aRefineByValues item=oRefByValue}
{* Highlight active values *}
{if in_array($oRefByValue->iId, $aRefineByActiveValueIds)}
<a href="{$oRefByValue->sRefineByLink}"><strong>{$oRefByValue->sName}</strong></a> <br />
{else}
<a href="{$oRefByValue->sRefineByLink}">{$oRefByValue->sName}</a> <br />
{/if}
{/foreach}
</td>
{/foreach}
</tr>
</table>
</div>
{/if}
Any coding experts able to solve this?
Cheers
I have eliminated the nabru sofas priced at 1 pound from my site at
http://www.pricecompareuk.com/category.php?c=449
by adding the code indicated below to
/includes/elements/product_display_list.php
foreach($aProductsLoop as $oProd)
{
$oProduct= new stdClass();
// code added to remove items with silly prices from nabru furniture feed
if ($oProd->fSearchPrice < 100 && $oProd->iMerchantId == 1146) {
continue;
}
// end of remove silly prices from nabru furniture feed
// check brand name is in the product name