Modular Merchant: Shopping Cart Software

Shopping Cart Software Service

Advanced SearchAdvanced Search RegisterRegister ProfileProfile FAQFAQ MemberlistMemberlist Log inLog in
Tax Calculation on One-Page Checkout Storefront
Post new topic   Reply to topic
Modular Merchant Forum Index -> Design: Templates & QuickCode Tags
Author Message

Mail Bag


Answering Your Questions Since... 9:30am

Joined: 28 Aug 2005
Posts: 113


PostPosted: Jan 14, 2008 03:13pm    Post subject: Tax Calculation on One-Page Checkout Storefront Reply with quote

Quote:
My store uses one-page checkout, and sometimes my customer aren't charged any tax. Is there any way to fix this?


Some templates designed earlier in the MMv3 beta testing period include an older version of the QuickCode Tags for displaying taxes. These older QuickCode Tags still work, but they don't automatically recalculate the customer's tax when they enter or edit their address.

The older versions of the tax-related QuickCode Tags require that the page be reloaded in order to recalculate the customer's tax. This can be problematic when using a one-page checkout design in your store, because all of the customer's address and payment information is entered on a single page; resulting in the page never being submitted prior to the final transaction.

Fortunately, there is a simple solution. As of "MMv3 Beta: Release Candidate J" (Released 11/28/2007) a new version of the tax-related QuickCode Tags are available. The new versions of the tax Tags will automatically recalculate and update the display of the customer's tax in your storefront whenever the customer enters or edits their address information during the checkout process.

This will allow tax charges to be recorded correctly, even if your shopping cart is using a one page checkout design.

To take advantage of the new dynamic tax QuickCode Tags, you will need to update your store's HTML templates. This can be done in your store's administration area at: [Design > HTML Templates]. (Refer to the Design Guide for more information on using the Template Editor.)

Scan your HTML templates for references to the outdated tax-related QuickCode Tags. They are usually found in any template that displays the content's of the customer's shopping cart. For example, the previous version of this code may look something like this:

Code:
{BASKET-IF-STATE-TAX-BEGIN}
<p>{BASKET-STATE-TAX-NAME}: {BASKET-STATE-TAX-FEES}</p>
{BASKET-IF-STATE-TAX-END}

{BASKET-IF-COUNTRY-TAX-BEGIN}
<p>BASKET-COUNTRY-TAX-NAME}: {BASKET-COUNTRY-TAX-FEES}</p>
{BASKET-IF-COUNTRY-TAX-END}

{BASKET-IF-ZIP-TAX-BEGIN}
<p>{BASKET-ZIP-TAX-NAME}: {BASKET-ZIP-TAX-FEES}</p>
{BASKET-IF-ZIP-TAX-END}


After you have located all instances of the code, replace it with the new versions of the tax-related QuickCode Tags. For example, the new version of the code may look something like this:

Code:
<p>Taxes {BASKET-ALL-TAX-NAME}: {BASKET-ALL-TAX-FEES}</p>


The new version no longer splits the display of taxes between state, country and zip code versions. However, the {BASKET-ALL-TAX-FEES} QuickCode Tag will display a list of the names of all of the individual tax rules that are being applied to the customer's order. The sum of any and all taxes applied to the customer's order are displayed by the {BASKET-ALL-TAX-FEES} QuickCode Tag.

By using the {BASKET-ALL-TAX-FEES} and {BASKET-ALL-TAX-FEES} QuickCode Tags in your HTML templates, the value and display of the customer's tax will be automatically updated as they enter or update their address information. This provides a solution for developing storefront templates that are compatible with one-step checkout.
_________________
Modular Merchant Mail Bag
Answering your questions, queries and puzzlers.
Modular Merchant shopping cart software, website hosting, and custom programming.
Display posts from previous:   
Post new topic   Reply to topic    Modular Merchant Forum Index -> Design: Templates & QuickCode Tags All times are GMT - 7 Hours
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group