[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
Re: [ic] Can the price be editted in the cart???
At 10:24 AM 7/23/2001 -0400, you wrote:
>"Jason Osborne" <jason@sohonetworks.cc> writes:
>
> > Had a quick question. I am trying to allow editing of the price in
> > the shopping cart for an Intranet e-commerce package. I went under
> > basket and setup a input text box like so:
> >
> > <INPUT TYPE=text NAME="[price-name]" VALUE="[item-price]" SIZE=7>
> >
> > Only problem is that when I either hit the recalculate or the check
> > out button, it does not carry the price over.
>
>I think this is because the [subtotal] and [price] tags go directly
>against the database and not session variables. One way to overcome
>that is to override those tags with global subs that use session
>variables instead. BTW, these global subs could still be catalog
>specific.
Additionally, here's an example of how to set specific prices in perl
(4.6.x) using mv_price:
my $change_sku = $CGI->{mv_order_item};
my $cart = $Carts->{main};
my $count = 0;
foreach (@$cart){
if ($this_sku eq $cart->[$count]{code}){
$cart->[$count]{mv_price} = $price;
}
$count++;
}
HTH,
Dan Browning, Cyclone Computer Systems, danb@cyclonecomputers.com
_______________________________________________
Interchange-users mailing list
Interchange-users@lists.akopia.com
http://lists.akopia.com/mailman/listinfo/interchange-users