uShop English (U.S.) for 179!

uStorekeeper English (U.S.) for 149!

 Products
       uTest
       uReserve
       uShop
       uStorekeeper
       uGolf
       uDirectory
       uSignIn
 Tech Support
       Support Policy
       Knowledge Base
            uTest
            uReserve
            uShop
            uStorekeeper
            uGolf
            uDirectory
            uSignIn
       Documentation
       Reference Sites
 Legal
       Software Piracy
       Legal Notices
       Privacy Policy
       Licensing
 Miscellaneous
       Reseller Info
       Contact Us
       Site Map
Populating State Fields For Tax Calculation

Knowledge Base Lobby : uShop Support Conference : Programmer Tips
Nov-21-17 04:30 PM EST
Original Message
Populating State Fields For Tax Calculation
Author James on 11-21-2000 at 13:56 (EST)
Hi,
Had a client that was concerned about tax choices being able to be bypassed when set to shipping address. If the shipping address is the same as billing address customers do not complet form leaving the option open. Here is a resolve that will fix for state to be populated so tax calculation will work regardless of billing or shipping address settings. This can also be modified to dyamically populate same billing data into shipping address.




Hope this helps...
James
TABLE OF CONTENTS

Table Of Contents
  Code Posting.... James, 2000-11-21 14:03:07 (1)
            Full Order Template Billing 2 Shipping Population James, 2000-11-22 09:47:54 (2)
                 Full Order Template - Billing 2 Shipping Update / Fix James, 2000-12-08 21:22:49 (3)
                      RE: Full Order Template - Billing 2 Shipping Update / Fix Bill Weiner, 2000-12-09 17:45:15 (4)

Messages In This Discussion
         1. Code Posting....
        Author James on 11-21-2000 at 14:03 (EST)
Sorry,
Coding looked fine in preview before posting. The first part of coding (onChange) to be insterted within select option tag for "billing_state" with states pull down. Then a simple text input form tag for "shipping_state" in the shipping section.

Thanks,
James
TABLE OF CONTENTS
                 2. Full Order Template Billing 2 Shipping Population
                Author James on 11-22-2000 at 09:47 (EST)
Hi,
I posted a full order template that will populate the fields onChange from Billing to Shipping. If the shipping data is different customer can easily change. This also helps by customers forgetting to choose tax options if they only complete billing side and tax settings are applied to shipping side.

http://www.hamptonplace.com/zzuShop/order_template_populate.html

enjoy,
James
TABLE OF CONTENTS
                         3. Full Order Template - Billing 2 Shipping Update / Fix
                        Author James on 12-08-2000 at 21:22 (EST)
Hi,
The version 3.3 does not work with the previous template that uses the select option code, you will get an error 500 because of a java conflict with the cgi. I altered the template removing the select options for state and country which resolves the the problem for this version of uShop.

http://www.hamptonplace.com/zzuShop/order_template_populate_v2.html

Enjoy,
James
TABLE OF CONTENTS
                                 4. RE: Full Order Template - Billing 2 Shipping Update / Fix
                                Author Bill Weiner on 12-09-2000 at 17:45 (EST)
I took a look at your JavaScript... and for some reason the () in the onChange methods of the state and country fields was causing that conflict. Why? I don't know. In any case, I made a change (ie. there's more than one way to skin a cat :^)

.... So check out that updated template on the developer's add-on page.
TABLE OF CONTENTS

© 2003 Microburst Technologies, Inc.