VirtueMart

WooCommerce

Others

Docs

Support

Demo

Blog

About

Forum

We are currently unable to provide proper support!

For the last few months we have been very busy working on some huge, very time-consuming and time-sensitive projects, so our support was very limited and we were unable to provide proper support in our forums! We now have a huge backlog of requests from our customers, which we are trying to clear bit by bit. Unfortunately, this takes longer than we anticipated, so our response time is not yet up to par. We are trying our best to improve this situation as soon as possible.

Sorry for the inconvenience and thank you for your understanding!

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