Different style for each category.

  • Posts: 47
  • Thank you received: 1
10 years 5 months ago #197384

-- HikaShop version -- : 2.2.2
-- Joomla version -- : 2.5.28

Good afternoon, I have a question, how do the different display style for each sub-category?

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

  • Posts: 84305
  • Thank you received: 13700
  • MODERATOR
10 years 5 months ago #197438

Hi,

Are you talking about different CSS for different sub categories?
In that case you can use different CSS code as the views have a main class name with the id of the main category in it so that you can add different CSS for different sub categories listing. That will however require updating to the latest version of HikaShop.

Or maybe you're talking about having different layouts for different sub categories listing and in that case, it would require some views modifications via the menu Display>Views.

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

  • Posts: 47
  • Thank you received: 1
10 years 5 months ago #197500

Good day, I will write in more detail, I need to display the different subcategories such as:
-Brand- Show the name and picture
--Audi- Show image
---A8- Show slide picture and name
---- 2010-2010- Show name


Engine 3.0- Show image and description
So I can not figure out how to make sure that each podgategoriya deduced differently, and where you can assign IDs to each category.

Excuse me for my english.

Last edit: 10 years 5 months ago by slavik.

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

  • Posts: 84305
  • Thank you received: 13700
  • MODERATOR
10 years 5 months ago #197519

Each category already has an ID assigned. If you go in your categories listing, you can see the column ID on the right where you can see that number for each category.
For example, here is the CSS you would use in order to hide the name of the brands:
.hikashop_category_listing_18 .hikashop_category_name{
display:none;
}
where 18 is the id of your main brand category.

Basically, you need to look at the HTML of the page in order to know which CSS class to use in your CSS in order to hide the parts you don't want:
www.hikashop.com/support/support/documen...ize-the-display.html

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

  • Posts: 47
  • Thank you received: 1
10 years 5 months ago #197597

OK, I understand that you can hide unwanted items in the CSS and as I do, for example I want to see a simple category name and picture, and subcategory (in which 60 elements) slide, and the following subcategory has again nazvaniekartinka and description?

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

  • Posts: 12953
  • Thank you received: 1778
10 years 5 months ago #197601

Hello,

I want to see a simple category name and picture, and subcategory (in which 60 elements) slide, and the following subcategory has again nazvaniekartinka and description?


Can you show me what have you done, and how do you exactly want to change it ?

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

  • Posts: 47
  • Thank you received: 1
10 years 5 months ago #197868

Hello, thank you for agreeing to help
Here everything is OK, this is the main page
avto.baby-joys.com/
Here I want to was a slider categories
avto.baby-joys.com/index.php/parts-catal...tegory/14-volkswagen
Then to make it just a name and picture
avto.baby-joys.com/index.php/parts-catal...ilej/category/17-xl1
And at the end if you go (go only for the first item) issues in this
avto.baby-joys.com/index.php/parts-catal...obilej/category/132-
And the item card issue again Products
avto.baby-joys.com/index.php/parts-catal...roduct/1-dieselmotor

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

  • Posts: 12953
  • Thank you received: 1778
10 years 5 months ago #197886

Hello,

Here I want to was a slider categories
avto.baby-joys.com/index.php/parts-catal...tegory/14-volkswagen

To do that you'll have to create a Category listing content module and set the "Enable carousel" option to YES.

Then to make it just a name and picture
avto.baby-joys.com/index.php/parts-catal...ilej/category/17-xl1

You'll have to use a category listing content menu/module and set the "Type of layout" option to DIV and the "Type of item layout" option to "Image and title".

And at the end if you go (go only for the first item) issues in this
avto.baby-joys.com/index.php/parts-catal...obilej/category/132-
And the item card issue again Products
avto.baby-joys.com/index.php/parts-catal...roduct/1-dieselmotor

I'm able to select my product and add it to the cart, what is the issue that you are having ?

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

  • Posts: 47
  • Thank you received: 1
