[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[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