You are here:  » Reinstall from 14/06A to 15/09A and Search Results Banner, Page Navigation and Filters not displaying


Reinstall from 14/06A to 15/09A and Search Results Banner, Page Navigation and Filters not displaying

Submitted by j.whittlesea@bt... on Sun, 2016-05-08 12:31 in

Hi David,

I deleted 14/06A and reinstalled 15/09A and PriceTapestry.org for WordPress 2.0, resetting up using database settings and passwords from previous version. Feed files deleted and edited the import names with _ and .xml as appropriate and ran jobs again and then registered new feeds.

Removed Yoast SEO Plugin to get Page Titles displayed but cannot get Search Results Banner, Page Navigation and Filters to display. Using the Twenty Fourteen Child theme.

Can you please have a look at {link saved}

Also within the /shopping URL, the page names have the site name twice.

I can supply wordpress login details to assist your investigations.
Many thanks.
Jeff

Submitted by support on Mon, 2016-05-09 07:23

Hello Jeff,

The title duplication may be a function of the theme however it's no problem to remove the instance inserted by the pto plugin so that it only appears once. In pto.php look for the following code at line 290:

$content = $title." | ".($content?$content:(isset($post)?$post->post_title." | ":"").get_bloginfo("name"));

...and REPLACE with:

$content = $title." | ".($content?$content:(isset($post)?$post->post_title." | ":""));

Regarding the search results banner, could you check from wp-admin > Settings > PriceTapestry.org that the Search Results / Banner template is populated correctly - contents should be as follows;

<div class='pto_search_banner'>
Showing: %RESULTS_FROM% to %RESULTS_TO% of %RESULTS_TOTAL%
|
Order By:
<a href='%RELEVANCE%'>Relevance</a>
%IF_USEINTERACTION%
<a href='%RATING%'>Product Rating</a>
%ENDIF_USEINTERACTION%
Price:
<a href='%PRICEASC%'>Low to High</a>
<a href='%PRICEDESC%'>High to Low</a>
</div>

And similarly for Search Results / Navigation:

<div class='pto_search_navigation'>
%IF_PREVIOUS%
<a href='%PREVIOUS%'>Previous</a>
%ELSE_PREVIOUS%
<span>Previous</span>
%ENDIF_PREVIOUS%
|
%NAVIGATION%
|
%IF_NEXT%
<a href='%NEXT%'>Next</a>
%ELSE_NEXT%
<span>Next</span>
%ENDIF_NEXT%
</div>

Filters need to be enabled by way of the widget, and can be added to a suitable widget area from wp-admin > Appearance > Widgets.

If all looks in place or you're still not sure at all let me know and I'll check it our further with you...

Cheers,
David.
--
PriceTapestry.com

Submitted by j.whittlesea@bt... on Mon, 2016-05-09 12:32

Thanks David for your quick reply.

Done first change with an additional ")" at the end for completeness, worked on some pages but others still duplicated, this may also be linked to banner and navigation as well.

The banner code within the Search fields was unchanged from that specified as had previous found another topic that mentioned that. Is the problem to do with posts being used together with static pages in Wordpress?

Regards

Jeff

Submitted by j.whittlesea@bt... on Mon, 2016-05-09 12:37

PS, sometimes, when selecting more information, it ends is a loop with only recommended products displayed!

{link saved}
shows a product with Related Products and if the 1st related product is selected, it give just related products.

see result here.
{link saved}

Regards

Jeff

Submitted by support on Mon, 2016-05-09 15:08

Hello Jeff,

Regarding the page title and lack of banner / navigation, yes I think these are related and is down to case-sensitivity of the test used to determine whether the page is plugin generated or not. I noticed that the permalink of your container page was "Shopping" so if it is the case the corresponding setting at wp-admin > Settings > PriceTapestry.org is "/shopping" if you change this to "/Shopping" that should be all it is.

Regarding products not found, as of Price Tapestry 15/09A the normalisation regexp was moved into a configuration variable which permits full-stop as part of a normalised value, so I will update the plugin accordingly, in the mean time, to correct this if you edit the plugin file pto.php and look for the following code at line 165:

  $pto_product = (isset($pto_product)?pto_common_normalise(urldecode($pto_product)):"");

...and REPLACE with:

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

...all product pages should then appear correctly.

Hope this helps!

Cheers,
David.
--
PriceTapestry.com

Submitted by j.whittlesea@bt... on Mon, 2016-05-09 17:09

Hi David,

Navigation all working great now. Page Title was Shopping, permalink was shopping and the wp-admin > Settings > PriceTapestry.org was "/Shopping" but now changed to "/shopping" to match permalink. Many thanks for that as I have been checking support pages for over a week now with various changes not working.

Re {link saved} and the More Information links from the 1st related products. The change did not work for the first product with a "." in it. The other two product links work ok, one has a "/" in the product name but notice this is removed from the more information URL, is this relevant?

Best wishes

Jeff

Submitted by support on Tue, 2016-05-10 08:15

Hello Jeff,

Apologies for the inconvenience, I can't trace through why the change isn't taking effect so I'd like to add a little debug code to help reveal where the problem lies - please could you email me from this installation the plugin files pto.php and pto_product.php and I'll check it out further with you...

Thanks,
David.
--
PriceTapestry.com

Submitted by j.whittlesea@bt... on Sun, 2016-06-12 07:35

Sorry for the delay in replying but only just had time to look at again and done the suggested change again to the pto.php file in the PTO folder within Wordpress as follows

/*
change from David for decimal points in product name
*/
$pto_product = (isset($pto_product)?pto_common_normalise(urldecode($pto_product),"."):"");

and it worked. Many thanks.

Now have another problem with a question mark in some product names (600 out of 500,000 products) and will investigate further before raising a new query if required.

Thanks Again
Jeff