[ic] Getting started...

Patrick Galbraith interchange-users@icdevgroup.org
Tue Jun 10 12:17:01 2003


Thanks so much! Yeah, I saw the session file yesterday. It looks like
they're using Storable to put a serialised hashref in that file. At
classmates.com, we do the same thing, but put it in a blob column of
sessions table keyed by a user's session ID. It mainly contains user
information. I wonder if that might be something to modify the Interchange
codebase to do. I like having all my data in one central place, namely a
RDBMs.

For slash, we'd just put the user info in an instantiated object.

To my delight, I also ran accross the Authorize.net module you mentioned -
it resembled some code that I just wrote to utilise their AIM method,
using LWP and SSL. I was highly pleased to see that it's fairly easy to
use.

I feel quite confident that Interchange is the solution I will use for 
ecommerce. It's damn full featured!

Does anyone know what the actual performance of the templating language 
that interchange uses? Has anyone used the templating engine for other 
applications?

regards,

Patrick 


On Tue, 10 Jun 2003, Chris Wenham wrote:

> On Monday 09 June 2003 18:08, Patrick Galbraith wrote:
> > I've been perusing the code and am trying to figure out how I'll use
> > this. I started wondering where I might find where the actual shopping
> > cart for each user is stored? I looked at the db table 'orderline' and
> > thought that was is, but that's for products that have already been
> > ordered.
> 
>  Shopping carts are stored as Perl hashes in session files that you'll find in 
> each catalog's /session directory. To access these hashes directly from 
> within a template, the best way is to use some embedded perl in your HTML and 
> the objects that Interchange exposes, like this:
> 
>  <h2>Blah blah blah...</h2>
>  [perl]
> 	my $current_cart = $Carts->{main};
> 	my $quantity = $current_cart->[0]->{quantity};
>         $Scratch->{foo} = $quantity;
>         return;
>  [/perl]
>  <p>Quantity of first item in cart: [scratch foo]</p>
> 
>  There's more interfaces documented here:
> 
>  http://www.icdevgroup.org/i/dev/docfly.html?mv_arg=ictemplates07%2e00
> 
> > Also, I was wondering where a developer would look to modify the
> > ordering process to use a billing company such as authorise.net - I have
> > a nice library I've built that sends billing info to their server and
> > returns whether that transaction was successful. Where would I plug that
> > in - where is the actual code that does the order? Is it all in the lib
> > dir?
> 
>  Interchange already comes with an Authorize.Net module that you'll find in 
> the ~interch/lib/Vend/Payment directory. There's modules for other payment 
> processors there, too.
> 
> Regards,
> 
> Chris Wenham
> 
> _______________________________________________
> interchange-users mailing list
> interchange-users@icdevgroup.org
> http://www.icdevgroup.org/mailman/listinfo/interchange-users
> 

-- 
Patrick Galbraith
Senior Software Developer
pgalbraith@classmates.com
patg@patg.net capttofu@slashdot.org