With the newest changes in Ubercart (7.x-3.0-rc2), Custom Pricing is not displayed when adding products to the cart. Additionally, it is not displayed in the "Cart contents" panel of the review order screen, or the "Cart contents" panel of the checkout screen.
My guess is that the new ubercart field, display_price, being used in place of sell_price in places like the cart, is affecting this.
The node page's price display, Order total/subtotal fields still use the correct custom price.
Comments
Comment #1
Dylanotron commentedI found that setting $item->display_price along with $item->price in the custom price calculation fixes this issue, like so:
So, instead of writing a script to update all of my custom price values in the database, I went to uc_custom_price.module and modified it like so:
Adding the last line. This may not be the proper solution, though, because the user may not intend to set display_price, or the user may have already set display_price. Perhaps it would be better to add a checkbox asking the user whether to add this line of code ("Have $item->price update $display->price?")
Changes are still currently being made in Ubercart to change other areas (e.g. catalog view) over to display_price, but I expect this solution will work despite the continuing changes to Ubercart.
Comment #2
Dylanotron commentedThe fix above only corrects the shopping cart block when viewing the node page that of the item that is in the cart. Regular price is still being shown for:
Cart page
Cart panel on checkout page
Comment #3
Dylanotron commentedHere is the entire fix to correct for custom price display for all pages. As noted in #1, this may not be the proper solution, though, because the user may not intend to set display_price, or the user may have already set display_price. Perhaps it would be better to add a checkbox asking the user whether to add this line of code ("Have $item->price update $display->price?")
Changes are still currently being made in Ubercart to change other areas (e.g. catalog view) over to display_price, but I expect this solution will work despite the continuing changes to Ubercart.
uc_custom_price.module: