Feature Request(s): Class and Display Product Code

  • Posts: 21
  • Thank you received: 0
10 years 6 months ago #193517

-- HikaShop version -- : 2.3.5
-- Joomla version -- : 3.4
-- Error-message(debug-mod must be tuned on) -- : none

I am trying to create different product listing pages. Some containt the product code, some not.

Feature Request 1: Move Display Product Code from General Display Configuration to Product Listings Page, like you do for the price

I can of course remove the product code with css display:none, but this would be easier if a class would be present.

Feature Request 2: Add field to enter individual class name in Product Listings Page.
(Accessing hikashop_category_information_menu_103 is possible, but not flexible)

Last edit: 10 years 6 months ago by GunnarB. Reason: typo

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

  • Posts: 13201
  • Thank you received: 2322
10 years 6 months ago #193536

Hi,

For your two requirements, I think that the best solution will be to create a new view.
In Display > Views, edit the desired listing view, then save it with another name starting by "listing_xxx".

This way in each views you can add the desired css class, display or not the product code, and then in the menu/module settings select the correct view for the desired category via the option "Type of item layout".

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

  • Posts: 21
  • Thank you received: 0
10 years 6 months ago #194746

The view is an idea I did not think of, but it involes code editing, which could be prevented here.

Class is not such a problem, as I can add a class to the joomla menu or module.

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

  • Posts: 84304
  • Thank you received: 13698
  • MODERATOR
10 years 5 months ago #194748

Hi,

There is already a class hikashop_product_code_list that you can use in your CSS in order to hide the product code on listings. It doesn't require any view modification.

For the main class of the menus, there is already one which you can use so I don't see the point of adding an option to specify another one. We already have too much options in listings so I don't want to add new options unless it is really necessary. And if really you want another class, you can easily do it with a small code customization of the view.

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

Time to create page: 0.072 seconds
Powered by Kunena Forum