Page 1 of 2 12 LastLast
Results 1 to 10 of 659

Hybrid View

  1. #1
    Join Date
    Jun 2012
    Posts
    50
    Plugin Contributions
    0

    Default Re: Local Sales Tax Mod - Support Thread

    Hello Zenners :)
    I was hoping someone can help me here or lead me to a page where the solution might be located.

    I have installed this module and it works perfectly, except the local tax is not defined as to what the price is on the 'order total'

    I have defined that the local tax be 8%.
    I buy $100 worth of stuff and the local sales tax is calculated to be $8.

    Great so far, however, (as depicted in the photo) there is nothing that let's the user know what the $8 is they are being charged.
    How can I define it to be 'Local Sales Tax' instead of the blank that appears there? I'm really a novice here trying to learn to be a zenner

    Click image for larger version. 

Name:	local_sales_tax.jpg 
Views:	205 
Size:	13.3 KB 
ID:	14399

    Any help would be highly appreciated. thanks

  2. #2
    Join Date
    Oct 2005
    Location
    Chicago, IL USA
    Posts
    1,587
    Plugin Contributions
    29

    Default Re: Local Sales Tax Mod - Support Thread

    Looks like you're missing a language define. Check your install for a missing file.

  3. #3
    Join Date
    Jun 2012
    Posts
    50
    Plugin Contributions
    0

    Default Re: Local Sales Tax Mod - Support Thread

    Quote Originally Posted by jeking View Post
    Looks like you're missing a language define. Check your install for a missing file.
    Thanks for the reply. But I reinstalled everything again, however I am having no luck.
    How do I check for missing install files, btw?

  4. #4
    Join Date
    Jun 2012
    Posts
    50
    Plugin Contributions
    0

    Default Re: Local Sales Tax Mod - Support Thread

    Quote Originally Posted by nesum18 View Post
    Thanks for the reply. But I reinstalled everything again, however I am having no luck.
    How do I check for missing install files, btw?
    it seems like it is defined, but not working?

    languages/english/modules/order_total/ot_local_sales_taxes.php

    define('MODULE_ORDER_TOTAL_COUNTY_LOCAL_TAX_TITLE', 'Local Sales Tax');
    define('MODULE_ORDER_TOTAL_COUNTY_LOCAL_TAX_DESCRIPTION', 'County/State Local Sales Taxes');
    define('MODULE_ORDER_TOTAL_COUNTY_LOCAL_SALES_TAX', 'Sales Tax:');

  5. #5
    Join Date
    Jun 2012
    Posts
    57
    Plugin Contributions
    2

    Default Re: Local Sales Tax Mod - Support Thread

    Since there doesn't seem to be any support happening here, I've taken matters into my own hands (a dangerous thing) and hacked three files to support a rather odd but usable method to deal with handling local taxes using the existing "built-in" tax module. If anyone is interested in what I did, send me a message and I'll try to explain it.

  6. #6
    Join Date
    Jun 2012
    Location
    Florida
    Posts
    123
    Plugin Contributions
    5

    Default Re: Local Sales Tax Mod - Support Thread

    Quote Originally Posted by batracy View Post
    Since there doesn't seem to be any support happening here, I've taken matters into my own hands (a dangerous thing) and hacked three files to support a rather odd but usable method to deal with handling local taxes using the existing "built-in" tax module. If anyone is interested in what I did, send me a message and I'll try to explain it.
    Hi,
    It has been a long time since I have had to look at this mod since it seems to be working for my needs.
    To try and help, I have created a GitHub repository for this code and related issues to be worked when needed.

    Anyone is welcome to work on it, and to contribute "Issues".

    If you would like to share your recent changes "hacks" that would be great, you could post them to the Issues page of the repository.
    Maybe we can use your change to create better module for all and post the update to the Plugins area.

    Thanks.
    Backup Files and Databases First. GitHub
    Suggestions, Plugins, etc. used at your own risk.

  7. #7
    Join Date
    Jun 2012
    Posts
    57
    Plugin Contributions
    2

    Default Re: Local Sales Tax Mod - Support Thread

    Since the changes I made are not on or a part of this plug-in, but rather on the built-in tax module I thought I would just share what I did here.

    Background: My store is located in the state of Colorado, United States. Further, it is located in the city of Loveland, within Larimer county. I am required to collect sales tax at the state level for anyone living within the state of Colorado, at the county level for those within Larimer county, and at the city level for those within Loveland.

    Step 1: Define zones (yes, zones - not zone defines) for each of the zip-codes within Larimer county. These are defined as Country = United States, Zone Name = Colorado, 80537, Zone Code = CO. For my needs, this meant defining 24 new zones (one for each of the zip-codes)

    Step 2: Define zone definitions - one for the State, one for the County, and one for the City

    Step 3: For each of the new zone definitions, go to details and add each zone as appropriate. Note, state should be normal state zone, county includes all zip-code zones for the county except those for the city, and city gets those for the city.

    Step 4: Create the appropriate Tax rates for each of State, County, and City.

    Step 5: Add the following defines to your english.php file - found in your override folder
    Code:
    // defines to setup local taxes
      define('US_HOME_STATE_ID', '13'); // this is the zone_id from the database for Colorado
      define('US_HOME_STATE_NAME', 'Colorado');
    Step 6: Modify the code in the following three files:
    includes/modules/checkout_new_address.php
    includes/modules/create_account.php
    includes/modules/pages/address_book_process/header_php.php

    The modification is the same in all three files:

    Find the following code...
    Code:
      if (ACCOUNT_STATE == 'true') {
        $state = (isset($_POST['state'])) ? zen_db_prepare_input($_POST['state']) : FALSE;
        if (isset($_POST['zone_id'])) {
          $zone_id = zen_db_prepare_input($_POST['zone_id']);
        } else {
          $zone_id = false;
        }
      }
    and change it to...
    Code:
        if (ACCOUNT_STATE == 'true') {
          $state = zen_db_prepare_input($_POST['state']);
          if (isset($_POST['zone_id'])) {
            $zone_id = zen_db_prepare_input($_POST['zone_id']);
    // add hack to set up "state, zip" check for Colorado      
          if ($zone_id == US_HOME_STATE_ID) {
            $state = US_HOME_STATE_NAME . ", " . substr($postcode, 0, 5);   // format is now "Colorado, 80537"
            $temp_zone_id = $zone_id;  // saving this for test later if new format is not found
            $zone_id = false;  // have to do this or the db select will fail = disaster
          } else {
            $temp_zone_id = false;  // make sure this is false if we are not dealing with our home state
          }
    // end hack      
          } else {
            $zone_id = false;
          }
        }
    Also find the following code ...
    Code:
          if ($found_exact_iso_match) {
            $zone_id = $zone->fields['zone_id'];
            $zone_name = $zone->fields['zone_name'];
          } else {
            $error = true;
            $error_state_input = true;
            $messageStack->add('addressbook', ENTRY_STATE_ERROR_SELECT);
          }
    and change it to ...
    Code:
          if ($found_exact_iso_match) {
            $zone_id = $zone->fields['zone_id'];
            $zone_name = $zone->fields['zone_name'];
    //added hack to reset zone_id if "state, zip" combination was not found        
          } elseif ($temp_zone_id) {	
            $zone_id = $temp_zone_id;
            $zone_name = US_HOME_STATE_NAME;		
    // end hack        
          } else {
            $error = true;
            $error_state_input = true;
            $messageStack->add('checkout_address', ENTRY_STATE_ERROR_SELECT);
          }
    Note the changes I made are wrapped in "hack" comments

    That's it. When a customer sets up their address and selects their state, and enters their zip code, the code changes ensure that the correct zone is selected for the state, zip combination. If you configure your tax and zones correctly, the built-in tax module will charge the correct amount of tax, and will recalculate the correct amount of tax when a coupon or gift voucher is used.

    Note: two of the files can be modified in overrides, the the one in the pages folder cannot.

    MODIFY FILES AT YOUR OWN RISK - this hack is not supported.

  8. #8
    Join Date
    Jun 2012
    Posts
    57
    Plugin Contributions
    2

    Default Re: Local Sales Tax Mod - Support Thread

    I can certainly make the change necessary to force the recalculation of tax if given some guidance. This is a really big problem for my site and I really need to get a solution soon.

    Thanks in advance for any help!

  9. #9
    Join Date
    Jun 2012
    Location
    Florida
    Posts
    123
    Plugin Contributions
    5

    Default Re: Local Sales Tax Mod - Support Thread

    Quote Originally Posted by nesum18 View Post
    Hello Zenners :)
    I was hoping someone can help me here or lead me to a page where the solution might be located.

    I have installed this module and it works perfectly, except the local tax is not defined as to what the price is on the 'order total'

    I have defined that the local tax be 8%.
    I buy $100 worth of stuff and the local sales tax is calculated to be $8.

    Great so far, however, (as depicted in the photo) there is nothing that let's the user know what the $8 is they are being charged.
    How can I define it to be 'Local Sales Tax' instead of the blank that appears there? I'm really a novice here trying to learn to be a zenner

    Click image for larger version. 

