[ic] Setting basket fields (description, title, etc...)

Garry interchange-users@lists.akopia.com
Wed Jul 4 05:16:01 2001


I renamed the field titles using the page editor in the admin interface.

it took 2 minutes !

Gaz


----- Original Message -----
From: "Ron Phipps" <rphipps@reliant-solutions.com>
To: <interchange-users@developer.akopia.com>
Sent: Wednesday, July 04, 2001 7:15 AM
Subject: [ic] Setting basket fields (description, title, etc...)


> I have the need to dynamically change the title and price of an item in
the
> cart.  I have tried using the following code:
>
> [perl]
>   foreach my $item (@$Items) {
>    if ($item->{'code'} eq $Scratch->{sku})
>
>     $item->{mv_price} = $Scratch->{case_sub};
>     $item->{'title'} = "blah blah blah";
>    }
>   }
>   return;
>  [/perl]
>
> The price is set correctly - [item-subtotal] returns the correct value.
> The title is not set to "blah blah blah"
> [item-field price] does not show the correct price even though
> [item-subtotal] is computed correctly.
>
> Any idea's why the mv_price would be set correctly,  but the title would
> not?  How can I set [item-field price] to show the correct value as well?
>
> Thanks for the help!
> -Ron
>
> _______________________________________________
> Interchange-users mailing list
> Interchange-users@lists.akopia.com
> http://lists.akopia.com/mailman/listinfo/interchange-users


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com