how can display a custom field under the product title and sku

  • Posts: 17
  • Thank you received: 1
1 year 11 months ago #341445

-- HikaShop version -- : 4.5.1
-- Joomla version -- : 4.1.2

Hi,
How can display a custom field, for example, "Short description" under the title and SKU of product on the product page?
Thanks in advance

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

  • Posts: 81504
  • Thank you received: 13062
  • MODERATOR
1 year 11 months ago #341454

Hi,

First, you can create the custom field of the table "product" and of the type "WYSIWYG" via the menu Display>Custom fields.
Then, in your products edit form, you can add text in that custom field.
Finally, in the menu Display>Views, you can edit the file product / show_default and add such code:

<?php echo $this->element->xxx; ?>
where xxx is the column name of your custom field and it will display the content of the custom field in the position you add it in the view file.

The following user(s) said Thank You: diacotm

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

  • Posts: 17
  • Thank you received: 1
1 year 11 months ago #341499

Thanks;
It worked!

It shows in the specification tab too; is it possible to hide this specific item there?
Thanks in advance

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

  • Posts: 81504
  • Thank you received: 13062
  • MODERATOR
1 year 11 months ago #341504

Hi,

Yes. The display in the specifications tab depends on the corresponding display setting of the custom field. So edit it via the menu Display>Custom fields and check its settings and turn off the display setting for the frontend product page.

The following user(s) said Thank You: diacotm

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

  • Posts: 17
  • Thank you received: 1
1 year 11 months ago #341513

Hi,
It worked!
Thank u so much

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

  • Posts: 27
  • Thank you received: 1
  • Hikashop Business
3 hours 10 minutes ago #360433

Hi, it works perfectly but, if I wont to display a check box custom field, it shows me the field data value, but I need to show the field data title.
Can you help me?

Last edit: 2 hours 52 minutes ago by nico1979.

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

Time to create page: 0.078 seconds
Powered by Kunena Forum