How do I sync "Category" display with "Menu Item"

  • Posts: 158
  • Thank you received: 6
10 years 7 months ago #186517

-- url of the page with the problem -- : offerings.myartisanweb.com/jewelry/category/rings
-- HikaShop version -- : 2.3.5
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.3.29
-- Browser(s) name and version -- : All
-- Error-message(debug-mod must be tuned on) -- : None

Hello,

On my home page, I have four modules in tabs that link to Hikashop content. The module displays the products once the category image or title is clicked. For example one module shows all categories in the parent category which is Jewelry and when you click on the category Rings you see a list of products at this URL:
offerings.myartisanweb.com/jewelry/category/rings

Notice that the menu alias has the word Category in it. Now, I have created a menu item for the category Rings and it has this URL: offerings.myartisanweb.com/jewelry/rings

1. Why doesn't hikashop immediately discern that I have the menu item for that category and point to that menu item from the category listing?

2. How do I get the products to display in the same order as the menu item criteria noted in hikashop-options. Specifically I need the products to be displayed according to Products_Created > Descending. This will re-order the products so the products to show up newest first in all views.

I can figure out a workaround using redirects, but I wanted to ask first to see if I didn't configure something correctly.

Note: Under Product View in Configuration I have it set to Descending > Product_Created as well as in every hikashop category menu item and module.

Thanks,

Dawn

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

  • Posts: 84304
  • Thank you received: 13698
  • MODERATOR
10 years 7 months ago #186641

Hi,

1. Because it's complex to do. First you could have several menu items leading to the same category, and you might actually want a specific one. And second, it would cost a lot of resources on each page to load all the menu items and check them for each category/product displayed which could slow down the display.
But there are solutions. First, the "category" text comes from the "SEF category name" option of the HikaShop configuration so if you empty that field, you can get the same link automatically.
Second, you can set the "Force canonical URLs on listings" option of the HikaShop configuration to "Use canonical URL and generate it if missing" so that HikaShop fills the canonical URL you want for each product and category automatically (that helps for SEO) and then you can change it to what you want if necessary when you edit the products/categories.

2. If you set the descending/product_created in the ordering options of your products listings, then they will be ordered like that on the listings. So I don't understand your question. Where else do you want to have the products in that order besides products listings?

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

  • Posts: 158
  • Thank you received: 6
10 years 7 months ago #186747

Hi Nicolas,

Happy New Year! I hope you are well.

Let me simplify my question to see if there is an answer for it first, before considering SEF options. This way, I can see if I messed up a configuration option in Hikashop or if I found a bug.

I just added a new product to the site with the image "Coming Soon". I placed it into the category Rings, Agate, and Everything Goes Here (the category for showing New arrivals on the homepage module).

Here's what it looks like so you can identify it easily:



On the homepage offerings.myartisanweb.com , you'll see it shows up first in the tab New Arrivals. This category module is sorted by product_created + descending. If you click on the next tab Shop By Jewelry Type and click on Rings, it will load the page: offerings.myartisanweb.com/jewelry/category/rings and you don't see the newest ring, in fact it is the last one on page 6.

Now if you click on the menu item Jewelry at the top of the page, then in the sidebar on the right click rings you'll get this page: offerings.myartisanweb.com/jewelry/rings . In this page, the newest ring shows up first (test coming soon).

How do I get the category URL displays of products to show up in descending instead of ascending order just like the menu items?

Warm Regards,

Dawn

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

  • Posts: 84304
  • Thank you received: 13698
  • MODERATOR
10 years 7 months ago #186781

Hi,

Thanks :) Happy new year to you too !

Go in the menu Display>Content modules and edit the module with the id 145. It's the one which displays your products on the page offerings.myartisanweb.com/jewelry/category/rings and thus that's the one where you want to set the ordering options product_created + descending.

The following user(s) said Thank You: artisanwebandprint

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

  • Posts: 158
  • Thank you received: 6
10 years 7 months ago #187891

Thanks Nicholas,

Now everything is sorted properly. Whew! That was not an obvious solution to me and I appreciate you help.

Best,

Dawn

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

Time to create page: 0.195 seconds
Powered by Kunena Forum