View Single Post
  #15  
Old 04-09-2009, 02:21 AM
 
retrtrtrytrutru retrtrtrytrutru is offline
 

Senior Member
  
Join Date: Aug 2007
Posts: 101
 

Default Re: Improved Invoice Layout

Sorry to hijack your thread jaydee but I think I have narrowed it down. In order_data.tpl I only have to change the Total column but I don't fully understand it, yet:

Code:
{math assign="total" equation="amount*price" amount=$product.amount price=$product.display_price|default:$product.price|default:0}{include file="currency.tpl" value=$total}
In simple terms, I think this basically says take the product amount/quantity and multply it with the display price. I think I can safely change this to:

Code:
{math assign="total" equation="amount*price" amount=$product.amount price=$product.price|default:0}{include file="currency.tpl" value=$total}
This will multiply the procuct quantity with the product price instead of the display price. Only question I have here, do you know what the |default:0 string means, in simple terms of course. I am worried that if I remove it something will go wrong so if I know how to read this I can continue again...
__________________
www.qualitylamps.eu
X-Cart Gold 4.1.8, PHP 5.2.6, MySQL 5.0.51a, Apache 2.2.9

www.vervangjelamp.nl
X-Cart Gold 4.2.0, PHP 5.2.6, MySQL 5.0.37-standard, Apache/2

Sorry for the weird user name, I registered it by mistake
Reply With Quote