Lets say I have 3 categories A, B and C. Is there

  • Posts: 61
  • Thank you received: 0
11 years 3 months ago #118784

Lets say I have 3 categories A, B and C.
Is there a way to get the HikaShop Content Module to add a special class to the link of the category you are currently in?


<a href="/catalog/category/1-a" class='special'>A</a>
<a href="/catalog/category/2-b">B</a>
<a href="/catalog/category/3-c">C</a>

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

  • Posts: 12953
  • Thank you received: 1778
11 years 3 months ago #118810

Hi,
Yes but you'll probably have to find the file of the good view (through "Hikashop->Display->Views") and to directly edit it.If you want more information, I'll need a link your page and to know exactly where do you want to add this class.

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

  • Posts: 61
  • Thank you received: 0
11 years 3 months ago #118978

Lets say I am on this page
www.drenolsurf.com/catalog/category/17-summer-arrivals

I want to add a special class to the category for "summer-arrivals" so I can style it differently.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
11 years 3 months ago #119028

Hi,

You have to override the view "category | listing_list".
You will find this part of code:

<div class="panel">
	<h3 class="jpane-toggler title" id="category_pane_<?php echo $k;?>" style="cursor:default;">
		<span>
			<a href="<?php echo $link;?>">
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: 61
  • Thank you received: 0
11 years 3 months ago #119109

To override this template file so it is not overwritten on update, do I need to simply save it or do I need to type a new name in the box where it says list?
"category / listing_.

    php"

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

  • Posts: 13201
  • Thank you received: 2322
11 years 3 months ago #119138

Hi,

You just have to save it.

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

  • Posts: 61
  • Thank you received: 0
11 years 2 months ago #121565

What is the path to the file:
You have to override the view "category | listing_list".
is it :
/components/com_hikashop/category/tmpl/listing_list.php

Because modifying this file has no effect.



This page www.drenolsurf.com/men has a category list menu. I firstly need to know what file is generating the menu.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
11 years 2 months ago #121573

As Xavier said, it's the file "listing_list" of the view "category" that you can edit via the menu display>Views.

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

Time to create page: 0.091 seconds
Powered by Kunena Forum