You are here:  » PricesExternal mod

Support Forum



PricesExternal mod

Submitted by jonny5 on Tue, 2009-09-15 11:47 in

Hi David

Im using pricesexternal in posts , and all works fine , but if the item is removed from the feed by the retailer then nothing will be displayed.

is it possible if there is no match to display a price of a product, that it uses those keywords and displays in the searchExternal instead as something should then always be displayed when items are deleted from a feed

Submitted by support on Tue, 2009-09-15 12:20

Hi Jonny,

Sure - as both use $_GET["q"], in pricesExternal.php, look for the following code around about line 56:

    $numRows = database_querySelect($sql,$rows);

...and REPLACE that with:

    $numRows = database_querySelect($sql,$rows);
    if (!$numRows)
    {
      require($common_path."searchExternal.php");
    }

Cheers,
David.