10 years 5 months ago #197974

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

  • Posts: 26274
  • Thank you received: 4045
  • MODERATOR
10 years 5 months ago #198082

Hi,

Like Nicolas explained in his first message:

Are you talking about different CSS for different sub categories?
...

Or maybe you're talking about having different layouts for different sub categories listing and in that case, it would require some views modifications via the menu Display>Views.

You're currently talking about the second solution, where the CSS can't help you and where you will need to override some views in order to change how the content is generating depending the category.
Please note that it requires some development skills.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 47
  • Thank you received: 1
10 years 5 months ago #198491

I understand that one hour there will be little, but you At least tell me in what Sauron move.
That is made all the modules but now not otkryvaetsya goods, I really need your help.
auto.baby-joys.com/

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

  • Posts: 84305
  • Thank you received: 13700
  • MODERATOR
10 years 5 months ago #198780

I'm sorry but we couldn't understand your last message.
What is "Sauron move" ? What is "otkryvaetsya" ?

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

  • Posts: 47
  • Thank you received: 1
10 years 5 months ago #198803

Sorry. I did all the modules styles css. But now does not open the product itself. I really need your help. I I rely on it.
Thank you.
auto.baby-joys.com/
auto.baby-joys.com/index.php/parts-catal...s-gbts/category/112-

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

  • Posts: 84305
  • Thank you received: 13700
  • MODERATOR
10 years 4 months ago #198879

Hi,

When I look at the HTML code of your product page, I can see that you commented out all the HTML of the main content in your Joomla template: take.ms/d3PIH
So the issue is with the customization you did to your template.
Remove the HTML comment there and it will work.

The following user(s) said Thank You: slavik

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

  • Posts: 47
  • Thank you received: 1
10 years 4 months ago #198939

Oh, thank you very much Nicolas, it's my fault.
But now help me with a question to not be displayed on the page twice modules.
How can you
auto.baby-joys.com/index.php/parts-catal...agen/category/17-xl1
there
auto.baby-joys.com/index.php/parts-catal...tegory/14-volkswagen
I put the module in the css code
div # hikashop_category_information_menu_131 {
   display: none;
}
But I'm not going to put each module display: none ;, should in fact be the solution to my problem.
Thank you !!!

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

  • Posts: 13201
  • Thank you received: 2322
10 years 4 months ago #198966

Hi,

Please delete or remove the module association for the product listing menu, in this case the menu with the id "130".
This is causing the displayed twice product issue.

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

  • Posts: 47
  • Thank you received: 1
10 years 6 days ago #213681

Thanks but to no avail.
auto.baby-joys.com/index.php/component/h...olkswagen?Itemid=131
What I just did not do but still outputting twice.
My site is very large in terms of the hierarchy, but I want each category to display in different ways to do this?
I for each category created separate paragraphs menu, and content module, and set that he is only displayed on your page. Maybe I'm doing something wrong. Help ......

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

  • Posts: 12953
  • Thank you received: 1778
10 years 6 days ago #213700

Hello,
Your problem is probably coming from the fact that you are using modules to display your categories instead of menus, you should remove your menu/module and start over using this tutorial as a model :
www.hikashop.com/support/support/documen...html#categories_menu

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

  • Posts: 47
  • Thank you received: 1
10 years 1 day ago #214153

I have the menu, and each category is tied to him.

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

  • Posts: 84305
  • Thank you received: 13700
  • MODERATOR
10 years 1 day ago #214172

Hi,

Create different menu items of the type hikashop category listing (one for each category). In the options of the menu items, you can modify the display settings to have different display for different categories.
Then, copy/paste the link of each of these menu items (which should be displayed in your main menu or something), in the "canonical URL" setting of each category.
Then, make sure that the force canonical URL on listing setting of the HikaShop configuration is turned on.
That way, when you click on a link to that category, it will always use that link in order to display the elements of that category the way you configured it to.

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

Time to create page: 0.081 seconds
Powered by Kunena Forum