View Single Post
  #40  
Old 01-26-2007, 10:42 PM
  neaisha's Avatar 
neaisha neaisha is offline
 

eXpert
  
Join Date: May 2006
Posts: 276
 

Default Re: Improved minicart display

the shipping was calculating incorrectly for me to...it was doubling it.

replace:
Code:
<table width="100%" border="0" cellpadding="1" cellspacing="0"> <tr> <td class="ProductPriceSmall">{$lng.lbl_total}: </td> {* calculate grand total including shipping cost*} {math assign="grandtotal" equation="minicarttotalcost+minicartshipping" minicarttotalcost=$minicart_total_cost minicartshipping=$minicart_shipping} {* end of grand total calculation *} <td align="right" class="ProductPriceSmall">{include file="currency.tpl" value=$grandtotal}</td> </tr> </table>

with
Code:
<table width="100%" border="0" cellpadding="1" cellspacing="0"> <tr> <td class="ProductPriceSmall">{$lng.lbl_total}: </td> {* calculate grand total including shipping cost*} {math assign="grandtotal" equation="minicarttotalcost" minicarttotalcost=$minicart_total_cost minicartshipping=$minicart_shipping} {* end of grand total calculation *} <td align="right" class="ProductPriceSmall">{include file="currency.tpl" value=$grandtotal}</td> </tr> </table>

i couldnt figure out how to code it right but in general, you don't need the equation per se b/c "minicarttotalcost" already includes shipping
__________________
X-Cart Gold 4.4.3
--------------------------------------
Reply With Quote