- Posts: 73
- Thank you received: 1
get product custom field after checkout in php
13 years 2 months ago #114841
by Ortix
get product custom field after checkout in php was created by Ortix
For my product I have 3 custom fields:
Brand
Model
Size
These are product custom fields.
How do I retrieve these values in the controllers/checkout.php file? They are not in the full order when I do this:
Only item custom fields appear. Any way to get this working?
Brand
Model
Size
These are product custom fields.
How do I retrieve these values in the controllers/checkout.php file? They are not in the full order when I do this:
Code:
$this->fullOrder = $orderClass->loadFullOrder($id);
Only item custom fields appear. Any way to get this working?
Please Log in or Create an account to join the conversation.
13 years 2 months ago #114884
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic get product custom field after checkout in php
Hi,
Product custom fields are in the "product" object. You have to load the product using the product class.
In the order, you will have the "order product", it is a different kind of product and it contains "item custom fields".
The data come from two different tables. Because the product custom fields are not stored in the table "order product" you have to load it directly in the table "product".
Regards,
Product custom fields are in the "product" object. You have to load the product using the product class.
In the order, you will have the "order product", it is a different kind of product and it contains "item custom fields".
The data come from two different tables. Because the product custom fields are not stored in the table "order product" you have to load it directly in the table "product".
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
Time to create page: 0.194 seconds