[ic] Attachment-file in order-report

Ed LaFrance (New Media E.M.S.) ic_users at newmediaems.com
Thu Aug 26 13:05:06 EDT 2004


At 09:07 AM 8/26/2004, you wrote:

>Hi,
>
>I like to have an attachment in the order-report-file.
>
>I found something in the mailing list and changed my
>file 'report'.
>
>It is working. Here is the code, wich I insert in the
>report-file:
>
>[tag mime type arg='text/comma-separated-values; name="[value 
>mv_order_number].csv"'][/tag]
>[tag mime type='Bestell-Nr. [value mv_order_number]']
>001;[value mv_username]
>002;[value mv_order_number]
>003;[value date]
>004;[value lname]
>005;[value fname]
>006;[value address3]
>007;[value company]
>008;[value address1]
>009;[value address2]
>010;[value zip]
>011;[value city]
>012;[value country]
>013;[value email]
>014;[scratch zahlungsart]
>015;[value phone_day]
>016;[value b_lname]
>017;[value b_fname]
>018;[value b_company]
>019;[value b_address1]
>020;[value b_address2]
>021;[value b_zip]
>022;[value b_city]
>023;[value b_country]
>024;[scratch coupon_amount]
>025;[subtotal noformat=1]
>026;[shipping noformat=1]
>027;[handling noformat=1]
>028;[total-cost noformat=1]
>029;[scratch skonto]
>030;[scratch zahlbetrag]
>031;[value gift_note]
>[item-list][perl arg="scratch"]
>$b = '[item-field unit]' * 1;
>$d = '[item-quantity]' * 1;
>$Scratch->{'quantitytotal'} = $b * $d;
>$Scratch->{'count'} += 1;
>return '';
>[/perl][scratch count];[item-code];[item-quantity];[item-price 
>noformat=1];[item-subtotal noformat=1]
>[/item-list]
>[/tag]
>
>
>Here my question: How can I change the filename from the attached file.
>If I open this report-mail everytime the name is: 'Textpart.txt'.
>
>I like to have a name, which content the ordernumber.
>Is it possible?
>
>Thanks in advance.
>
>Ralf Lorenz
>http://www.mcbuero.de

If you are using Interchange 5.2 or later, take a look at how the credit 
card attachment is handled in etc/report, file naming control has been 
improved.

- Ed


===============================================================
New Media E.M.S.              Technology Solutions for Business
11630 Fair Oaks Blvd., #250   eCommerce | Consulting | Hosting
Fair Oaks, CA  95628          Ed.LaFrance at newmediaems.com
(916) 961-0446                http://www.newmediaems.com
(866) 519-4680 Toll-Free      (916) 961-0447 Fax
=============================================================== 



More information about the interchange-users mailing list