Results 1 to 10 of 11

Hybrid View

  1. #1
    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!]
    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!

  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

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

  3. #3
    Join Date
    Apr 2007
    Location
    Vancouver, Canada
    Posts
    1,564
    Plugin Contributions
    71

    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:

  4. #4
    Join Date
    Apr 2007
    Location
    Vancouver, Canada
    Posts
    1,564
    Plugin Contributions
    71

    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.

  5. #5
    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.

  6. #6
    Join Date
    Oct 2013
    Location
    United States
    Posts
    3
    Plugin Contributions
    0

    Default Re: Store pickup Tax all who pick up

    I know this is old but I have something that works with 1.5.1 It is posted at http://www.zen-cart.com/showthread.p...97#post1234697

 

 

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

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