Not understanding modules and URL's

  • Posts: 35
  • Thank you received: 0
10 years 2 weeks ago #201234

-- HikaShop version -- : 2.33
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.4.35
-- Browser(s) name and version -- : Chrome Mac

Hi,

I am just setting up some modules and I have troubles getting it right. I assume that it is my understanding of the detailed settings for modules.

Here is my test server
cqh73.joomexp.com/gavick/

If you scroll down to the homepage you will see tabs with one saying Categories. This is a Hikashop module displaying categories. If I click on for example "Original Buff" I get screenshot 2. Instead of going to Home / Shop / Original Buff® (the menu I set up for every category) I get
Home / Menu item for category listing module 813 / Original Buff®

It's the same if you click on "Best Sellers". The product URL is different than if you go through the menu.

What do I have to do to get every category module to lead to one category Url and one product URL so that I don't have duplicate URL's for the same content?

Regards,

Edward


Regards,

Edward
Attachments:

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

  • Posts: 35
  • Thank you received: 0
10 years 2 weeks ago #201259

Now I know why I didn't find anything under modules. It's of course a SEF issue.
I have activated the option "Use canonical URL and generate if missing" but it doesn't do any filling. This creates 2 questions.

1. What do I have to do to get Hikashop to fill in the URL?
2. What does the structure of the URL in the canonical field look like? Is it the full url or just the relative part?

Regards,

Edward


Regards,

Edward

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

  • Posts: 35
  • Thank you received: 0
10 years 2 weeks ago #201262

1. it seems to work now but I don't know why.
I have noticed that sometimes there is a lag between changing settings and seeing the changes. I browse the test server with Fireforx and have all cache disabled and force to check for a newer version of the page every time. Is there a recommended waiting time to see changes happen or any trigger I should be aware off?

2. The resulting URL is weird
/gavick/index.php/hikashop-menu-for-module-813/category/28-original-buff.html
I went through the main menu so I clicked on "Shop" which has ...module-880 associated and not ...module-813. 813 is a published module for the homepage categories display. I did not touch that at all so no URL was created that looked like the canonical URL. Do I have to worry?


Regards,

Edward

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

  • Posts: 83831
  • Thank you received: 13572
  • MODERATOR
10 years 2 weeks ago #201271

HI,

1. When you edit a module via the menu Display>Content modules, you can select the target menu item of the links in the "menu" setting.
If you don't have the same menu item selected, you'll get a different menu item alias in the URLs.

2. Also, a simple solution is to use the "Force canonical URL on listings" option of the HikaShop configuration to auto fill the canonical URLs of the products so that the same link would be used on all the listings, regardless of the "menu" setting.

3. The automatic filling will be done only when the system needs to generate the URL on the frontend. So as long as you don't display the products listing on the frontend, you won't see the canonical URL filled in the product.

4. It's the relative path of the URL which is put in the canonical URL field, but it can also accept the full path.

5. There is no cache in HikaShop. So changes should be automatic. The only reason it wouldn't would be some other cache somewhere.

6. hikashop-menu-for-module-813 is the alias of your menu item. You can change it when you edit your menu item via the joomla menu manager.
"category" is the "category sef name" that you configured in the HikaShop configuration. So you can change it if you want.
28 is the id of the product, that you can remove if you turn on the "remove category and product ids from URLs".
original-buff is the alias of the product so you can change it in the product if you want.
/index.php and .html are added by joomla.

The following user(s) said Thank You: buffdownunder

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

  • Posts: 35
  • Thank you received: 0
10 years 2 weeks ago #201280

to 1: So that's what the "menu" setting is for :-) I suppose the field needs the menu ID.
to 6:
I think I understand the URL elements, Nicolas. I am just concerned that the menu has module-880 associated and the url created is takes a different module (with the ID 813). I am asking myself how this can happen and if it can create issues further down the track when I've forgotten this.
Could it be that
-module_880 is unpublished while ID-813 is published
-I accessed the page from the homepage that has ID-813 published
...


Regards,

Edward

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

  • Posts: 35
  • Thank you received: 0
10 years 2 weeks ago #201306

o 6:
This one is weird too. If I enable "remove category and product ids from URLs" I get the message "Product not found" when clicking through to a product page. If I disable it everything works fine. These are my settings in the configuration. Would could I miss?


Regards,

Edward
Attachments:

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

  • Posts: 83831
  • Thank you received: 13572
  • MODERATOR
10 years 1 week ago #201339

Hi,

The module 813 is the one from which you came and the 880 is the one associated with the target menu item.

When you activate the "remove category and product ids from URLs" setting, the ids are removed in the URLs. However, the system still look for the ids in the URLs, for backward compatibility and in order for your google ranking to not go down temporarily. So if your products name start with a number, it will actually look for a product with that number as id and thus won't work properly. The solution in that case is to enter the alias you want for each product without having it starting with a number.

The following user(s) said Thank You: buffdownunder

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

  • Posts: 35
  • Thank you received: 0
10 years 1 week ago #201345

Aaah,

I wanted to reduce the product name to the design name as Hikashop allows so much more in classifying and displaying product features. Now I have one reason more to strip down the names.

Thanks to Mass actions I can do that easily. Thanks again for such a great extension. It is a joy to work with it


Regards,

Edward

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

Time to create page: 0.480 seconds
Powered by Kunena Forum