- Posts: 63
- Thank you received: 1
Add a Custom Field (product) on the Cart Module
10 years 2 months ago #248893
by Yumul
Add a Custom Field (product) on the Cart Module was created by Yumul
-- 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
-- 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.
10 years 2 months ago #248901
by nicolas
Replied by nicolas on topic Add a Custom Field (product) on the Cart Module
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.
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.
10 years 2 months ago #249375
by Yumul
Replied by Yumul on topic Add a Custom Field (product) on the Cart Module
Hi,
Could you give me some sort of guidelines or example. Thanks
Regards,
Could you give me some sort of guidelines or example. Thanks
Regards,
Please Log in or Create an account to join the conversation.
10 years 2 months ago #249381
by nicolas
Replied by nicolas on topic Add a Custom Field (product) on the Cart Module
Hi,
Something like that:
where XXX is the column name of your custom field.
Something like that:
Code:
<?php echo $row->XXX; ?>
Please Log in or Create an account to join the conversation.
Time to create page: 0.048 seconds