You are here:  » Featured direct to merchant

Support Forum



Featured direct to merchant

Submitted by babrees on Sun, 2009-05-31 13:02 in

I have my search results go direct to merchant (http://www.pricetapestry.com/node/414) How do I make the featured products also to go direct to merchant?

Submitted by support on Sun, 2009-05-31 15:01

Hi Jill,

You need to look in the file that is calling html/featured.php (probably index.php). Look for the following section of code; which begins at line 59 in the distribution;

      if ($config_useRewrite)
      {
        $featured["products"][$k]["productHREF"] = "product/".tapestry_hyphenate($product["name"]).".html";
        $featured["products"][$k]["reviewHREF"] = "review/".tapestry_hyphenate($product["name"]).".html";
      }
      else
      {
        $featured["products"][$k]["productHREF"] = "products.php?q=".urlencode($product["name"]);
        $featured["products"][$k]["reviewHREF"] = "reviews.php?q=".urlencode($product["name"]);
      }

...and REPLACE this with:

      $featured["products"][$k]["productHREF"] = tapestry_buyURL($product);
      if ($config_useRewrite)
      {
        $featured["products"][$k]["reviewHREF"] = "review/".tapestry_hyphenate($product["name"]).".html";
      }
      else
      {
        $featured["products"][$k]["reviewHREF"] = "reviews.php?q=".urlencode($product["name"]);
      }

Cheers,
David.