Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Export orders in custom format

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-08-2011, 08:36 AM
 
InteractM InteractM is offline
 

Member
  
Join Date: Jun 2011
Posts: 22
 

Question Export orders in custom format

I would like to have "pipe" delimited CSV export file as one of options. So far I have done:

SQL:

Code:
INSERT INTO xcart_languages VALUES ('en','lbl_with_pipe_delimiter','(with pipe delimiter)','Labels');

common/main/order_list.tpl:
common/main/orders.tpl:

Code:
<option value="csv_pipe">{$lng.lbl_40x_compatible}: CSV {$lng.lbl_with_pipe_delimiter}</option>

include/orders_export.tpl:

Code:
'csv_pipe' => array ( 'ctype' => 'application/csv', 'delim' => '|', 'file' => 'orders.csv' ),

But when I have exported as "pipped" some rows are cut after order date compare to tabbed/commas export files. Any idea what can be wrong?

Thanks
__________________
X-Cart 4.4
Reply With Quote
  #2  
Old 06-10-2011, 05:58 AM
 
InteractM InteractM is offline
 

Member
  
Join Date: Jun 2011
Posts: 22
 

Default Re: Export orders in custom format

Anybody? Also where I can customize orders export file data structure?

Thanks
__________________
X-Cart 4.4
Reply With Quote
  #3  
Old 06-10-2011, 08:46 AM
 
InteractM InteractM is offline
 

Member
  
Join Date: Jun 2011
Posts: 22
 

Default Re: Export orders in custom format

Never mind - got everything to work. In the meantime found a bug in X-Cart related to orders export.
__________________
X-Cart 4.4
Reply With Quote
  #4  
Old 06-21-2011, 10:42 AM
 
InteractM InteractM is offline
 

Member
  
Join Date: Jun 2011
Posts: 22
 

Default Re: Export orders in custom format

Is there any way to export Extra Fields for product orders? I have try to use {item.extra_field[1]} but looks like this is a wrong way.

Thanks
__________________
X-Cart 4.4
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:47 PM.

   

 
X-Cart forums © 2001-2020