How to have two description fields for a product?

  • Posts: 43
  • Thank you received: 1
11 years 6 months ago #143567

Hi.
I would like to have the result you see in the picture.



That is I would like to have the two description you see pointed by the two green arrows.

So I need TWO "description" fields in the product panel. Unfortunately, currently there is only one of it..
Any suggestion?

For example, in joomla it's possible to insert a "page break" in a HTML field and then it's possible to refer to one or to the other. Is there somethingh similar in Hikashop?

Thanks in advance.

Attachments:
Last edit: 11 years 6 months ago by markespositi.

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

  • Posts: 12953
  • Thank you received: 1778
11 years 6 months ago #143600

Hi,
The solution will probably be to :
- Create a text custom field of the "product" table through "Hikashop->Display->Custom fields"
- Set a the second description through your product page
- Edit the files of your "product" view to display this custom field through "Hikashop->Display->Views"

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

  • Posts: 43
  • Thank you received: 1
11 years 6 months ago #143655

Thanks. I did it.
I created a custom field named "Short Description" in the "Product" Table. Colomn name is "Description2".
Now, how to refer exactly to that custom fields in order to place correctly in the page editing Hikashop ->Display->Views?
Thanks

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

  • Posts: 12953
  • Thank you received: 1778
11 years 6 months ago #143688

You'll have to edit the "show_default" file of the "product" view of your front-end template through "Hikashop->Display->Views" and use some code like :

<?php 
echo $this->element->YourCustomFieldName;
?>

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

Time to create page: 0.066 seconds
Powered by Kunena Forum