User1234567891 Posted September 9, 2011 Share Posted September 9, 2011 I am using an ideal basic module, which works perfect. it does not give an order amount overview on the last page before confirming the order. Seems easy enough. Just add it in payment_execution.tpl, which i did. But something odd happens, it shifts the comma. An order of 6,00 euro's becomes 600,00 euro's. When confirming the order you are transferred to the ideal environment where the amount is correct; 6,00 euro's. This is the code i have add to the tpl file: <h3>{l s='iDEAL Basic payment' mod='idealbasic'}</h3> <form name="ideal_basic_confirmation" action="{$acquireurl}" method="post"> <p> <img src="{$this_path}iDeal.jpg" alt="{l s='ideal' mod='idealbasic'}" style="float:left; margin: 0px 10px 5px 0px;" /> {l s='You have chosen to pay by iDEAL Basic.' mod='idealbasic'} <br/><br /> - {l s='The total amount of your order is' mod='bankwire'}<span id="amount" class="price">{displayPrice price=$total}</span> </p> I can't quit figure out what's going wrong. Hopefully someone has a tip for me. Link to comment Share on other sites More sharing options...
phrasespot Posted September 11, 2011 Share Posted September 11, 2011 The module may be using cents to do calculations thus all figures would be price * 100. You could take this into account and divide $total by 100 on the section you changed to add the value, but make sure that the $total is not zero so you don't get div by zero errors. Also (unrelated) change the line you copied from bankwire module to read mod='idealbasic' Link to comment Share on other sites More sharing options...
User1234567891 Posted September 13, 2011 Author Share Posted September 13, 2011 You rock! Indeed it is *100. Found it in idealbasic.php Changed {displayPrice price=$total} to {displayPrice price=$total/100} Thank you so much for the tip. I learn every day! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now