Hello all,
I am trying to change the price of certain products in the my cart based on a new table I made for refunds. The following simple code works fine for changing the quantity, but not the price. (@p contains the ordered prices of items in the cart pulled from my returns_db table).
# Set the price
my $cnt = 0;
for my $item (@{$Items}){
$item->{price} = $p[$cnt];
$cnt++;
}
I've tried a variety of other approaches, but I cannot seem to change the price of anything in the cart. Is there something I'm missing? Can I know change prices of cart items on the fly?
Thank you in advance for all the help and I hope you have a great weekend.
______________________
Mihai Dan
Air Delights, Inc.
https://www.airdelights.com
1 (800) 440-5556
_______________________________________________
interchange-users mailing list
interchange-users@interchangecommerce.org
https://www.interchangecommerce.org/mailman/listinfo/interchange-users
I am trying to change the price of certain products in the my cart based on a new table I made for refunds. The following simple code works fine for changing the quantity, but not the price. (@p contains the ordered prices of items in the cart pulled from my returns_db table).
# Set the price
my $cnt = 0;
for my $item (@{$Items}){
$item->{price} = $p[$cnt];
$cnt++;
}
I've tried a variety of other approaches, but I cannot seem to change the price of anything in the cart. Is there something I'm missing? Can I know change prices of cart items on the fly?
Thank you in advance for all the help and I hope you have a great weekend.
______________________
Mihai Dan
Air Delights, Inc.
https://www.airdelights.com
1 (800) 440-5556
_______________________________________________
interchange-users mailing list
interchange-users@interchangecommerce.org
https://www.interchangecommerce.org/mailman/listinfo/interchange-users