Miva Merchant 4 Module FAQs » Other Page Templates (BROK_PAGETEMPLATES)


{docurl}

I'm using the %baskettotalallF% token on the OSEL screen but it is not displaying the correct total. Why?

(2004/08/02)By "mistake" the default template in previous versions of the module had tokens, including %baskettotalallF% in the OSEL template which should not have been there.

The way Merchant works is that once shipping, tax, or other charges is added to the basket it stays there even if the customer leaves admin and visits other pages (e.g. so if they remove products from their basket, the incorrect tax is not updated until they go through checkout again). So if a customer begins checkout, selects their shipping (or has tax added) then leaves admin to check on their basket, then begins checkout again, the token %baskettotalallF% will display their subtotal INLCUDING the previously determined tax and shipping. That value won't be corrected (i.e. Merchant doesn't redo the tax and shipping ) until after the OSEL page is submitted. So the token to use on that page is %baskettotalF% which displays just the product subtotal or the token %baskettotalwithchargesF% which displays the basket total plus any charges such as redeemed gift certificates or coupons. This is the "default" behavior of Merchant itself. Similarly, the tokens in the default template which display the charges and tax shoudl NOT be there.

The corrected table which displays the product listing and totals should be:


<table border="0" cellpadding="2" cellspacing="0" width="100%"><tr>
<td align="left" valign="middle" bgcolor="%hdrcolor%">
<font face="%hdrfontface%" size="%hdrfontsize%" color="%hdrfontcolor%">
<b>Code</b>

</font>
</td>
<td align="left" valign="middle" bgcolor="%hdrcolor%">
<font face="%hdrfontface%" size="%hdrfontsize%" color="%hdrfontcolor%">
<b>Product</b>
</font>
</td>
<td align="left" valign="middle" bgcolor="%hdrcolor%">
<font face="%hdrfontface%" size="%hdrfontsize%" color="%hdrfontcolor%">
<b>Quantity</b>
</font>
</td>
<td align="right" valign="middle" bgcolor="%hdrcolor%">
<font face="%hdrfontface%" size="%hdrfontsize%" color="%hdrfontcolor%">
<b>Price/Ea.</b>

</font>
</td>
<td align="right" valign="middle" bgcolor="%hdrcolor%">
<font face="%hdrfontface%" size="%hdrfontsize%" color="%hdrfontcolor%">
<b>Total</b>
</font>
</td>
</tr>
%rows%

<tr>
<td align="right" valign="middle" colspan="3">  </td><td align="right" valign="middle" bgcolor="%hdrcolor%">
<font face="%hdrfontface%" size="%hdrfontsize%" color="%hdrfontcolor%">
<b>Total:</b>
</font>

</td>
<td align="right" valign="middle" bgcolor="%hdrcolor%" nowrap>
<font face="%hdrfontface%" size="%hdrfontsize%" color="%hdrfontcolor%">
<b>%baskettotalf%</b>
</font>
</td></tr></table>



Last update: 2004-12-10 09:35
Author: Support
Revision: 1.0

Print this record Send FAQ to a friend Show this as PDF file
Please rate this FAQ:

Average rating: 0 out of 5 (0 Votes )

completely useless 1 2 3 4 5 most valuable

You cannot comment on this entry

Records in this category