You are here:  » Cannot browse by merchant,category or brand


Cannot browse by merchant,category or brand

Submitted by NiceGuyEddie on Thu, 2014-04-17 14:37 in

Hi,

I have downloaded and installed "13/03A + New Responsive HTML Front End" on a brand new test website. I have imported a couple of product feeds for testing and everything looks and works perfectly apart from when I try to "search or browse by merchant, category or brand". There's nothing there in the results pages for these.

Could there possibly be a problem with the download or is there something i can check with my installation?

Thanks

Eddie

Submitted by support on Thu, 2014-04-17 16:46

Hi Eddie,

This could happen if you have enabled rewrite (search engine friendly URLs) by setting $config_useRewrite to TRUE at line 8 in config.php:

  $config_useRewrite = TRUE;

...but have not yet created your .htaccess file. The file is included in the distribution as htaccess.txt, so the easiet thing to do, if your Price Tapestry installation is in the top level folder of your website, is simply to use your FTP program to connect to your website and then in the remote window, right-click on

htaccess.txt

...and then RENAME to

.htaccess

That should be all it is! If your test installation is in a sub-directory, then .htaccess must be modified so that RewriteBase (line 5) is set according, e.g.:

  RewriteBase /foldername/

And this sholud correspond to $config_baseHREF at line 6 of config.php e.g.:

  $config_baseHREF = "/foldername/";

Hope this helps!

Cheers,
David.
--
PriceTapestry.com

Submitted by NiceGuyEddie on Thu, 2014-04-24 17:28

Hi David,

I have tried rewrite with all appropriate settings in place and also without rewrite and I still get nothing for merchant, category or brand.

If I search for a product I, from the serults page I can filter the results by merchant, category and brand successfully.

I have made a clean install a few times with same result.

Any ideas what else may be the problem?

Cheers

Submitted by support on Thu, 2014-04-24 19:14

Hi Eddie,

Apologies for the inconvenience; could you possibly let me know the installation URL (I'll remove before publishing your reply) and I'll take a look on the site and see if I can spot anything for you...

Thanks!
David.
--
PriceTapestry.com

Submitted by NiceGuyEddie on Thu, 2014-04-24 22:25

Hi David,

The installation is at:

{link saved}

Cheers

Submitted by support on Fri, 2014-04-25 07:36

Thanks Eddie,

It looks like the multi-byte string extensions, used by the new html/atoz.php are not installed on your server so may not be as commonly available as I thought. I'll revert this in the distribution, in the meantime, if you edit that file and look for the following code at line 6:

  $atoz_letter = mb_strtoupper(mb_substr($item["name"],0,1,$config_charset),$config_charset);

...and REPLACE with:

  $atoz_letter = strtoupper(substr($item["name"],0,1));

...that should be all it is!

Cheers,
David.
--
PriceTapestry.com

Submitted by NiceGuyEddie on Fri, 2014-04-25 14:37

Hi David,

I installed the mb string extensions on my vps and now everything is working.

Thanks for the support!