Name:	local_sales_tax.jpg 
Views:	205 
Size:	13.3 KB 
ID:	14399

    Any help would be highly appreciated. thanks
    It Looks like you did not completely setup the "Location / Taxes" selections, the information you point to is from these entries, see attached images.

    The overall "Tax Rates" Description field is used on the form where you point.
    Click image for larger version. 

Name:	SalesTaxFL.jpg 
Views:	113 
Size:	34.0 KB 
ID:	14400

    If you need to setup "Local Sales Taxes" this next image may help, again the Tax Description field will show on the form in the area you point.
    Click image for larger version. 

Name:	localSaleTaxes.jpg 
Views:	142 
Size:	41.8 KB 
ID:	14401
    Backup Files and Databases First. GitHub
    Suggestions, Plugins, etc. used at your own risk.

  10. #10
    Join Date
    Jun 2012
    Posts
    50
    Plugin Contributions
    0

    Default Re: Local Sales Tax Mod - Support Thread

    Quote Originally Posted by potteryhouse View Post
    It Looks like you did not completely setup the "Location / Taxes" selections, the information you point to is from these entries, see attached images.

    The overall "Tax Rates" Description field is used on the form where you point.
    Click image for larger version. 

Name:	SalesTaxFL.jpg 
Views:	113 
Size:	34.0 KB 
ID:	14400

    If you need to setup "Local Sales Taxes" this next image may help, again the Tax Description field will show on the form in the area you point.
    Click image for larger version. 

Name:	localSaleTaxes.jpg 
Views:	142 
Size:	41.8 KB 
ID:	14401
    THANK YOU SO MUCH! :) Simple solution: I didn't add the Tax Description...lol

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 Tax getting added twice after installing Local Sales Tax mod
    By RFree190 in forum General Questions
    Replies: 0
    Last Post: 19 Mar 2013, 05:10 AM
  2. v150 Problem with Local Sales Tax mod
    By pwithers in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 18 Jun 2012, 10:16 PM
  3. local sales tax mod not working
    By sharpie82 in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 2
    Last Post: 12 Dec 2011, 11:43 AM
  4. New York State Sales Tax by Zip Full Database for Local Sales Tax Mod 2011
    By SCHNiKEN in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 0
    Last Post: 11 Apr 2011, 04:51 AM
  5. Local Sales Tax Mod and Reward Points Mod
    By retched in forum Addon Payment Modules
    Replies: 1
    Last Post: 9 Feb 2011, 02:09 AM

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