You are here:  » Main Product Image Problem Issue

Support Forum



Main Product Image Problem Issue

Submitted by technoarenasol on Wed, 2012-09-19 12:04 in

Hi David

If I register 2 feeds - abc feed and xyz feed

suppose in both feeds one product is common

In 1st feed product image url is present and price $199 and In 2nd Feed Product Image URL is not present and Price $149.

SO main product price $149 and its comes without image ???

how it could be solve ???

Submitted by support on Wed, 2012-09-19 12:36

Hi,

No problem! In html/product.php look for the following code at line 2:

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

...and REPLACE that with:

  <?php
    $mainProduct = $product["products"][0];
    if (!$mainProduct["image_url"])
    {
      foreach($product["products"] as $p)
      {
        if ($p["image_url"])
        {
          $mainProduct["image_url"] = $p["image_url"];
          break;
        }
      }
    }
  ?>

...and that will find an image from another product record if the cheapest product record has no image to display...

Cheers,
David.
--
PriceTapestry.com

Submitted by technoarenasol on Wed, 2012-09-19 13:10

Its working ...you r genius..Thnx David

Submitted by technoarenasol on Wed, 2012-09-19 14:06

Hello sir

I am use grid/list view with sidebar in search page

On search page display :

Order by: Product Rating | Price: Low to High, High to Low

But I want to diplay in drop-down with Onchange

Submitted by support on Wed, 2012-09-19 16:18

Hi,

There is a mod for drop-down instead of text links in this thread!

Cheers,
David.
--
PriceTapestry.com

Submitted by technoarenasol on Fri, 2012-09-21 11:09

Thnx David