- Posts: 212
- Thank you received: 17
Thumbnails then text at 2nd category level
- smithshop123
-
Topic Author
- Offline
Less
More
8 years 3 months ago #297503
by smithshop123
Thumbnails then text at 2nd category level was created by smithshop123
-- HikaShop version -- : 3.5.1
-- Joomla version -- : 3.8.12
-- PHP version -- : 5.6.36
-- Browser(s) name and version -- : Opera
Hi,
I've got a two level category structure and would like to have thumbnails at the first level and just text at the second level. At the moment I can only specify one or the other. Can you advise of a way to do this?
Thanks,
Ian and Stu
-- Joomla version -- : 3.8.12
-- PHP version -- : 5.6.36
-- Browser(s) name and version -- : Opera
Hi,
I've got a two level category structure and would like to have thumbnails at the first level and just text at the second level. At the moment I can only specify one or the other. Can you advise of a way to do this?
Thanks,
Ian and Stu
Please Log in or Create an account to join the conversation.
8 years 3 months ago #297512
by nicolas
Replied by nicolas on topic Thumbnails then text at 2nd category level
Hi,
There is no option to have different layouts at different levels.
You would have to edit the file "listing_div" of the view "category" via the menu Display>Views.
There, you can add a condition and force the layout. For example:
There is no option to have different layouts at different levels.
You would have to edit the file "listing_div" of the view "category" via the menu Display>Views.
There, you can add a condition and force the layout. For example:
Code:
if($this->element->category_depth > 2)
$this->params->set('div_item_layout_type', 'img_title');
Please Log in or Create an account to join the conversation.
- smithshop123
-
Topic Author
- Offline
Less
More
- Posts: 212
- Thank you received: 17
8 years 3 months ago #297541
by smithshop123
Replied by smithshop123 on topic Thumbnails then text at 2nd category level
Thanks for the reply. Unfortunately we never play with php and would need more detailed instructions. If there's something in the documentation that I can follow about this, let me know. It's probably worth considering as a normal option because sites like ours will run out of suitable category images due to their size.
Kind regards,
Ian and Stu
Kind regards,
Ian and Stu
Please Log in or Create an account to join the conversation.
8 years 3 months ago - 8 years 3 months ago #297555
by Philip
Replied by Philip on topic Thumbnails then text at 2nd category level
Hello,
Of course, to process this Php knowledge is required, unfortunately this forum aim isn't to provide "ready to paste" code to perform customization, or obviously to learn Php.
We can only invite you to contact one of our partner to perform this specific customisation.
Sorry for this answer.
Regards
Of course, to process this Php knowledge is required, unfortunately this forum aim isn't to provide "ready to paste" code to perform customization, or obviously to learn Php.
We can only invite you to contact one of our partner to perform this specific customisation.
Sorry for this answer.
Regards
Last edit: 8 years 3 months ago by Philip.
Please Log in or Create an account to join the conversation.
- smithshop123
-
Topic Author
- Offline
Less
More
- Posts: 212
- Thank you received: 17
8 years 2 months ago #297592
by smithshop123
Replied by smithshop123 on topic Thumbnails then text at 2nd category level
Understood,
unfortunately as we run two licences of Hikashop for one online store, which is a long way from paying for itself, we cannot afford additional expenses. And were hoping for a little extra help.
We thought that this might be something that had been done before under 'custom views'.
Thanks for the referral and we may be able to afford additional costs and services down the track.
Hika is still a very good product and the forums are always helpful.
Regards,
Ian and Stu
unfortunately as we run two licences of Hikashop for one online store, which is a long way from paying for itself, we cannot afford additional expenses. And were hoping for a little extra help.
We thought that this might be something that had been done before under 'custom views'.
Thanks for the referral and we may be able to afford additional costs and services down the track.
Hika is still a very good product and the forums are always helpful.
Regards,
Ian and Stu
Please Log in or Create an account to join the conversation.
8 years 2 months ago - 8 years 2 months ago #297604
by Philip
Replied by Philip on topic Thumbnails then text at 2nd category level
Hello,
I just have an idea, but don't know if it will fit your needs, let's say that you display both, I mean Image and text (for main and sub category).
Then, you use some css command to prevent display where this isn't required.
Have a look on this tutorial to see how to add css command.
For better understand the way css command have to work, it have to be something close to this idea :
.item_menu_id .main_categroy_class .text_class {
display: none;
}
.item_menu_id .main_categroy_class .sub_category_class .image_class {
display: none;
}
I think that may do the trick and hope this help you to get what you need, even if it's a little "hack" way to proceed.
Regards
I just have an idea, but don't know if it will fit your needs, let's say that you display both, I mean Image and text (for main and sub category).
Then, you use some css command to prevent display where this isn't required.
Have a look on this tutorial to see how to add css command.
For better understand the way css command have to work, it have to be something close to this idea :
.item_menu_id .main_categroy_class .text_class {
display: none;
}
.item_menu_id .main_categroy_class .sub_category_class .image_class {
display: none;
}
I think that may do the trick and hope this help you to get what you need, even if it's a little "hack" way to proceed.
Regards
Last edit: 8 years 2 months ago by Philip.
The following user(s) said Thank You: smithshop123
Please Log in or Create an account to join the conversation.
- smithshop123
-
Topic Author
- Offline
Less
More
- Posts: 212
- Thank you received: 17
8 years 2 months ago #297701
by smithshop123
Replied by smithshop123 on topic Thumbnails then text at 2nd category level
Hi, we had a go at this but it was a not reliable enough. Hika should consider 2nd level text as an option OR, even simpler, just have a checkbox to select that 'subcategories use the same picture as the parent'.
Thanks,
Ian & Stu
Thanks,
Ian & Stu
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 12953
- Thank you received: 1778
8 years 2 months ago #297720
by Mohamed Thelji
Replied by Mohamed Thelji on topic Thumbnails then text at 2nd category level
Hello,
Thank you for your feedback !
Kind regards,
Mohamed Thelji.
Thank you for your feedback !
Kind regards,
Mohamed Thelji.
Please Log in or Create an account to join the conversation.
Time to create page: 0.069 seconds