You are here:  » Installation questions

Support Forum



Installation questions

Submitted by Zemmy on Tue, 2011-04-26 15:27 in

I would like to run PT alongside Wordpress, with products pulled into Wordpress posts. The customer should then be able to click through to the PT installation for detailed info and price comparisons. My questions are:

1) Where should I install PT? Wordpress is currently in its own subdirectory at domain.co.uk/wordpress. This is automatically loaded by index.php in the site's root directory. Should PT be in a subdirectory of wordpress or a subdirectory of the main site?

2) Is it better to use the same database as Wordpress or a separate one? I would prefer them to be separate if this is possible.

Thanks in anticipation.

Zemmy

Submitted by support on Tue, 2011-04-26 15:41

Hi Zemmy,

It's probably easiest to install Price Tapestry into its own sub-directory, within a suitably named folder for example /comparison/

(when installing into a sub-directory, don't forget to set $config_baseHREF in config.php and if using clean URLs (.htaccess) RewriteBase in .htaccess - see installation instructions for full details.

With that in place, you'll find the basic external scripts here. What I would suggest is implementing pricesExternal.php on a test product page first to get the price comparison table pulled into your Wordpress product page; and then drop me an email with the "calling code" (the PHP snippet that you added to your post) that you have working, and describe what (if any) other product information you would like to have displayed at that point, and how you would like the link to the /comaparison/product page to be displayed.

Regarding database, for the easiest integration it would be best to use the same actual database - Wordpress uses wp_ and Price Tapestry uses pt_ as default table prefixes so there is no problem in terms of naming conflicts; however it normally will work fine with a different database however what can sometimes happen is Wordpress content fails to generate after the point at which the external script was called; however I do have a fix for that if it's a problem.

Cheers,
David.
--
PriceTapestry.com

Submitted by Zemmy on Wed, 2011-04-27 15:51

Many thanks for your swift response, David. I've sent you an email as suggested.