Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Oct 2010
    Location
    San Juan Puerto Rico
    Posts
    62
    Plugin Contributions
    0

    Default [INPROGRESS CHANGE-196] Store pickup Tax all who pick up

    Guys,

    I was able to fix some of my tax issues by properly addressing some zones, but now If I have a customer who lives in say FL want to drive in and pick up a product it does not charge them tax unless they are from VT!

    Under the store pickup module it displays

    "Tax Basis
    On what basis is Shipping Tax calculated. Options are
    Shipping - Based on customers Shipping Address
    Billing Based on customers Billing address
    Store - Based on Store address if Billing/Shipping Zone equals Store zone"

    Shipping
    Billing

    But then it only displays two options???? Any way to fix this?

  2. #2
    Join Date
    Oct 2010
    Location
    San Juan Puerto Rico
    Posts
    62
    Plugin Contributions
    0

    Default Re: Store pickup Tax all who pick up

    Looks like others in the past have had this same issue...

    I tried this

    http://www.zen-cart.com/forum/showthread.php?t=65454

    " In Config-> My Store,

    I have "Basis of Product Tax" set to "STORE" and it calculates on pick ups at the rate where *the store is*.

    For the tax zone on the shipping module you have here, I'd say to calculate on Store Zone IF the shipping/billing zone equals the store zone. That way, whichever address is in CT and it is a store pick-up, the tax should calculate. It works in mine and I have it set up this way.

    Hope this helps what you want to do."

    But no dice.

  3. #3
    Join Date
    Oct 2010
    Location
    San Juan Puerto Rico
    Posts
    62
    Plugin Contributions
    0

    Default Re: Store pickup Tax all who pick up

    Still looking no dice. Anyone have any ideas?

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Store pickup Tax all who pick up

    One thing you can try, and you really need to test this well as I have not tested it under all conditions ...

    Customize the order.php class file and around line 434, change the code to read:
    Code:
    if (stristr($_SESSION['shipping']['id'], 'storepickup') == TRUE) {
          $taxRates = zen_get_multiple_tax_rates($products[$i]['tax_class_id'], STORE_COUNTRY, STORE_ZONE);
    } else {
          $taxRates = zen_get_multiple_tax_rates($products[$i]['tax_class_id'], $tax_address->fields['entry_country_id'], $tax_address->fields['entry_zone_id']);
    }
    What this should do is when the Shipping Module for Store Pickup is selected it will use the Store Address for the Taxes ...

    But check that this method does not cause issues on anything else regarding taxes ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Oct 2010
    Location
    San Juan Puerto Rico
    Posts
    62
    Plugin Contributions
    0

    Default Re: Store pickup Tax all who pick up

    ajeh thanks,

    I did try what you mentioned, but I am slightly lost. Excuse my lower level of PHP knowledge, But can you do an if then statement nested in an array?

    If so thats what I think we would want to do or make another function outside of the array that determines Tax.

    In the Array starting on line 434 as shouldn't you change the value on line 437 'tax' => To what ever value you require? In this case setting tax class to store address when picking up. I am not very fluent with PHP coding since I come from a plc and assembly background. Any help would be great. I am going to do some more testing.




    I am shocked this is not already done in ZC though..

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Store pickup Tax all who pick up

    The original line is:
    Code:
          $taxRates = zen_get_multiple_tax_rates($products[$i]['tax_class_id'], $tax_address->fields['entry_country_id'], $tax_address->fields['entry_zone_id']);
    that is being replaces with the IF that I posted ...

    Test and see if this works for you and if so, then you can customize if further or build a function or what have you for changing the code ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  7. #7
    Join Date
    Oct 2010
    Location
    San Juan Puerto Rico
    Posts
    62
    Plugin Contributions
    0

    Default Re: Store pickup Tax all who pick up

    ok perfect. I just updated it as you stated and I am now testing it. thanks again.

  8. #8
    Join Date
    Apr 2007
    Location
    Vancouver, Canada
    Posts
    1,547
    Plugin Contributions
    81

    Default Re: Store pickup Tax all who pick up

    Ajeh, I see the tax being shown in the order total section, but it isn't being added to the order total...

    Your Total $19.99
    Sub-Total:


    $0.00
    Store Pickup (Walk In):


    $2.00
    Washington DC Alcohol Sales Tax - 10%:


    $19.99
    Total:

  9. #9
    Join Date
    Apr 2007
    Location
    Vancouver, Canada
    Posts
    1,547
    Plugin Contributions
    81

    Default Re: Store pickup Tax all who pick up

    Here is the correct code:

    PHP Code:
          // modified to use store address for tax calculation IF shipping method is store pick-up
          
    $this->products[$index] = array('qty' => $products[$i]['quantity'],
                                          
    'name' => $products[$i]['name'],
                                          
    'model' => $products[$i]['model'],
                                          
    'tax_groups'=>$taxRates,
                                          
    'tax_description' => zen_get_tax_description($products[$i]['tax_class_id'], $tax_address->fields['entry_country_id'], $tax_address->fields['entry_zone_id']),
                                          
    'price' => $products[$i]['price'],
                                          
    'final_price' => $products[$i]['price'] + $_SESSION['cart']->attributes_price($products[$i]['id']),
                                          
    'onetime_charges' => $_SESSION['cart']->attributes_price_onetime_charges($products[$i]['id'], $products[$i]['quantity']),
                                          
    'weight' => $products[$i]['weight'],
                                          
    'products_priced_by_attribute' => $products[$i]['products_priced_by_attribute'],
                                          
    'product_is_free' => $products[$i]['product_is_free'],
                                          
    'products_discount_type' => $products[$i]['products_discount_type'],
                                          
    'products_discount_type_from' => $products[$i]['products_discount_type_from'],
                                          
    'id' => $products[$i]['id'],
                                          
    'rowClass' => $rowClass);
                                          
          
          if (
    STORE_PRODUCT_TAX_BASIS == 'Shipping' && stristr($_SESSION['shipping']['id'], 'storepickup') == TRUE) {
            
    $taxRates zen_get_multiple_tax_rates($products[$i]['tax_class_id'], STORE_COUNTRYSTORE_ZONE);
            
    $this->products[$index]['tax'] = zen_get_tax_rate($products[$i]['tax_class_id'], STORE_COUNTRYSTORE_ZONE);
          } else {
            
    $taxRates zen_get_multiple_tax_rates($products[$i]['tax_class_id'], $tax_address->fields['entry_country_id'], $tax_address->fields['entry_zone_id']);
            
    $this->products[$index]['tax'] = zen_get_tax_rate($products[$i]['tax_class_id'], $tax_address->fields['entry_country_id'], $tax_address->fields['entry_zone_id']);
          }
          
    //end modified code 
    Notice that I first check to make sure the tax basis is set to "shipping" (so it will not disrupt stores that want to charge tax on billing). Second, the STORE_COUNTRY and STORE_ZONE need to be added to the $this->products[$index] array.

  10. #10
    Join Date
    May 2004
    Posts
    105
    Plugin Contributions
    2

    Default Re: Store pickup Tax all who pick up

    Do you have an update to this code for the newer version of the cart? I've got a cart I've been working on that wants the same thing. Store pick-ups should be taxed regardless of where they live. The code above did not change anything.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v139h Tax on Store Pick-up
    By KADesign in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 2
    Last Post: 13 Aug 2012, 08:27 PM
  2. Store Pick Up Tax Problem
    By HelenSama in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 7 Oct 2009, 05:04 AM
  3. In-store pickup tax not calculating
    By PanzerBoxb in forum Built-in Shipping and Payment Modules
    Replies: 19
    Last Post: 12 May 2009, 08:11 PM
  4. In Store Pick Up State Tax Not Calculating
    By HelenSama in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 0
    Last Post: 23 Apr 2008, 07:30 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR