You are here:  » Static Description,Images and Title

Support Forum



Static Description,Images and Title

Submitted by technoarenasol on Sat, 2012-09-29 09:18 in

Hi

On product page can be possible to fetch title,description and Title from particular Feed only .

Example :

Feed 1
Feed 2
Feed 3 (get title,images and Description from this feed : whatever price minimum or not)
feed 4
feed 5

Submitted by support on Sat, 2012-09-29 10:01

Hi,

Yes you can do this!

In html/product.php (I know you are using a customised file but you will find the same line) look for this code at line 2:

  <?php $mainProduct $product["products"][0]; ?>

...and REPLACE with:

  <?php
    $mainProduct = $product["products"][0];
    foreach($product["products"] as $v)
    {
      if ($v["filename"] == "Feed 3")
      {
        $mainProduct["name"] = $v["name"];
        $mainProduct["image_url"] = $v["image_url"];
        $mainProduct["description"] = $v["description"];
      }
    }
  ?>

(change Feed 3 to the filename of the feed that you want to take the details from)

Cheers,
David.
--
PriceTapestry.com