Can you insert a custom field in a Joomla article?

  • Posts: 299
  • Thank you received: 22
1 week 1 day ago #367980

-- HikaShop version -- : 6.0.0
-- Joomla version -- : 5.3.2
-- PHP version -- : 8

Hi, just wondering if there is an option to use the Hikashop product tag insertion plugin to add a custom field to a standard Joomla article?
Or in another way :-)

Maybe I have overlooked something but I have not found it until now.

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

  • Posts: 84147
  • Thank you received: 13651
  • MODERATOR
1 week 18 hours ago #367984

Hi,

There is not option for that.
You would have to make an override of the file plugins/system/hikashopproductinsert/hikashopproductinsert_view.php by copying it to templates/YOUR_TEMPLATE/system/hikashopproductinsert_view.php
Then, in it, you can use $product->xxx where xxx is the column name of your custom product field.
That way, when you use a product content tag for a product, the value of the custom field will appear.

The following user(s) said Thank You: nico.van.leeuwen

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

  • Posts: 299
  • Thank you received: 22
1 week 6 hours ago #367990

Thank you for this tip, Will try to make it work.

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

Time to create page: 0.055 seconds
Powered by Kunena Forum