Re: $product->sell_price when there is a Dafault price attribute

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6841
Re: $product->sell_price when there is a Dafault price attribute

You need to get the item as it exists in the cart, which you can do with something like this:

<?php
$items
= uc_cart_get_contents(); // Current user's cart.

foreach ($items as $item) {
 
$total += $item->price + $item->qty;
}
?>

The attribute module adds the chosen option price to the product's sell price when it is added to the cart.

$product->sell_price when there is a Dafault price attribute option By: fivepoints (2 replies) Fri, 01/02/2009 - 15:05