erol
1
Hi,
Can anyone help me to add new field in "Order Items" export.
This new filed should be "Shipping cost"
It does exist in export of "Orders", but not on "Order Items" where I need it.
Please look image in link:
https://biobronz.com/images/companies/5/thumbnails/Shipping%20field.jpg
Thanks
Erol
Hello
It is a bit complicated.
It's best to write a simple addon that expands the order item export scheme than to modify the core of the system.
Best regards
Robert.
You should extend the app/schemas/exim/order_items.php schema
Try to add something like this to the array with exported fields
'Shipping cost' => array(
'table' => 'orders',
'db_field' => 'shipping_cost',
)
erol
4
You should extend the app/schemas/exim/order_items.php schema
Try to add something like this to the array with exported fields
'Shipping cost' => array(
'table' => 'orders',
'db_field' => 'shipping_cost',
)
Hi eComLabs,
can you do that for me as addon.
My budget is 30USD
Thanks
Erol
- install and enable My changes module
- create the file
app/addons/my_changes/schemas/exim/order_items.post.php
with the following content
$schema[‘export_fields’][‘Shipping cost’] = array(
‘table’ => ‘orders’,
‘db_field’ => ‘shipping_cost’,
);
return $schema;
- clear cache and check the result
(!) Not tested
erol
6
Thanks, thanks, thanks... eComLabs
It works :grin:
There is NOONE like you willing to help as you do..
I got my first CS-Cart Ultimate licensee from Simtech.
The second one I got from you and so happy I purchase right from eComLabs, bec you rock :)
Erol