I have a product setup with the price set to 0 and a variable price feature. Regardless of what variable price is entered the price in the cart is displayed as $0.00

Comments

jeggen’s picture

Status: Active » Needs review

Issue is related to uc_custom_price module. To get pricing to pass properly through to the cart I had to take lines 221-224 and place these into the "Custom Price Calculation" section of the product.

So if you are using UC Variable Price AND UC Custom Price then for any product with the variable price feature you need to use the following lines as your custom price calculation.

  if (!empty($item->data['varprice'])) {
    // Update the cart item's price to the entered price value.
    $item->display_price = $item->price = $item->data['varprice'];
  }

I don't know if this is something that needs to be fixed in the module or documented, but wanted to at least respond here in case someone else has this issue.

applieddrupal’s picture

This still appears to be broken. I have not been able to investigate the cause further, but running ubercart 3.x and drupal 7.x products with variable prices are not having their prices show up in the cart.

applieddrupal’s picture

This is WITHOUT having the custom price module installed, as well.