Hi
I use the links produced by my PT installation as a quick and easy way to make product deeplinks, however today I noticed that some of these aren't working when you click them they just go to a blank page:
{link saved}
But the new link for this product appears to work fine
{link saved}
The old links used to work fine, I haven't done anything to make it change?
Ah thanks, I will try this out. Before I set up my php file which does the upload and automatic import of feeds the old links were still working after a new feed was uploading so would the new php file be what had changed it?
Hi kimarie,
If you were previously only importing certain feeds, or an import.php @MODIFIED then any products derived from feeds not updated / imported would not be changed so their ID would remain constant (until the feed from which that product comes from was updated).
If your new fetch / import script is using import.php @ALL then all products will have a new ID after every import...
Cheers,
David.
--
PriceTapestry.com
I get this error
Parse error: syntax error, unexpected ';' in /home/offersbo/public_html/shopping/nojump.php on line 4
When trying to open nojump.php
I was using @Modified but that wasn't importing anything so you switched it to @ALL from what I can remember.
Would it be easier for me to use the links to the product pages instead of the direct links that I was using? Or do these change as well every time the feed is imported?
ooops - code above corrected (semi-colon missing on the last line)
Linking to product pages will always be constant (provided the product name itself doesn't change of course), and perhaps this would work better as if a different merchant had become the cheapest since you last created the link your visitors would still find the cheapest merchant...!
Cheers,
David.
--
PriceTapestry.com
Ok thats working great now thanks, panic over slightly now just hours changing all the links!
Here is an example of where I was using the links {link saved}
I preferred the jump link because it made it look less like an affiliate site but when a shop releases their updated/new coloured bird print dress im not sure I want it going to the new product, would be a bit confusing for the reader, if thats what will happen?
Hi kimarie,
It's most likely that a new version of the dress would have a different product ID at the merchant and therefore that deeplink would become invalid; whilst obviously manually entered deeplinks should be monitored regularly to ensure that they are still valid perhaps that's another argument for going to your own /product/ page as that way; even if the product no longer exists the Related Products feature should still help your visitors find what they're looking for...
Cheers,
David.
--
PriceTapestry.com
Hi Kimarie,
For the most efficient import process when a feed is updated all products for that feed are first deleted (this saves a look-up query for every item being imported to see if it is a new or an updated existing product). As a result, as the feed is re-imported new ID numbers are assigned by the database.
As your main site is the route by which you're most used to looking up and finding products that you wish to deeplink to, a quick and easy modification to allow you to see actual deep links (and as a side-benefit also avoid jump.php from counting any of your own clicks) would be to create a cookie that overrides jump.php links and makes the links you see be the direct deep link.
To try this, first create a new file called nojump.php in the top level of your site as follows:
<?php
setcookie("nojump","1",0,"/");
print "nojump Cookie Set!";
?>
Browsing to nojump.php will then set the nojump cookie, to expire at the end of the browser session; so each time you want to set-up deep links, first browse to nojump.php to get the cookie.
Finally, in includes/tapestry.php, look for the following code around line 83:
if ($config_useTracking)
...and REPLACE with:
if ($config_useTracking && !isset($_COOKIE["nojump"]))
Hope this helps!
Cheers,
David.
--
PriceTapestry.com