[ic] Quick and dirty "write to file"
Justin La Sotten
justino at fragrancenet.com
Tue Sep 28 18:37:43 UTC 2010
On Tue, Sep 28, 2010 at 2:27 PM, Chris Kershaw <chris at endpoint.com> wrote:
> Hi Peter,
>
> CGI variables get copied into the Values hash during checkout so you
> likely need to use [value email]. You could essentially put this within
> any file that is part of the checkout routes but I would recommend
> creating a new route for this to keep things separated. So the quick and
> easy way would be to:
>
> 1) Create an include ~catalogs/store/include/update_mailing_list
> 2) Place the include on some checkout page such as etc/receipt or
> etc/log_transaction
>
> My preferred method would be to:
>
> 1) Create the mail list file with your business logic
> ~catalogs/store/etc/update_mailing_list
>
> 2) Create new route in catalog.cfg
>
> Route update_mailing_list <<EOF
> empty 1
> encrypt 0
> increment 0
> report etc/update_mailing_list
> supplant 0
> track logs/mail_list_log
> EOF
I personally would add to the route:
error_ok 1
This way if the file is not-writable, for whatever reason, it won't
prevent customers from checking out.
>
> 3) Update your checkout order route:
>
> Route default cascade "log update_mailing_list main copy_user"
>
> 4) Restart Interchange and checkout.
>
> Hope this helps
> Chris
>
> --
> Chris Kershaw
> End Point Corp.
> Direct Line: 919-249-5356
> Fax: 866-281-1373
> http://www.endpoint.com
>
>
> _______________________________________________
> interchange-users mailing list
> interchange-users at icdevgroup.org
> http://www.icdevgroup.org/mailman/listinfo/interchange-users
--
Regards,
Justin La Sotten
FragranceNet.com
Ph: (631) 940-6812
** Please consider the environment before printing this email **
More information about the interchange-users
mailing list