You are here:  » how do you get rid of duplicate descriptions

Support Forum



how do you get rid of duplicate descriptions

Submitted by mally on Tue, 2010-06-15 19:14 in

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

Submitted by support on Wed, 2010-06-16 06:38

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.