Login
Register

VirtueMart

WooCommerce

Others

Docs

Support

Blog

About

Name The Price for VirtueMart

IMPORTANT ANNOUNCEMENT: Plugin development ceased, all plugins made available freely (GPL)

With great sadness we have to announce that we are ceasing development of all our VirtueMart, WooCommerce and Joomla plugins. Effective immediately, all our plugins -- even those that were paid downloads -- are made available for free from our homepage (GPL license still applies), but we cannot and will not provide any support anymore.

It has been a great pleasure to be part of the thriving development communities of VirtueMart as well as WooCommerce. However, during the last year it became painstakingly clear that in addition to a full-time job, a young family and several other time-consuming hobbies at professional level (like being a professional singer) the plugin development and the support that it requires is not sustainable and is taking its toll. It has been an honor, but it is now time to say good bye!

×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Dollar Sign 07 Oct 2015 21:10 #1

  • baxterdown
  • baxterdown's Avatar Topic Author
The dollar currency sign is appearing on the right of the input box. It needs to be on the left. How do I change it?
Attachments:

Dollar Sign 09 Oct 2015 22:52 #2

Dear Baxterdown,
The order of the input field and the currency symbol is unfortunately hard-coded in the plugin's template. There is no configuration setting, but there is still an easy way to change it by making a "template override":

The plugin's template snippet
plugins/vmcustom/nametheprice/nametheprice/tmpl/default.php

has it hardcoded to print the currency sign (taken from the VM configuration) after the input box.
If you want to print the dollar sign ahead of the input box, you can easily override this by copying the file
plugins/vmcustom/nametheprice/nametheprice/tmpl/default.php
to
templates/[YOURTEMPLATENAME]/html/vmcustom/nametheprice/default.php
and change line 23 of the code from
<input class="<?php echo $class ?>" type="text" value="" size="6" name="<?php echo $name?>"><?php echo CurrencyDisplay::getInstance ()->getSymbol(); ?><br />

to
<?php echo CurrencyDisplay::getInstance ()->getSymbol(); ?><input class="<?php echo $class ?>" type="text" value="" size="6" name="<?php echo $name?>"><br />

In particular, move the "<?php echo CurrencyDisplay::getInstance ()->getSymbol(); ?>" before the <input ...> tag

Best regards,
Reinhold
  • Page:
  • 1