Thumbnails then text at 2nd category level

  • Posts: 173
  • Thank you received: 14
  • Hikashop Business
5 years 8 months ago #297503

-- 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

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

  • Posts: 81633
  • Thank you received: 13085
  • MODERATOR
5 years 8 months ago #297512

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:

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.

  • Posts: 173
  • Thank you received: 14
  • Hikashop Business
5 years 8 months ago #297541

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

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

  • Posts: 4546
  • Thank you received: 613
  • MODERATOR
5 years 8 months ago #297555

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

Last edit: 5 years 8 months ago by Philip.

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

  • Posts: 173
  • Thank you received: 14
  • Hikashop Business
5 years 8 months ago #297592

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

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

  • Posts: 4546
  • Thank you received: 613
  • MODERATOR
5 years 8 months ago #297604

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

Last edit: 5 years 8 months ago by Philip.
The following user(s) said Thank You: smithshop123

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

  • Posts: 173
  • Thank you received: 14
  • Hikashop Business
5 years 8 months ago #297701

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

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

  • Posts: 12953
  • Thank you received: 1778
5 years 7 months ago #297720

Hello,

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.067 seconds
Powered by Kunena Forum