Hi David,
I installed the external.php you sent me earlier, everything is working fine in regards to searches and the products are displayed on the external page complete with working navagation buttons.
The only problem is that when I click the "More Information" link it doesn't take me to the product information / price comparison page (/html/product.php). The headers, sidebar and footers are there, just no information in the main body.
Is this just a case of duplicating my product.php, inserting new code and then pointing external.php to the new file?
Also if their are no items matching my criteria the same applies, looking through external.php there should be a comment state "There are no items to display."?
Cheers
Chris
Hi David,
My site is locally hosted at the minute. Ill try and find somewhere to host and test it later.
Do i have to replicate any pages inserting the product page calling code or should this be automatic?
Cheers
Chris
Hi Chris,
It's all done through the same calling code that generated the product link - it should direct the user to a URL containing something like
?pt=1&product=Product+Name
The product= parameter is picked up by the calling code and used to display the product page with highest priority, so it will override a $_GET["q"] parameter in the calling code.
If using related products on a page that you are showing a fixed product then it would actually be necessary to check that there isn't a product name in the URL first, so in your calling code, in place of:
$_GET["product"] = "Product Name";
...use:
if (!$_GET["product"]) $_GET["product"] = "Product Name";
Cheers,
David.
--
PriceTapestry.com
Hi David,
I've hosted my site tonight, please see {link saved}. If you search for a product e.g "Trainer" you can see the results are displayed, however if you click on the product, the product information isn't displayed.
Also, I am wanting to resize the search result images so i can get four colunms of results on each page, could you advise with this also? I prefer to make them fixed width.
Cheers
Chris
Hi Chris,
I see that you've integrated the s= parameter coming from the home page search box with external.php to pull search results for that query - could you let me know what calling code (the php code added to your page / post) you have implemented and I'll take a look.
On a separate note - did you notice that all product names are currently "Quoted Text" - that would indicate that quoted text was not picked up when registering the feed in Feed Registration Step 1, to remove the quotes, instead of keeping the auto-detected Format String select the correct format from the drop-down box, e.g "Quoted Text - Header Row - Comma Separated"...
Cheers,
David.
--
PriceTapestry.com
Hi David,
This is calling code for the search results:
<?php
$external_baseHREF = "{link saved}";
$external_path = "{path saved}";
$_GET["q"] = $_GET["s"];
$external_noSearchform = TRUE;
$external_noBanner = TRUE;
require($external_path."external.php");
?>
Cheers
Chris
Hi Chris,
I think in this case because of the way you have integrated it would be best to modify external.php to use a specific base URL on your external site on which to display product pages.
This can be used to create some semblance of optimised URLs for your product pages, as you could create a page (rather than a post) with a "permalink" of, for example
/product/
...and on that page, use just the calling:
<?php
$external_baseHREF = "{link saved}";
$external_path = "{path saved}";
$external_noSearchform = TRUE;
$external_noBanner = TRUE;
require($external_path."external.php");
?>
I'll follow up by email with support for this added to the last external.php that I sent to you...
Cheers,
David.
--
PriceTapestry.com
Hi Chris,
Could you let me know the URL of a page where that's occurring (i'll remove before publishing your comment) and I'll check it out...
Cheers,
David.
--
PriceTapestry.com