You are here:  » Recommended Merchant

Support Forum



Recommended Merchant

Submitted by dbfcs on Tue, 2006-12-12 13:37 in

Not sure if this has been asked before.

Is there a way to give just one recommended merchant a different div class or span class name?

The reason I ask is that the recommended merchant could then be highlighted in a different colour to make it stand out.

An example:

I have retailers ABC, DEF, GHI and JKL. I want to try and push as much trade through GHI as possible and hence call GHI a preferred retailer or recommended merchant.

Then when a user searches for XYZ, they see the four merchants above but GHI has recommended retailer CSS detail via a div class or span.

Submitted by support on Tue, 2006-12-12 14:20

Hi Dave,

Do you mean in the price table on the product page?

If you don't want to touch the database, you could do it with manual coding in html/prices.php; where you currently have:

<td><a href='<?php print $product["merchantHREF"]; ?>'><?php print $product["merchant"]; ?></a></td>

..you could do this:

<?php
  if ($product["merchant"] == "GHI")
  {
    $merchantClass = 'featured';
  }
  else
  {
    $merchantClass = 'normal';
  }
?>
<td class='<?php print $merchantClass?>'><a href='<?php print $product["merchantHREF"]; ?>'><?php print $product["merchant"]; ?></a></td>

You would then need to create a style for .featured in default.css as required...

Cheers,
David.

Submitted by dbfcs on Tue, 2006-12-12 16:14

You are a genius!

Many thanks,

Dave