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
You cannot comment on this entry
Records in this category
- The total on my checkout pages are not correct. Why?
- How do I display the "thank you" message on the invoice page?
- On the basket pages I would like to display the total w/ the shipping included but NOT with the tax included. Is this possible?
- Is there a way to "Limit" the number of characters that can be entered into the "address" or any other field of the ACNT and OINF pages?
- What are the tokens for displaying the basket attributes?
- Hello, I am using the Affiliate Login module and the other page templates module. How do I get the affilate LOGN_header to show up for the login included in the other page templates module?
- How do I modify the Custer Login screen so that the customer is redirected to the Account screen rather than the storefront?
- The footer of my basket page has %OUI% in it and various OpenUI tokens. However, when I display it on the Other Page Templates generated basket page with the %bask_ftr% token, the %OUI% and other OpenUI tokens show in the page. How do I fix this?
- I'm using the %baskettotalallF% token on the OSEL screen but it is not displaying the correct total. Why?
- How do I consolidate the checkout screens so that the "shipping and billing selection" lists are on the "Customer Information" page?
- I'm designing checkout with OPT, and am wondering if there's any way to get the %prompt_foo% tokens to render different text? I don't want to simply replace them with HTML as I'd still like the form validation to work correctly (unfilled required fields appearing in red).
- I'm running into problems in that some of my tokens are not being processed correctly. For example, I'm trying to do this:%begin_if|%module|modcode:position%|%...%end_if%but it just generates errors or the %module simply shows up on the page. What could be wrong?
- Can I display the "related products" of the products in the basket in a single listing?
- Is it possible to display a "checkout" link on the basket page?
- Is it possible to display a "continue shopping" link on the basket page?
- How do I make the "Account Login" screen compatible with other modules such as the Order Status Manager and Affiliate Manager?
- The %logn_hdr% does not display the correct header when the customer is logging out.
- The "Missing Attributes" screen is acting like the Product Listing screen! Help!?
- How do I display the attributes in the basket?
- How can I display a "checkout" link on the basket page which points to the correct screen depending on whether or not the customer is logged in?
- I'm using the Affiliate Manager (http://vikingcoders.com/go.mv?ID=BROK_PAGETEMPLATES) and I would like to display the "Login Header", "Login Footer", "Account Header", and "Account Footer" on the customer login and account pages for affiliates signing up to be affiliates. How do I do this?
- How do I make the checkout screens compatible with the Gift Certificate Manager (http://vikingcoders.com/go.mv?ID=BROK_CERTIFICATES)?
- How do I make the Customer Account screen compatible with List Manager?
- How do I make the Login screen compatible with the Order Status Manager (http://vikingcoders.com/go.mv?ID=BROK_ORDERSTATUS) and Order Status - Login (http://vikingcoders.com/go.mv?ID=BROK_ORDERLOGIN)?
- How do I make the module compatible with the List Manager (http://vikingcoders.com/go.mv?ID=BROK_WISHLIST) module?
- How do I make the Login screen compatible with the Affiliate Manager (http://vikingcoders.com/go.mv?ID=BROK_AFFILIATES) and Affiliate Manager- Login (http://vikingcoders.com/go.mv?ID=BROK_AFFILATELOGIN)?
- How do I set the time zone so that the %time% and %date% tokens reflect the time zone of my store and not my server?














