Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / storepickup not behaving as needed

storepickup not behaving as needed

Locked

Views: 1,378

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
2 Jan 2010, 6:06 PM
#1
bassface avatar

bassface

New Zenner

Join Date:
Jan 2005
Location:
Aurora, CO USA
Posts:
71
Plugin Contributions:
1

storepickup not behaving as needed

Hi,
I am using the storepickup module and I have the local sales tax module installed (in a v1.3.8 store) and I need to modify storepickup to behave a bit differently than it does by default.

I think I somehow need to **force **the shipping address/zone to be the store address/zone so local sales tax is **always **applied when storepickup is selected as the shipping method, but I need to offer storepickup to all zones, not just the zone the store is in.

Currently if the shipping city is set to Aurora (as an example) and storepickup is selected, the local sales tax is not applied.

If I change the tax basis to 'Billing' and add a zone, then storepickup is not offered to any city except Denver. I still need to offer it to other cities.

My current config for storepickup:

Enable Store Pickup Shipping
True

Shipping Cost
0.00

Tax Class
--none--

Tax Basis
Shipping

Shipping Zone
--none--

Sort Order
2
```I hope this makes sense and someone can help me figure this out! Thanks in advance!
2 Jan 2010, 7:54 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: storepickup not behaving as needed

As there isn't any tax on $0.00, are you perhaps wanting to change the way the Tax itself is charged against the Order Total as now the Order is being purchased where the Tax is charged? Or am I misunderstanding what you are doing here? :unsure:

2 Jan 2010, 9:34 PM
#3
bassface avatar

bassface

New Zenner

Join Date:
Jan 2005
Location:
Aurora, CO USA
Posts:
71
Plugin Contributions:
1

Re: storepickup not behaving as needed

Ajeh:

As there isn't any tax on $0.00, are you perhaps wanting to change the way the Tax itself is charged against the Order Total as now the Order is being purchased where the Tax is charged? Or am I misunderstanding what you are doing here? :unsure:
It's confusing, so I'm probably not explaining it very well - :blush:. I'll try to be more clear.

The store is in Denver, any order shipped, delivered, or picked up within Denver has to have the local/city sales tax applied to the order total. There is no additional charge for store pickup, hence the $0.00 in the setup.

If an order is placed with store pickup as the shipping method the local Denver tax needs to be applied regardless of what the shipping address entered is.

So in the storepickup config, I chose shipping address as the basis for tax calculation, with no zone selected so it shows as an option for everyone. But then the Denver tax doesn't get calculated if another city is set as the shipping address (even though the order is going to be picked up at the store and not shipped). If I choose 'Billing' as the tax basis and select a zone for the storepickup module, then it would only show as an option for people in Denver.

I need a way to offer storepickup to everyone in all zones, but somehow make the module think Denver is always the shipping address so it calculates the local Denver tax.

Does that make better sense? Thanks Ajeh, for your continued assistance! :cool:

3 Jan 2010, 12:40 AM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: storepickup not behaving as needed

The confusion lies in trying to make a shipping module control tax ...

That is not controlling tax in the manner you need it ...

The tax is based on the setting in the My Store for whether to look at Billing, Shipping or Store Address ...

The problem is, you need it to not look at the shipping address but rather assume the shipping address of the store ...

This is not built into Zen Cart, at this time ...

The code could be customized to manage this in several way, such as build a "Store Pickup" address for the customer to handle the checkout so that tax is now applied, regardless of the Customer's selected addresses ...

Or, some other kind of override on the Taxes based on the shipping being Store Pick Up ...

I have found it easier to build an address book entry for the customer when Store Pickup is selected and have a check to look for a pre-exsiting "Store Pickup" address for the customer and not allow this to either be changed or displayed, depending on how you want to manage the code ...

Now, what this does, is change the Delivery Address to the Store and the Tax is then applied correctly ...

This is not a hard thing to customize, but it is a lengthy process to write it but it does work well to manage the Tax issue for shops with Store Pickup ...

3 Jan 2010, 4:18 PM
#5
bassface avatar

bassface

New Zenner

Join Date:
Jan 2005
Location:
Aurora, CO USA
Posts:
71
Plugin Contributions:
1

Re: storepickup not behaving as needed

Ajeh:

The problem is, you need it to not look at the shipping address but rather assume the shipping address of the store ...

This is not built into Zen Cart, at this time ...

That leads me to a question: Why does a 'Store Pickup' module need a shipping address other than the store address anyway? :shocking:
That doesn't make sense to me.

But I'll work on modifying the storepickup.php (I assume) to get this working.

4 Jan 2010, 12:36 AM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: storepickup not behaving as needed

Actually, you will probably find you need to do a lot of customization on the actual address being used so that the tax is based on a shipping address that matches the store address for the Tax to work ...

There are probably other methods, but the last one I used built a physical record in the address_book to be the Store Address for the customer and used that for the Shipping Address so that the Tax could be applied correctly ...

Let us know what you work out ... :smile:

4 Jan 2010, 11:45 PM
#7
bassface avatar

bassface

New Zenner

Join Date:
Jan 2005
Location:
Aurora, CO USA
Posts:
71
Plugin Contributions:
1

Re: storepickup not behaving as needed

I was really hoping to keep it simple (if it's at all possible, I really don't know yet) like doing a test for storepickup as the selected shipping module, and if that tests true, forcing a zone or a city, or whatever triggers the local tax mod to add local tax, somewhere (like in the order array) during the checkout process before the order total gets to the tax calculation. Guess I need to figure out how the checkout, order total, and tax calculation processes work first, though, huh. ugh