You are here:  » Not displaying results in search


Not displaying results in search

Submitted by SteveBolton on Tue, 2017-02-14 11:43 in

Hi David,
trust you are well - I have just set up the script using a copy from another site, which is installed in a sub directory of a Wordpress site, same as the first site I set up; I think I have changed everything I need to re databases etc, but not getting any results on the wordpress page, the /pt page is displaying ok but when I click on an image it goes through to the Wordpress page...??

I also got this error message when I looked at setup.php:

WARNING: $config_useRewrite is TRUE but .htaccess not found.

Not sure if this is causing my issue in Wordpress, any pointers?

Thanks in advance and best regards,
Steve

Submitted by support on Tue, 2017-02-14 12:04

Hi Steve,

In reverse order, when using PriceTapestry.org for WordPress, there is no need for rewrite to be enable so in pt/config.php you can change line 8 back to the default of;

  $config_useRewrite = TRUE;

If that message is displayed however, that means that Price Tapestry is set-up at least according to the database settings in pt/config.php, however, if nothing is displayed in the WordPress installation when searching from your /shopping page (or whatever slug you have chosen to use), that would _normally_ indicate that WordPress and Price Tapestry are not in the same MySQL database. Please refer to Step 3 at http://www.pricetapestry.org/quick-start-wordpress to double check that database settings are the same.

If not, it is normally easiest to move Price Tapestry into the WordPress database - there should not be any conflict as WordPres uses a table prefix of wp_ and Price Tapestry uses pt_ however if this is the case, before making any changes;

1) From /pt/admin/ go to Tools > Backup and Restore and use the Backup form to download the .xml file containing all Price Tapestry installation data

2) Edit /pt/config.php to have the same database settings as wp-config.php

3) Run pt/setup.php to re-install Price Tapestry into the same database as WordPress

4) Finally, from /pt/admin/ go to Tools > Backup and Restore and use the Restore form to upload the .xml file saved in step 1 to restore the Price Tapestry installation. Finally, re-import all feeds to complete the migration...

Hope this helps!

Cheers,
David.
--
PriceTapestry.com

Submitted by SteveBolton on Tue, 2017-02-14 12:38

Hi David,

Thanks for getting back to me - I had set up the PT files in the wrong directory, but have moved them and followed what you recommended, the Wordpress page now works ok, however, I still am getting the same issue when I click through from the pt home page on a product it directs me to the Wordpress page with no results...

Thanks in advance for your help,
Best regards,
Steve

Submitted by support on Tue, 2017-02-14 12:45

Hi Steve,

That just sounds like $config_baseHREF in /pt/config.php now - which (if you have installed Price Tapestry in /pt/ folder) would be..

  $config_baseHREF = "/pt/";

Cheers,
David.
--
PriceTapestry.com

Submitted by SteveBolton on Tue, 2017-02-14 12:48

Hi David, I have just checked and it is set to that, very odd...Steve

Submitted by support on Tue, 2017-02-14 12:53

Hi Steve,

If possible could you please email me a link to the installation and I'll check it out further with you...

Cheers,
David.
--
PriceTapestry.com

Submitted by SteveBolton on Tue, 2017-02-14 12:55

Hi David, the Wordpress side is working fine now, it's just this quirk on the pt page where the links are clicking through to the /best-price page I have set up in Wordpress, not a show stopper as I am not using the pt page for search, thanks and best regards, Steve

Submitted by support on Tue, 2017-02-14 12:59

No worries - just let me know if you'd like me to take a closer look...

Cheers,
David.
--
PriceTapestry.com