Grafikamania Posted February 21, 2010 Share Posted February 21, 2010 Salve ragazzi ho riscontrato un problema riguardo il campo PREZZO TOTALE nel file order-detail.tplPraticamente l'approssimazione dei decimale avviene in maniera diversa rispetto agli altri campi.La variabile in questione è la seguente:{convertPriceWithCurrency price=$product.total_price currency=$currency convert=0}Posto un img: Link to comment Share on other sites More sharing options...
Grafikamania Posted February 21, 2010 Author Share Posted February 21, 2010 Soluzione:Order.phpLinea 304$row['total_price'] = number_format($row['total_wt'] / (1 + ($row['tax_rate'] * 0.01)), 2, '.', '');Sostituita con$row['total_price'] = number_format($row['product_price'] * $row['product_quantity'], 2, '.', ''); 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