| Project: | Ubercart Contributions |
| Component: | User interface |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Hello,
I have search this website forum and other content of net also to find solution but i didn't get it. So i have created this issue.
My problem is when any product is displayed with attributes than price of that attribute is displayed in this manner
Attribute Name :
option 1, +$10.00
option 2, +$20.00
option 3, +$30.00
Now instead of this i want to display it like
Attribute Name :
option 1, $10.00
option 2, $20.00
option 3, $30.00
I have tried attribute display option.
1st is Do not display. Which is not recommended for my website
2nd and 3rd is Display price adjustment / total price but it display + sign.
I have tried StringOverride module but it doesn't helped as code of ", +" might be not added in t() function or it is concated at time of display in string.
So anyone know solution please help me out and i recommend to developer to add new option at time of listing whether they want to display "+ " sign or not.
Thank you
Tejas Mehta


Open ubercart/uc_attribute/uc_attribute.module
There are a few options. In my case, I don't want the price at all because I'm adding gift cards and already have the price listed as the name of the option. Currently it appears like this: $25, +$25.00
If you comment out line 751 like this:
//$options[$option->oid] .= $display_price;then the price is completely hidden, i.e. it now appears: $25
If you just want to remove the + sign, then go to line 739 and replace this:
$display_price = ($option->price != 0 ? ', '. ($option->price > 0 ? '+' : '') . uc_price($price_info, $context) : '');with this:
$display_price = ($option->price != 0 ? ', '. ($option->price > 0 ? '' : '') . uc_price($price_info, $context) : '');-----
csdesignco.com