Hi David. Hope you are well mate?
You may remember I have PT working within WP. I previously used PT it on its own and had the additional column showing any retailer discounts.
Since using WP, I've never had them working. I just spent a couple of hours playing around and I cannot get it to show the .txt file at all.
My code in 'html/prices.php' is as follows:
<?php
if (file_exists("codes/".$product["merchant"].".txt"))
{
require("codes/".$product["merchant"].".txt");
}
else
{
print "no codes";
}
?>
and the location of the txt file is 'www.mysite.co.uk/comparison/codes/Amazon.txt'
My PT directory is 'www.mysite.co.uk/comparison/'
and I am modifying' www.mysite.co.uk/comparison/html/prices.php'
Any ideas why it isn't working? It just shows 'no codes' as though it cant see the txt file.
I have ensured my merchant name is definitely 'Amazon' and tried it without the .txt also.
I have also tried the 'full URL path' to the codes directory, and also '../codes/' within the prices.php file with no change.
Maybe I need to do something with pricesexternal.php?
Thanks for any help! :)
Hi em,
Yes the voucher codes code will need to be added to your pricesExternal.php - if you would like to email me the version you are using I'll get that added for you...
Cheers,
David.
--
PriceTapestry.com