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
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

greenSkin - November 14, 2008 - 01:55
Status:active» fixed

Fixed in latest dev release.

#2

System Message - November 28, 2008 - 02:12
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.