[ic] Sharing sessions - Discounts

Sandy Thomson sandy at scotwebshops.com
Fri Aug 20 05:18:45 EDT 2004


Jon Jensen wrote:

>On Thu, 19 Aug 2004, Ed LaFrance (New Media E.M.S.) wrote:
>
>  
>
>>>I have an interchange mall with many shops, and would like a discount that 
>>>was applied in one shop to be transferrable to others transparently (i.e a 
>>>customer enters a code on one shop and can use the discount at the other 
>>>shops with no extra data entry).
>>>
>>>So far i have:
>>>1. Symlinked the sessions directories (so there is only one sessions dir, 
>>>cart is maintained betweed shops).
>>>
>>>2. Changed the CookieDomain in each of the shops to have all the urls in 
>>>the discount scheme.
>>>
>>>Any suggestions? I am out of ideas.
>>>      
>>>
>>If the session is still not portable between shops, you may need to 
>>customize Session.pm to allow this.
>>    
>>
>
>One way you can do this in the latest Interchange from CVS (or any nightly
>build from April 10 or later) is to add two CGI parameters to any links
>leaving the current catalog:
>
>mv_force_session=1
>mv_session_id=whatever
>
>The catalog the user goes to will accept the session ID in the CGI 
>parameter in preference to a cookie when mv_force_session is on.
>
>This was added just for a merchant with a similar situation to yours.
>
>If you're using an older Interchange and don't want to upgrade to a 
>development version, you could apply the simple patch manually:
>
>http://www.icdevgroup.org/cgi-bin/cvsweb/interchange/lib/Vend/Dispatch.pm#rev1.37
>
>Jon
>  
>

Thanks a lot for your help, ill give the patch a go!

Sandy.


More information about the interchange-users mailing list