does eBay and Amazon still work with the latest version of PT ? I'm asking as I am having some difficulty getting them to work.
Thanks
philip
Hello David,
I've sorted it, as my old boss would always say "attention to details!"
Thanks for the help
Philip
Sorry, David, I thought I had this sorted. {link saved} The tabs appear but do not work, any ideas?
the problem seems to be around html/prices.php
Philip
Hello Philip,
Sorry for the delay getting back to you I have only had limited Internet access today - I had a quick look but can't immediately see the problem however a JavaScript error is occurring but doesn't appear to be related to the tab invocation.
I'll check it out further with you as soon as I am back online properly first thing tomorrow...
Cheers,
David.
--
PriceTapestry.com
Thank you David, happy to wait for your expertise.
Philip
Hello Philip,
Please could you try with the version of jquery.min.js included in the 16/10A distribution. Download a temporary copy of 16/10A, extract the file;
html/vendor/jquery.min.js
...and then upload over the top of your new 18/06A installation and see if that does the trick (i'm not able to test easily at the moment). Please let me know if that works and I'll investigate why the later version included in 18/06A is causing a conflict somewhere...
Cheers,
David.
--
PriceTapestry.com
Hi David,
I am having the same problem with the tabs - they display but nothing happens when clicked on. I have tried copying the previous version of jquery.min.js as per your previous workaround.
Do you have any suggestions?
Thanks,
Simon
Hi Simon,
I checked the link to the example from your other post to check the source and noticed that jquery.min.js is still the later version (3.3.1) so it doesn't look like the rollback has overwritten the new version. If you could double check that you are rolling back to the version from the 16/10A distribution (2.1.0) that should be all it is - once online if you View > Source of your site then click on the link to jquery.min.js in the header to view the code you should see the version string at the very start of the file...
Cheers,
David.
--
PriceTapestry.com
Hi David,
Thanks for your previous reply - don't know what I did last night but it worked this morning after trying again - Thanks.
I'd like to add another 2 tabs after Amazon & eBay. I've got the additional tabs to appear but cant manage to populate them.
Here's what I have so far...
This is the additional code I've added to html/prices.php
if (file_exists("html/contents.php"))
{
$prices_use_contents = TRUE;
$prices_active ="contents";
}
<dd class="tab-title <?php print ($prices_active=="contents"?"active":""); ?>" onclick='JavaScript:prices_load_contents();'><a href="#prices_contents"><?php print "Contents"; ?></a></dd>
<div class="content <?php print ($prices_active=="contents"?"active":""); ?>" id="prices_contents">
<div class="preloader"></div>
and this JS
<?php if ($prices_use_contents): ?>
var prices_contents_loaded = false;
function prices_load_contents()
{
if (prices_contents_loaded) return;
$("#prices_contents").load("<?php print $config_baseHREF."html/prices_contents.php"; ?>", function() {});
prices_contents_loaded = true;
}
<?php endif; ?>
The contents of html/contents.php is:
<?php
print ($product_main["product_contents"]);
?>
Where $product_main["product_contents"] lists the contents of the box.
Thanks,
Simon
Hello Simon,
As the content is static, it would be much easier simply to render it into the tab when the page is generated and $product_main is in scope. It could be loaded dynamically, but you would have to pass the product name to html/contents.php and have that script make the necessary database call to obtain the content.
To do this, simply remove the JS section added, and for the tab itself;
<dd class="tab-title <?php print ($prices_active=="contents"?"active":""); ?>"><a href="#prices_contents"><?php print "Contents"; ?></a></dd>
...and the panel:
<div class="content <?php print ($prices_active=="contents"?"active":""); ?>" id="prices_contents">
<?php print $product_main["product_contents"]; ?>
</div>
Cheers,
David.
--
PriceTapestry.com
Hi David, That makes sense - thanks.
I'm guessing by doing it this way I would get the benefit of search engines being able to read the additional content which it wouldn't be able to do if it was JS.
Thanks again.
Simon
Hello David
Has ebay changed the script? I don't get any results just Sorry, no results found.
Thank You
Dean
Hello Dean,
eBay should be working as normal however I believe they have begun to implement usage capping, if you want to check the response for a specific error message if you temporarily edit searchresults_ebay.php and look for the following code around line 139:
$xml = api_fetch($url);
...and REPLACE with:
$xml = api_fetch($url);
print "<pre>".htmlentities($xml)."</pre>";
Then when switching to the eBay tab, any error message contained in the response should be displayed. If you're not sure from the response where the problem lies (or if there is no output), let me know and I'll check it out further with you...
Cheers,
David.
--
PriceTapestry.com
Hello David
I tried the code you gave me but same results. No error messages.
Thank You
Dean
Hello Dean,
Are you using Amazon on the site installation without problems, or only eBay so far?
Cheers,
David.
--
PriceTapestry.com
Hello David
Yes Amazon is working fine.
Thank You
Dean
Hi Dean,
Try making the following temporary modification to show any transport level error, edit html/api.php and look for the following code at line 12:
$xml = curl_exec ($ch);
...and REPLACE with:
$xml = curl_exec ($ch);
print curl_error($ch);
Then view the eBay tab again and see if anything is displayed that might indicate the problem...
Cheers,
David.
--
PriceTapestry.com
Hello David
I tried it on several sites it does not change.
Thank You
Dean
Hi Philip,
The Async Amazon and eBay modules (where results open in tabs) work fine with the latest distribution - what problem were you having specifically, or were you trying to use the old inline versions (where results are displayed on the same page)?
Cheers,
David.
--
PriceTapestry.com