Problem with URLs of products and categories

  • Posts: 1
  • Thank you received: 0
9 years 8 months ago #225420

-- url of the page with the problem -- : www.mbit.gr
-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.4
-- PHP version -- : 5.6.15

EDIT: I think I found a way. I switched to canonical, set the menus exactly as I wanted them and then deleted some of the existing canonical urls from the products. As soon as I saved those products with blank canonicals, they got new Canonical URLs automatically, which seem to be correct. I guess it was just stuck to the first canonicals and when I modified some menus etc. it kept "showing" to the old urls. Is there an option somewhere in hikashop to regenerate canonicals alltogether or do I have to do them one by one for each product?

The "category" and "product" still show up in the urls, but they're not a problem since the urls are complete and correct.

+ the module works fine now! :D

Thank God I found it. I was almost ready to use virtuemart, which I totally hate.



Hello guys,

Thank you so much for the hikashop. Despite of the problems i'm gonna talk about below, I think it is a very well done job! :D

So, my problem is with the URLs of the products and categories. I have tried different settings and I still can't get them to work correctly.

What I want my urls to look like is this:
www.mbit.gr/eshop/category name/sub category name/product name

Where "category name", "sub category name" and "product name", I want it to generate automatically the correct name of the chosen category, the sub category and the product.

I have tried both Canonical and URL setting in Hikashop configuration but I still get bizzare urls.

For example go to the website and on the main menu, choose e-shop. Until here, everything works fine. But when you open the page, you will notice at the 3 categories below, that their urls look like this: www.mbit.gr/index.php/eshop/category/used-products But I want it to look like:
www.mbit.gr/index.php/eshop/used-products

Then if you want to visit a subcategory, the link looks like this:
www.mbit.gr/index.php/eshop/category/used-towers when it should look like:
www.mbit.gr/index.php/eshop/used-products/used-towers

And the same thing happens if you click on a product. For example, under the used towers, click on the first product.
www.mbit.gr/index.php/eshop/product/hp-dc7900 when it should be
www.mbit.gr/index.php/eshop/used-products/used-towers/hp-dc7900

Here's another weird problem. Depending on how you navigate to the product, you get a different url. It's like there are 2 urls for every product. For example, go to main menu: eshop(do not click) and choose from the dropdown list, Κουτιά (Cases) under Hardware. Now click on the first product. This is the link you get:
www.mbit.gr/index.php/eshop/hardware/cas...e-blue-led-120mm-fan
and the breadcrumbs show the full path
Now, don't close the page, and just click on "eshop" on the breadcrumbs. Then on hardware, then on Κουτιά (Cases) and click the first product again. Here's the url you get now:
www.mbit.gr/index.php/eshop/product/powe...e-blue-led-120mm-fan
and the breadcrumbs doesn't show the full path.

Now, depending on the configuration I make at the hikashop, some things work and some not. For example now that I have URL selected instead of Canonical, a module I have created to show at the sidebar of "used-products" category, ONLY shows up if you navigate through the Main Menu. If you start navigating among the products, it suddenly dissapears.

This last one DOESN'T happen if I use Canonical. It shows the module allright, BUT it totally messes up the urls of the products and the categories. For example if I set it to canonical and navigate to a product which is under /used-products/used-towers the url is totally messed up and it shows: /category/used-laptops/(product name)
So for no reason at all it gives it a url of a totally different subcategory.

I'm pretty sure I am missing something, but I have tried so many different combination that my only solution was to ask here.

Thank you for your time :)

I have attached some photos. If you need anything else let me know.






Attachments:
Last edit: 9 years 8 months ago by Tigran.

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

  • Posts: 84328
  • Thank you received: 13718
  • MODERATOR
9 years 8 months ago #225454

Hi,

To reset all the canonical URLs at once, you can use a mass action with an action "update the values" on the "product_canonical" column and an empty value:
www.hikashop.com/support/support/documen...massaction-form.html

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

  • Posts: 252
  • Thank you received: 3
9 years 8 months ago #226024

Hello,
Before I do something wrong.
Are these the correct settings for resetting the canonical url?
Thanks

Attachments:

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

  • Posts: 13201
  • Thank you received: 2322
9 years 8 months ago #227288

Hi,

For the type it is better to select "String" instead of "Int", else it is correct.
As usual a backup of the database is always recommended before launching a mass action.

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

  • Posts: 252
  • Thank you received: 3
9 years 8 months ago #227332

thanks

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

Time to create page: 0.115 seconds
Powered by Kunena Forum