Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [Andy] MyFaves to basic shopping cart?

Quote Reply
Re: [Andy] MyFaves to basic shopping cart? In reply to
Using the cookie's np, got it working myself :)

here's the sub for anyone's who's interested:

sub {
# Show pricing info myfaves_price Sub
my ($sth, $db, $ID, $price, $total);
my $chop = $IN->cookie('IDList');
my @sliced = split(/ /, $chop);
my $output=qq~~;
foreach (@sliced) {
$db = $DB->table('Links');
$sth = $db->select ( { ID => $_ }, ['OurPrice']);
my ($price) = $sth->fetchrow_array;
$total += $price;
$output .= qq~$price<br />~;
}
$output .= qq~\$$total~;
return $output;
}



Comedy Quotes - Glinks 3.3.0, PageBuilder, StaticURLtr, CAPTCHA, User_Edit_Profile

Subject Author Views Date
Thread MyFaves to basic shopping cart? Chas-a 2672 Feb 9, 2004, 7:47 PM
Thread Re: [Chas-a] MyFaves to basic shopping cart?
Andy 2590 Feb 10, 2004, 12:56 AM
Thread Re: [Andy] MyFaves to basic shopping cart?
Chas-a 2558 Feb 10, 2004, 10:22 AM
Thread Re: [Chas-a] MyFaves to basic shopping cart?
Andy 2524 Feb 11, 2004, 12:09 AM
Thread Re: [Andy] MyFaves to basic shopping cart?
Chas-a 2513 Feb 11, 2004, 4:56 PM
Post Re: [Chas-a] MyFaves to basic shopping cart?
Andy 2487 Feb 12, 2004, 12:17 AM