Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2008
    Posts
    1
    Plugin Contributions
    0

    Default Kansas Destination Based Sales Tax

    Alright for starters I am new to Zen Cart. I have been searching the forums for about a week now and have not been able to find anything to help me. I may be looking in the wrong places or for the wrong things.
    That said, I do not have any idea how to tap into the database that Kansas has for taxes. You can send them a zip code via a SOAP document(something else that is new to me) and they send you back the tax rate for that area. I hope that makes sense and I don't sound too stupid. Thanks in advance for any help that can be provided.

  2. #2
    Join Date
    Jan 2008
    Posts
    2
    Plugin Contributions
    0

    Default Re: Kansas Destination Based Sales Tax

    Here is an example of how to use their SOAP call in PHP. I don't know much about making modules for ZenCart but maybe someone else can put this to good use.

    PHP Code:
    <?php

    $wsdl 
    "sstp.wsdl";
    $client = new SoapClient($wsdl);

    // var_dump($client->__getFunctions());
    // var_dump($client->__gettypes());

    $ReturnData $client->GetFIPSBy5ZipOnly(66612,"2008-01-28");

    //var_dump($ReturnData);
    //echo $ReturnData->strReturnShortDesc;
    //echo $ReturnData->strConfirmationNum;
    //foreach ($ReturnData->FIPSRecordList as &$FipsRecord) {
    //    echo $FipsRecord->strGeneralTaxRateIntrastate;
        
        
    //}

    ?> 

    <!DOCTYPE html PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <HTML>
       <HEAD>
          <TITLE>
             A Small Hello 
          </TITLE>
       </HEAD>
    <BODY>
       <H1>Streamlined Sales Example</H1><br />
       <br />
       Return Code: <?php echo $ReturnData->intReturnCode ?><br />
       Return Short Description: <?php echo $ReturnData->strReturnShortDesc ?><br />
       Confirmation Number: <?php echo $ReturnData->strConfirmationNum ?><br />
       Time Stamp: <?php echo $ReturnData->strEventTimeStamp ?><br />
    <table width="700px">
    <thead>
        <tr>
            <td>State</td>
            <td>Juris Type</td>
            <td>CompositeSER</td>
            <td>FIPS Code</td>
            <td>General Intrastate Rate</td>
            <td>General Interstate Rate</td>
            <td>Food/Drug Intrastate Rate</td>
            <td>Food/Drug Interstate Rate</td>
        </tr>
    </thead>
    <?php foreach ($ReturnData->FIPSRecordList as &$FipsRecord) { ?>
        <tr>
            <td><?php echo $FipsRecord->intState ?></td>
            <td><?php echo $FipsRecord->strJurisdictionType ?></td>
            <td><?php echo $FipsRecord->strCompositeSER ?></td>
            <td><?php echo $FipsRecord->intJurisdictionFIPS ?></td>
            <td><?php echo $FipsRecord->strGeneralTaxRateIntrastate ?></td>
            <td><?php echo $FipsRecord->strGeneralTaxRateInterstate ?></td>
            <td><?php echo $FipsRecord->strFoodDrugTaxRateIntrastate ?></td>
            <td><?php echo $FipsRecord->strFoodDrugTaxRateInterstate ?></td>
        </tr>
    <?php ?>    
    </table>

 

 

Similar Threads

  1. anyone doing kansas sales tax automatically?
    By buddamanx in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 1
    Last Post: 24 Jun 2011, 01:03 AM
  2. Washington State Destination Sales Tax API
    By maitaijim in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 24
    Last Post: 13 Jul 2010, 03:21 AM
  3. New York sales tax on clothing - need to apply tax based on per-item price
    By sugarhill in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 0
    Last Post: 3 Sep 2009, 09:38 PM
  4. WA destination based sales tax
    By pinne in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 6
    Last Post: 20 Oct 2008, 12:22 AM
  5. sales tax is based on which one?
    By lina0962 in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 4
    Last Post: 19 Jun 2006, 02:26 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