Sh404 and hard coding of Choose Options Button

  • Posts: 6
  • Thank you received: 0
9 years 1 month ago #216653

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.4
-- PHP version -- : 5.6.5
-- Browser(s) name and version -- : Safari. v 9.0

Hi there, I've recently installed sh404 by weeblr to deal with 404 errors on my site. I have a problem with making this work with hika shop however. When i have sh404 enabled and click the usual 'choose options' button to be taken to the product page in my shop i get a 404 error.

I have been in touch with the guys at sh404sef and they said:


Because it's hardcoded, instead of following the Joomla API for URLs, then the non-sef is never passed to sh404SEF which cannot create and record a SEF URL for it.

Please note that this is not related to sh404SEF. The above screen shot was done with sh404SEF disabled and Joomla SEF disabled as well, and you get the same problem.

In other words, the Joomla SEF URLs are hardcoded in your button and nothing can replace them.


Is there a setting i can alter to make this hika shop work with sh404sef correctly? Or anything else I can do to make it work?

Thanks.

Andy.

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
9 years 1 month ago #216679

Hi,

The URL is not hard coded of course. If it was, it would be the same for all the products :)
I suppose that the issue is that you have canonical URLs in your products and that you have the "force canonical URLs on listings" setting activated in the HikaShop configuration. And then, you installed SH404SEF, but since HikaShop already has canonical URLs in the products, it doesn't recalculate them through the SEF system but directly use them in the listings.
SH404SEF doesn't have any knowledge of the non-SEF URL equivalent of the canonical URL and thus can't translate it, but Joomla's SEF doesn't have that problem as it dynamically recalculates its non-SEF equivalent.

So you have two solutions:
- You turn off the "force canonical URLs on listings" setting.
- You clear the canonical URL of your products.

Please Log in or Create an account to join the conversation.

Time to create page: 0.056 seconds
Powered by Kunena Forum