VirtueMart

WooCommerce

Others

Docs

Support

Blog

About

Forum

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!

Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Dollar Sign

Dollar Sign 07 Oct 2015 21:10 #1

  • baxterdown
  • baxterdown's Avatar Topic Author
  • Offline
  • Posts: 4
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:

Please Log in or Create an account to join the conversation.

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

Please Log in or Create an account to join the conversation.

  • Page:
  • 1

VM - Shopping cart

 x 

Cart empty

Login Formular