Add column with a custom field in the list of prod

  • Posts: 267
  • Thank you received: 5
9 years 3 months ago #240860

-- HikaShop version -- : HikaShop Business: 2.6.3
-- Joomla version -- : 3.5.1
-- PHP version -- : 7

I need to add a column in the list of products on the back end called imparte. Failing that, I would like to add to that variable in the search of back end products.
Thank you

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

  • Posts: 13201
  • Thank you received: 2322
9 years 3 months ago #240864

Hi,

To add that column you have to edit the view "product / listing" in the backend template.
So edit the HMTL to add the header and the column content.

For the content the code should be like that (if the custom field column name is "imparte"):

<td><?php echo $row->imparte; ?></td>

Regarding the search, you will have to create a custom plugin based on the function "onBeforeProductListingLoad":
www.hikashop.com/support/documentation/6...reProductListingLoad

The following user(s) said Thank You: dvddvd

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

  • Posts: 267
  • Thank you received: 5
9 years 3 months ago #240978

Ok perfect!, thanks

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

Time to create page: 0.065 seconds
Powered by Kunena Forum