Our Zip Code being entered in shipping information

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Brewhaus
Vice Admiral (VADM)
Vice Admiral (VADM)
Posts: 878
Joined: Sat Jan 19, 2008 4:30 pm

Re: Our Zip Code being entered in shipping information

Post by Brewhaus » Tue Jun 10, 2014 9:59 am

The fix is in back-end code. If you have full source code, find CalculateTaxForDelivery method inside CommerceBuilder/Services/Taxes/AbleCommerce
AbleCommerceTax.cs
I do not seem to have the Commercebuilder folder or the AbleCommerceTax.cs file. Is there another option?
Rick Morris
Brewhaus (America) Inc.
Hot Sauce Depot

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: Our Zip Code being entered in shipping information

Post by Katie » Tue Jun 10, 2014 10:43 am

Hi Rick,

Your business is located in Texas, right? I did a little reading about taxation there, and from what I could tell, you should have your tax nexus set to Shipping Address instead of Billing Address. Please do your own research though because I can't be liable for giving out erroneous tax advice :)

Can you check because the bug here should be very uncommon. Most businesses charge sales tax depending on where the shipment will be sent. So, if I ordered some hot sauce from here in Florida, but had it shipped to my friend in Texas, then I would expect to pay sales tax. I think this is normal for most states, but there must be some that tax on the billing address since it is an available option in the tax rule configuration.

Let me know please. You might be able to solve the problem without any code changes.

Katie
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

Brewhaus
Vice Admiral (VADM)
Vice Admiral (VADM)
Posts: 878
Joined: Sat Jan 19, 2008 4:30 pm

Re: Our Zip Code being entered in shipping information

Post by Brewhaus » Tue Jun 10, 2014 10:53 am

Hi Katie,

Yes, we tax based on the shipping address, not the billing address.

Rick
Rick Morris
Brewhaus (America) Inc.
Hot Sauce Depot

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: Our Zip Code being entered in shipping information

Post by Katie » Tue Jun 10, 2014 11:05 am

Oh sorry! I had this backwards. The bug is when the nexus is set to shipping and not billing. I will try to see if we can get a hot patch for R6. It might be a few days though.

Thanks
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

Brewhaus
Vice Admiral (VADM)
Vice Admiral (VADM)
Posts: 878
Joined: Sat Jan 19, 2008 4:30 pm

Re: Our Zip Code being entered in shipping information

Post by Brewhaus » Tue Jun 10, 2014 11:49 am

No problem, Katie. I am having one of those days myself! :?
Rick Morris
Brewhaus (America) Inc.
Hot Sauce Depot

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: Our Zip Code being entered in shipping information

Post by AbleMods » Wed Jun 25, 2014 4:56 am

Katie any progress on a patch for R6?
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: Our Zip Code being entered in shipping information

Post by Katie » Wed Jun 25, 2014 8:53 am

I'm really sorry Joe. I meant to get a patch published, but totally forgot.

I do have the code change so you can fix this right away:

Changes are in AbleCommerce tax provider.

/CommerceBuilder/Services/Taxes/AbleCommerce/AbleCommerceTax.cs

Insert this code at line 491:

Code: Select all

 // CREATE A TEMPORARY ADDRESS FOR TAX CALCULATION ONLY
           shippingAddress = new Address();
So, the final block of code will look like this:

Code: Select all

// ENSURE SHIPPING ADDRESS IS VALID
                    if (!shippingAddress.IsValidForTax)
                    {
                        // CREATE A TEMPORARY ADDRESS FOR TAX CALCULATION ONLY
                        shippingAddress = new Address();
                        shippingAddress.CountryCode = billingAddress.CountryCode;
                        shippingAddress.Province = AddressHelper.GetProvinceName(billingAddress.ProvinceId);
                        shippingAddress.PostalCode = billingAddress.PostalCode;
                    }
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: Our Zip Code being entered in shipping information

Post by AbleMods » Wed Jun 25, 2014 9:15 am

Thanks. Unfortunately this client doesn't have full source. I can let them know a patch is in the works?
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: Our Zip Code being entered in shipping information

Post by Katie » Wed Jun 25, 2014 10:20 am

Yes, I have requested patches for R6 and R7. It will be a couple days at most.
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: Our Zip Code being entered in shipping information

Post by AbleMods » Wed Jun 25, 2014 10:36 am

You ROCK !
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

Brewhaus
Vice Admiral (VADM)
Vice Admiral (VADM)
Posts: 878
Joined: Sat Jan 19, 2008 4:30 pm

Re: Our Zip Code being entered in shipping information

Post by Brewhaus » Thu Jul 17, 2014 10:59 am

Is there anything more on this yet? We just had another of these orders today, and the customer was quite upset about the change in shipping charge (enough to say that they would not purchase from us again).
Rick Morris
Brewhaus (America) Inc.
Hot Sauce Depot

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: Our Zip Code being entered in shipping information

Post by Katie » Thu Jul 17, 2014 6:54 pm

I'm really sorry about that Rick. The patches are linked below -

Gold R7 - ftp://ftp.ablecommerce.com/patches/Patc ... ulates.zip

Gold R6 - ftp://ftp.ablecommerce.com/patches/Patc ... ulates.zip

Inside the zip file is a new Commercebuilder.dll which goes in the \Bin\ folder.

PLEASE MAKE A BACKUP OF YOUR ORIGINAL. I wanted to get it to you right away, but I have not had a chance to do a final test on the changes yet.
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

Brewhaus
Vice Admiral (VADM)
Vice Admiral (VADM)
Posts: 878
Joined: Sat Jan 19, 2008 4:30 pm

Re: Our Zip Code being entered in shipping information

Post by Brewhaus » Fri Jul 18, 2014 9:01 am

Thank you, Katie.
Rick Morris
Brewhaus (America) Inc.
Hot Sauce Depot

Post Reply