Active forum topics

©2006-2017 IAAI Software

Contact Us Privacy Policy

Search External / Prices External

Submitted by support on Tue, 2008-09-16 16:12.

Hi everyone;

The External Scripts enable you to display search results and price comparison tables from your Price Tapestry database within any other PHP script running on the same server.

Search Results

SearchExternal.zip

Unzip, and upload SearchExternal.php to your Price Tapestry installation folder. Then, to show search results within any other PHP script running on the same web server (it doesn't have to be the same domain name or even a sub-domain, it can be completely different), simply insert the following PHP code into your script:

<?php
  $external_baseHREF 
"http://www.example.com/pricetapestry/";
  
$external_path "/path/to/pricetapestry/";
  
$_GET["q"] = "Search Terms";
  require(
$external_path."searchExternal.php");
?>

The values for $external_baseHREF and $external_path can be found on the Support Info page of your Price Tapestry /admin/ area as Base HREF and Install Path respectively.

Simply edit "Search Terms" to be the query you want to include search results for. Remember that you can use the various search modifiers; for example "merchant:Merchant-Name" or "category:Category-Name" or "brand:Brand-Name" etc.

Price Comparison Tables

PricesExternal.zip

Unzip, and upload pricesExternal.php to your Price Tapestry installation folder. Then, to show price comparison tables within any other PHP script running on the same web server (it doesn't have to be the same domain name or even a sub-domain, it can be completely different), simply insert the following PHP code into your script:

<?php
  $external_baseHREF 
"http://www.example.com/pricetapestry/";
  
$external_path "/path/to/pricetapestry/";
  
$_GET["q"] = "Product Name";
  require(
$external_path."pricesExternal.php");
?>

The values for $external_baseHREF and $external_path can be found on the Support Info page of your Price Tapestry /admin/ area as Base HREF and Install Path respectively, and edit "Product Name" to be the query you want to include search results for.