products not showing from Category

  • Posts: 38
  • Thank you received: 2
  • Hikashop Business
1 month 3 days ago #365935

-- HikaShop version -- : 5.1.5
-- Joomla version -- : 5.2.4
-- PHP version -- : 8.2.26
-- Browser(s) name and version -- : Firefox 135.0.1 (aarch64)

Hi, I have upgraded my system from Joomla3 to J5. Using Cassiopeia. Hikashop is working correctly on my live site: aienglish.co.uk/taab/
Please see the accordion menu on the left.products are displayed when the sub category (level2) is clicked.
I have the J5 updated site on MAMP V.7.7.2 the categories are showing correctly but no product is shown when the sub category is clicked. A 404 page not found message is shown. Hikashop content all looks correct from the back end.
I have tried to rebuild the menus
I have checked the settings between the old and the new site.
I have tried making a new module but have the same issue.
Please can you advise where to look and how to try ans solve this. I have spent a week going round and round in circles!
Thank you
Tony

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

  • Posts: 83512
  • Thank you received: 13511
  • MODERATOR
1 month 3 days ago #365937

Hi,

Are the URLs of the categories in the left module the same as on your live website ?
Do you still have a menu item with the alias "product-shop" ?
Could you activate the debug setting of the Joomla configuration and access the 404 error page of a category ? Could you provide a screenshot of what you see ?

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

  • Posts: 38
  • Thank you received: 2
  • Hikashop Business
4 weeks 4 hours ago #365982

Hi Nicolas, thanks for the help
Yes the URLs appear to match
Please see comments after each match

aienglish.co.uk/taab/product-shop/category/15006-buffers
Live site = works
https://taab1:8890/taab/product-shop/category/15006-buffers
Local site = 404 error

aienglish.co.uk/taab/product-shop/catego...c-wipes-and-cleaners
Live site = works
https://taab1:8890/taab/product-shop/category/15446-anti-static-wipes-and-cleaners
Local site = 404 error

aienglish.co.uk/taab/product-shop
Live site from top Nav = works
https://taab1:8890/index.php/product-shop
Local site from top Nav = works

aienglish.co.uk/taab/product-shop/hikash...r-categories-listing
Live site from top Nav = works
https://taab1:8890/index.php/product-shop/hikashop-menu-for-categories-listing
Local site from top Nav = works

Sub category (from top nav category=
https://taab1:8890/taab/product-shop/category/beakers-ptfe
Local site = 404 error
aienglish.co.uk/taab/product-shop/category/beakers-ptfe
Live site = works

I have enabled the error reporting for this first larval category
https://taab1:8890/taab/product-shop/category/14984-chemicals
Error message as attached image
Thanks
Tony

Attachments:

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

  • Posts: 83512
  • Thank you received: 13511
  • MODERATOR
3 weeks 6 days ago #365987

Hi,

Do you have some kind of SEF extension, like SH404SEF ( 4SEF ), or JomSEF, or others ?
Something strange with your results is that even on the live website, some URLs don't have the id of the category in the URL (like the beakers ptfe). Normally, either all of them should have the id or none of them.
This indicates that you probably activated the "force canonical URLs on listings" setting of the HikaShop configuration:
www.hikashop.com/support/documentation/5...ig.html#features_sef
And in that case, the URL used is the "canonical URL" that you configured in the settings of the category, even if the URL there is invalid. And so, if you setup a category with a canonical URL using the alias of a menu item, and that something changes with that menu item or with some SEF settings, the URL would then generate a 404 error.
For example, I can see that you have the "category SEF name" setting set to "category" on your live website. If you changed that setting on your local website, then all the canonical URLs of the categories with that "category" SEF name would be invalid instantly.
Could you provide a screenshot of the "SEF" section of the HikaShop configuration page on your local website ?
What if you empty the "canonical URL" of a category and then refresh your frontend, and access that category ? What URL is now used ? Do you still have the 404 error ?

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

  • Posts: 38
  • Thank you received: 2
  • Hikashop Business
3 weeks 6 days ago #365988

Hi Nicolas

I think you may have found the issue..
I do not think I have any SEF extension (at least not deliberately)
I have removed the canonical URLS as suggested and these changed items:
Category > sub-category > product. These now all work
I have attached the screen shot for the live site and for the local site.
Thanks for the quick reply
Tony

Attachments:

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

  • Posts: 38
  • Thank you received: 2
  • Hikashop Business
3 weeks 6 days ago #365989

Hi Nicolas
I also included a screen shot of the local site
Product shop
> Product page.
error message.
Thanks
Tony

Attachments:

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

  • Posts: 83512
  • Thank you received: 13511
  • MODERATOR
3 weeks 6 days ago #365993

Hi,

Great, we're moving forward.
For the product page, do you also have 404 errors for all the products ?
Do you have canonical URLs for all the products too ? If so, what if you empty the canonical URL of the product ? Does it help ?

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

  • Posts: 38
  • Thank you received: 2
  • Hikashop Business
3 weeks 6 days ago #365998

Thanks for the update.
The product-page is essentially the same as the product listing page.
It would seem that this "product-page" is miss-configured - image attached.
Its probably easier to delete this menu item?
When the "product shop" top menu on the live and local site is activated
Product shop/categories listing
The categories are shown but below that there are all the products showing. This is confusing can you help on this. do you need the logon for the live site?
Also on the local site when I click on the accordion menu (Left hand side) "Chemicals" I get a list of categories shown in the main content with images. This should be like the live site and only open the accordion to the sub menu. where can I change this please.
Sorry for all the questions, hopefully this should start to resolve this.
Many thanks

Attachments:

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

  • Posts: 83512
  • Thank you received: 13511
  • MODERATOR
3 weeks 6 days ago #365999

Hi,

- Indeed, you need to select a product in the "select a product" setting. Without any product selected, it's normal that you get that error.-
You probably don't need this menu item. So yes, I think you can just delete it.

- Edit the settings of the "Categories listing" menu item via the Joomla menu manager. There, under the "products options" tab, change the "sub elements filter" setting to "direct sub elements". That should remove the products from the categories listing page.

- The accordion system on the left side is made with the Accordion CK module apparently. If the accordion doesn't open when you click on the name of a category, then it's probably something to do with the settings of that module. I'm afraid you'll have to check with the developer of that module for this issue as I don't know how it's made.

The following user(s) said Thank You: Harlequin

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

  • Posts: 38
  • Thank you received: 2
  • Hikashop Business
3 weeks 6 days ago #366007

Hi Nicolas
A big thank you. That has sorted most issues. I will work through and hopefully resolve the outstanding myself.
Excellent support as always

The following user(s) said Thank You: Philip

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

Time to create page: 0.073 seconds
Powered by Kunena Forum