You are here:  » Include price comparison table on non PT website


Include price comparison table on non PT website

Submitted by NiceGuyEddie on Fri, 2014-02-14 19:25 in

Hi,

If I have an existing 'non price tapestry' static website, on the same server as my price tapestry installation, can I use a php include or something to insert just the price comparison information on it.

For example if I have a page promoting 'blue widget 543' on my existing non PT static website, I would want to pull the price comparison for the 'blue widget 543' from the price tapestry database and display it on my page.

Hope my question makes sense.

Thanks

Submitted by support on Fri, 2014-02-14 19:46

Hi NiceGuyEddie, and welcome to the forum!

Yes!

Before I launched PriceTapestry.org for WordPress, I created a suite of "external scripts" that are essentially the minimal PHP needed to pull in content from the Price Tapestry database into another website (with PHP support) running on the same web server. It was because the vast majority of people using these scripts were using them within a WordPress environment that I went on to develop the plugin.

You can download and read all about them on the original thread here.

However, since they were created some time ago, they relate to a much older version of Price Tapestry, and since launching the plugin I haven't (until today!) received a request for external support related to the latest version.

They _will_ work because of the way I have structured backwards compatibility as Price Tapestry has been developed, however they will not be using the latest search indexes and performance improvement modifications, so you may wish to give them a try "as is", but either way, bear with me and I will update these scripts for 13/03A and drop you an email as soon as they're ready to try.

Cheers,
David.
--
PriceTapestry.com

Submitted by NiceGuyEddie on Fri, 2014-02-14 22:36

Hi David,

Thats very kind!

I think I will wait for the updated scripts whilst I am playing around with my new Price Tapestry script. So far I am loving it...very powerful. Thanks!

Submitted by support on Sun, 2014-02-16 12:34

Thanks for your comments!

Just to keep you updated, I'm planning to publish the updated external scripts for 13/03A tomorrow (Monday) - thanks for bearing with me!

Cheers,
David.
--
PriceTapestry.com

Submitted by support on Mon, 2014-02-17 11:06

Hi everyone,

External Scripts updated for 13/03A. Full details can be found here.

Cheers,
David.
--
PriceTapestry.com

Submitted by Leo on Mon, 2014-02-17 15:34

Great thanks for the update! I still used the old ones.

Submitted by support on Mon, 2014-02-17 15:38

No problem!

The old ones will be absolutely fine for niche installations / smaller databases or if you're not using voucher codes functionality. Updated searchExternal.php uses the new indexes of 13/03A, and updated pricesExternal.php includes voucher code integration level 1 support (vouchers codes applied at product page view time).

Cheers,
David.
--
PriceTapestry.com

Submitted by NiceGuyEddie on Mon, 2014-02-17 16:59

Thanks David!

I have tested the pricesExternal script and it appears to be working correctly apart from merchant name/stockist does not use the logos in the prices table. I am not sure if this is down to something I have changed in the TP script to force lowercase urls?

Cheers

Paul

Submitted by support on Mon, 2014-02-17 17:38

Hi Paul,

Ah - just a small change required to your html/prices.php to support logos being pulled in externally - within line 11 you will find:

file_exists("logos/".$product["merchant"])

...REPLACE with;

file_exists((isset($external_path)?$external_path:"")."logos/".$product["merchant"])

(original external scripts pre-dated merchant logos!)

Cheers,
David.
--
PriceTapestry.com

Submitted by NiceGuyEddie on Mon, 2014-02-17 17:50

Thanks David. Everything is working now.