You are here:  » No products in WP


No products in WP

Submitted by ccgale on Fri, 2017-11-17 10:34 in

Hi

Having a bit of a strange issue. I have connected WP to my PT installation; when I go to /shopping and perform a search, I just get a page showing the search form and no products are returned. Odd.

However, I click on either the category, brand or merchant links under the search box /merchant /brand etc, I get a list of all the merchants etc matching that of my PT installation. This means the connection must be being made. However, clicking upon any of the merchants gives me, for example, merchant/5pointz/ in the url bar but no products.

I've played with various settings but cannot work out how I can be connected so that it can pull the categories et al, but none of the products.

Any advise would be most welcome, please

Submitted by support on Fri, 2017-11-17 11:15

Hi,

There was an issue in version 2 where in some cases a call to urldecode() on the query was returning an empty string; however this is not actually required so if you are running version 2, edit the plugin file pto.php and look for the following code at line 159;

  $pto_q = (isset($pto_q)?pto_common_normalise(urldecode($pto_q),":\."):"");

...and REPLACE with:

  $pto_q = (isset($pto_q)?pto_common_normalise($pto_q,":\."):"");

However if you're running version 3 (beta) that won't be the case - let me know and I'll check it out further with you...

Cheers,
David.
--
PriceTapestry.com

Submitted by ccgale on Fri, 2017-11-17 11:48

That sorted it. Many thanks. I was certain I was running the v3 plugin. Apparently not...