Add currency indicator to textfield
rszrama - May 5, 2008 - 13:48
| Project: | Ubercart Donation Products |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
I had a thought that it would be nice to have the currency indicator on the textfield for the donation amount. You can add the following to that element's array to do it like I've done in the cart settings form for the minimum order subtotal:
<?php
'#field_prefix' => variable_get('uc_sign_after_amount', FALSE) ? '' : variable_get('uc_currency_sign', '$'),
'#field_suffix' => variable_get('uc_sign_after_amount', FALSE) ? variable_get('uc_currency_sign', '$') : '',
?>
#1
Fixed in latest dev release.
#2
Automatically closed -- issue fixed for two weeks with no activity.