Product pages wrong

  • Posts: 106
  • Thank you received: 1
  • Hikashop Business
10 years 1 month ago #209094

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.3
-- PHP version -- : 5.4.40
-- Browser(s) name and version -- : Firefox 39.0
-- Error-message(debug-mod must be tuned on) -- : Notice: Undefined property: ProductViewProduct::$canonical in /home3/mericaq5/public_html/aff3/components/com_hikashop/views/product/tmpl/show.php on line 12

When clicking on a product from a category page (Cutlery) from the Parent category Appliances, of the 4 products on the page, only one leads to the correct product.
1 (29 Piece Professional Cutlery Collection ) gives a message:Product not found -that is where the debug message is from.
1 (12 Piece Homemaker Set ) leads to a product in a totally different category, and different parent category
1 (Professional Kitchen Tool Set ) leads to the correct product
1 (8 Piece Steak Knife Set, including block ) leads to a product in a different category, but same parent category.
Also, all the products on the Cookware page under the Appliance and Housewares link gives the message Product not Found. The other 2 categories under the Appliances and Housewares Parent (Freezers and Grills) are working properly.
I cannot figure out what settings are controlling this.
I really would appreciate some help.

I also noticed that those categories are listed under the root as well as under the Parent Category Appliances and I can't figure out how to remove it from the Root. I don't know if this is part of the conflict.

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

  • Posts: 26274
  • Thank you received: 4045
  • MODERATOR
10 years 1 month ago #209104

Hi,

About the warning ; Thanks for the report.
The message is just a warning message ; so it does not generate any issue (except that your website display the PHP warning message, which is useful in development but less in production).
You can edit the file and replace

if($this->canonical) {
By
if(!empty($this->canonical)) {
It should remove the warning message (and we will add that patch in the next HikaShop release).

About your main issue ; I think you have an issue related to the SEF and the option to remove the ID from the url.
www.hikashop.com/support/support/documen...ig.html#features_sef
Can you please deactivate the setting "Remove products and categories id in URLs" ?
Do you have configured some canonical URL for these products ?

Joomla SEF system is using the first number in the URL in order to get the ID of the element (article, product, etc).
So when the Joomla router is reading the URL, it think that the product "29 Piece Profess..." is the product with the ID 29
Logically, HikaShop should add a letter just before in order to be sure to make the distinction between the product name and the ID read by Joomla.

Even if I didn't see in the hot patches something related ; it is possible that we already performed a fix ; so if you can re-download HikaShop 2.5.0 ; it could help.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: aimlesslady

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

  • Posts: 106
  • Thank you received: 1
  • Hikashop Business
10 years 1 month ago #209219

Thank you!! The numbers in the beginning of the product name was the culprit. Thank you for you quick and accurate response!

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

Time to create page: 0.058 seconds
Powered by Kunena Forum