Tabular product layout description

  • Posts: 1123
  • Thank you received: 12
  • Hikashop Business
2 days 14 minutes ago #369499

-- HikaShop version -- : 6.1.1
-- Joomla version -- : 5.4.0
-- PHP version -- : 8.3

Hi,

I want to use tabular layout on the products and i see in the view file "mini description". Where do i add that on the product?
Basically what i would like to have is something like this if it is posible organic-beauty.themerex.net/product/anti-wrinkle-booster-serum/

On the right part a mini description and on the bottom part 2 tabs for different custom fields.

Thank you

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

  • Posts: 84723
  • Thank you received: 13790
  • MODERATOR
1 day 20 hours ago #369500

Hi,

The mini description is already displayed on the right side on your product page. It is just hidden with CSS code.
You can add such CSS code on your website to have it appear:

#hikashop_product_description_main_mini {
    display: block !important;
}
Then, if you create a custom field of the table "product" and of the type "Wysiwyg" via the menu Display>Custom fields, and then you enter something in that field in your product, you'll see the tabs appear automatically at the bottom: one for the full description, and one for the custom fields.
And if you want to add extra tabs, we have the section "How to add a tab in the tabular view ?" of the FAQ which explains it:
www.hikashop.com/support/documentation/106-faq.html#layo

The following user(s) said Thank You: verzevoul

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

  • Posts: 1123
  • Thank you received: 12
  • Hikashop Business
1 day 19 hours ago #369504

Hi!

Okay i see the mini description now but can i remove the read more button?
And also how many characters can the mini description be?

Thank you

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

  • Posts: 84723
  • Thank you received: 13790
  • MODERATOR
1 day 15 hours ago #369507

Hi,

If you add a "read more" tag to the description, you can choose where to cut the description.

Without the read more tag, the system will cut at 300 characters after stripping the HTML tags from the description, if any.

Regarding the read more link, if you don't want it, you can hide it with a bit of CSS code:

[href='#hikashop_show_tabular_description'] {
    display: none;
}
Or you can simply have a read more tag before the 300th character.

The following user(s) said Thank You: verzevoul

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

  • Posts: 1123
  • Thank you received: 12
  • Hikashop Business
23 hours 49 minutes ago #369515

Great thanks!

Can i also remove the ... at the end of the mini description?

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

  • Posts: 84723
  • Thank you received: 13790
  • MODERATOR
19 hours 26 minutes ago #369516

Hi,

It is possible. For that, you would have to edit the product / show_tabular view file via the menu Display>Views and change the code after:

if (!empty($this->element->product_description) && strlen($this->element->product_description)>300)

The following user(s) said Thank You: verzevoul

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

Time to create page: 0.059 seconds
Powered by Kunena Forum