Add a Custom Field (product) on the Cart Module

  • Posts: 63
  • Thank you received: 1
8 years 2 months ago #248893

-- HikaShop version -- : 2.6.3
-- Joomla version -- : 4.6
-- PHP version -- : 7
-- Browser(s) name and version -- : Chrome

Hi,

Is there any way to add/show the Custom field (table is product not item) on the Cart Module?

Thanks!

Regards,
Gary

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
8 years 2 months ago #248901

Hi,

There is no option for the cart module. So you'd have to edit the file "cart" of the view "product" via the menu Display>Views and add the code to add a new column yourself. If you know a bit of PHP it's fairly easy to do.

The following user(s) said Thank You: Yumul

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

  • Posts: 63
  • Thank you received: 1
8 years 2 months ago #249375

Hi,

Could you give me some sort of guidelines or example. Thanks

Regards,

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
8 years 2 months ago #249381

Hi,

Something like that:

<?php echo $row->XXX; ?>
where XXX is the column name of your custom field.

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

Time to create page: 0.050 seconds
Powered by Kunena Forum