Hikashop Admin Backend - Additional fields

  • Posts: 39
  • Thank you received: 0
8 years 8 months ago #233923

-- HikaShop version -- : 2.6.1
-- Joomla version -- : 3.4.8

Hello,
I want to add one or more additional fields in the Hikashop Backend (when adding OR editing a product).
By this I mean a field like the "price" section.
I have to add three fields, where the admin can type true (1) or false (0) to each field:

used, new (opened) and new

The data has to be inserted into the related database table.
I found out how to do this in a previous Hikashop version, but since they changed a part of the file structure, I cannot figure out how to implement this function anymore.

So now to my question, what file do I have to change and what is the command to this in the php file?
I would be really thankful if somebody could help me out with this issue.

Regards,
David

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

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
8 years 8 months ago #233927

Hi,

What change did you do before ?
To add your HTML to the view, you can edit the file "form" of the view "product" via the menu Display>Views.
And to handle the saving of your fields, you can create a plugin of the type hikashop and implement the trigger onAfterProductUpdate and onAfterProductCreate. In them, get the data from the $_POST and save it in the hikashop_related table with a MySQL query.

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

Time to create page: 0.058 seconds
Powered by Kunena Forum