How to add a short Description field in Hikashop Product page and display it

  • Posts: 159
  • Thank you received: 0
6 years 8 months ago #273018

-- url of the page with the problem -- : test site
-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.6.0
-- PHP version -- : 5.4
-- Browser(s) name and version -- : Chrome

hi i am making a website for my client on local server. My client wants to show a short descriptions in product page saperately. i want to know how i can add a Short description option in Add Product page and display it on front-end ?

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

  • Posts: 81361
  • Thank you received: 13036
  • MODERATOR
6 years 8 months ago #273033

Hi,

You could create a custom field of the table "product" via the menu Display>Custom fields in order to be able to add a short description to the products.
Then, in the view file product/show_default.php you can display the content of that field with such code:
<?php echo $this->element->XXX; ?>
where XXX is the column name of your custom field.

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

  • Posts: 159
  • Thank you received: 0
6 years 8 months ago #273145

Hi i have added the custom field and also the <?php echo $this->element->short_description; ?> code in product > show_tabular file. But how to add data in custom field. i dont see any textarea in the product page to add data in it.

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

  • Posts: 25994
  • Thank you received: 4004
  • MODERATOR
6 years 8 months ago #273148

Hello,

Please provide a screenshot of your product custom field configuration.
(product custom fields are available in commercial editions of HikaShop)

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 159
  • Thank you received: 0
6 years 8 months ago #273234

Hi. These are the screenshots. but i am unable to understand where can i put the data into custom fields. second its also not showing anything on front-end. Kindly check the screenshots.




Attachments:

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

  • Posts: 81361
  • Thank you received: 13036
  • MODERATOR
6 years 8 months ago #273239

Hi,

The custom product field will only display something on the product page if you've entered something in it in the backend when editing that product.
If you don't see the custom field in the "custom fields" area of your product edition, it means that the custom field is not configured properly.
So edit the custom field via the menu Display>Custom fields and provide a screenshot of the settings there as there must be a problem there.

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

  • Posts: 513
  • Thank you received: 8
  • Hikashop Business
6 years 8 months ago #273319

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

Time to create page: 0.093 seconds
Powered by Kunena Forum