- Posts: 78
- Thank you received: 0
Category listing - removing child subcategory bold
First of all props on Hikashop, its much better than virtuemart.
On the category view, I've been trying to track down how to un-bold the child categories. Ideally I would like to have the top level category in bold and the sub-category as standard.
Cheers, Jason
Please Log in or Create an account to join the conversation.
It should be easy by just changing a bit the CSS of HikaShop in the config under the tab display.
If you give us the URL of your website, we would be able to tell you more precisely what to do.
Please Log in or Create an account to join the conversation.
Also is there a way to remove the display quantity combo box when there are less categories than the default setting?
Cheers, Jason
Please Log in or Create an account to join the conversation.
.container ul li a, #content ul li a:hover, #content .module ul li a, #content .module ul li a:hover {
color: #3BACE5;
font-size: 13px;
line-height: 27px;
text-decoration: underline;
font-weight: bold;
}
Please remove the font-weight: bold; from there and it should be ok.
For the display quantity dropdown, you will have to go in the menu Display->Views and edit the file listing_div of the view category. There, you will be able to change :
if($this->params->get('show_limit') && $this->pageInfo->elements->total){
to
if($this->params->get('show_limit') && $this->pageInfo->elements->total>$this->params->get('limit')){
Please Log in or Create an account to join the conversation.
Is it possible to use bold or say H3 format on the main category links without impacting other areas of the site?
Please Log in or Create an account to join the conversation.
.hikashop_category_name{ font-weight: bold; }
Please Log in or Create an account to join the conversation.
I've just been adding products and now have 33 in one category and it isn't showing the next page option -> link
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
I think I just worked out where the hiccup is, our categories per page setting is 15 and the page with the issue has 33 'products' but no 'categories'.
Would I be right in assuming that the change we made is if there are less categories than the categories per page setting that the combo box does not display and because there are no categories, just products, thats why its not displaying?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
At the moment its setup as category listing with a product display module. Is there is a way to change the bottom tier category to a product listing, and can this be managed on a per-category basis?
Please Log in or Create an account to join the conversation.
What happen currently is that you have two listings one below the other.
The listing of categories handled by the menu and the listing of products handled by the associated module of the menu.
Both use the "current category" as reference to display the categories below it and the products in it.
If you want to display all the products below the current category regardless of the depth, you can change the option "Sub elements filter" in the module's options. But that means that you will also see the products listing on the main catalogue page which might not be want you want ?
In such case, you would have to display the product listing view to add some code to hide/display the listing based on the category level ( $this->element->category_depth is the level of the current category) with something like this in it :
if( $this->element->category_depth < 3 ) return;
Please Log in or Create an account to join the conversation.
Category Listing
> Catalogue home
> 2nd tier categories
> 3rd tier categories
Product Listing
no content
Product Page
> Products
The question is, where can I set a particular category to display as a products list or a categories list, or is that not possible.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
So the change made to remove the combo box checks to see if the number of category elements exceeds the 'number of items' setting which in this case it doesn't because there are no category elements, only product elements. Is there a way to check the product elements, or should I just set the 'number of items' to a number greater than the number of products, say 100, and it will display all on one page.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
The issue now is that the pagination is not displaying, even on this page with 33 products in the category
Please Log in or Create an account to join the conversation.
If you revert the modification do you see the pagination ? Does it have several pages ?
We tested that modification on our end and we see the pagination only there are several pages which is what you should have as well.
In any case, yes, if you set a greater number of items in your products listing module, you will see all your products on the first page and the problem will be "solved".
Please Log in or Create an account to join the conversation.
Step 1. We applied the change in the category listing_div file which removed pagination as expected, we never changed the product listing_div.
Result: Pagination removed
Step 2. Reset category listing_div file to original.
Result: Pagination present where category includes sub-categories but on the page in question no pagination
Step 3. Add a test sub-category
Result: The pagination appears with Results '1-1 of 1' so it doesn't let us go to the next page of products.
Step 4. Remove test category and change products module number of items to 100
Result: No pagination and all products display as there are less than 100 products
So the issues is with it not giving us products pagination when using a products module in the category list view.
If we cant get around that then I'm happy to leave it as is and whenever the product list gets too big I can just break it down into more sub-categories.
Please Log in or Create an account to join the conversation.
Please make sure that you set the option "random" of the products listing module to off. Otherwise, the pagination won't be displayed.
Please Log in or Create an account to join the conversation.