Hello David,
I've got a couple of merchants who use the same description content. See {link saved} for an example. Can you help me by suggesting a way to get rid of the duplicate content, and only show description instead of both when they are the same
Thanks Mally
Hi Mally,
I just checked your html/product.php and at around line 338, you have the following code:
if (!$usedMerchant[$descProduct["merchant"]])
{
if ($descProduct["description"]) print "<p><u>".$descProduct["merchant"]."</u> describes as '".$descProduct["description"]."'</p>";
$usedMerchant[$descProduct["merchant"]] = 1;
}
Try REPLACING that with:
if (
!$usedMerchant[$descProduct["merchant"]]
&&
!$usedDescription[$descProduct["description"]]
)
{
if ($descProduct["description"]) print "<p><u>".$descProduct["merchant"]."</u> describes as '".$descProduct["description"]."'</p>";
$usedMerchant[$descProduct["merchant"]] = 1;
$usedDescription[$descProduct["description"]] = 1;
}
Hope this helps!
Cheers,
David.