Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

New Export Field Needed Rate Topic   - - - - -

 
  • Erol
  • Advanced Member
  • Members
  • Join Date: 26-Feb 17
  • 51 posts

Posted 18 August 2019 - 05:26 PM #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...pping field.jpg

 

Thanks

Erol



 
  • soft-solid
  • Junior Member
  • Members
  • Join Date: 19-Apr 10
  • 848 posts

Posted 18 August 2019 - 09:32 PM #2

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.


Team of SoftSolid
cs-cart.pl

 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19681 posts

Posted 19 August 2019 - 06:27 AM #3

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',
)

GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • Erol
  • Advanced Member
  • Members
  • Join Date: 26-Feb 17
  • 51 posts

Posted 19 August 2019 - 10:27 AM #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



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19681 posts

Posted 19 August 2019 - 01:19 PM #5

- install and enable My changes module

 

- create the file

 

app/addons/my_changes/schemas/exim/order_items.post.php

 

with the following content

<?php

$schema['export_fields']['Shipping cost'] = array(
            'table' => 'orders',
            'db_field' => 'shipping_cost',
);


return $schema;

- clear cache and check the result

 

(!) Not tested


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • Erol
  • Advanced Member
  • Members
  • Join Date: 26-Feb 17
  • 51 posts

Posted 19 August 2019 - 03:21 PM #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



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19681 posts

Posted 20 August 2019 - 05:11 AM #7

You are welcome! :)


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.