Announcement

Collapse
No announcement yet.

Pickup & Delivery Module Add sales Tax for Out of State orders to be picked up.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Pickup & Delivery Module Add sales Tax for Out of State orders to be picked up.

    Morning guys,

    Long time lurker, first time posting.

    I have have gotten some great information over the years that has helped me tweak our websites and I am hoping maybe someone can point me in the right direction with this problem.

    We normally charge sales tax just for the state where we are located, however being a smaller state we do have customers come in and from neighboring states to pickup their order. I don't see any way to charge sales tax for out of state customers if they have scheduled a pickup through the the new Pickup & Delivery Module.

    I have tried using some template code I found while sifting through the forums from Brennan but I cannot get it to work.


    To delete any existing Tax added to the basket, so we don't double tax our state residents
    <mvt:do file="g.Module_Library_DB" name="l.ok" value="BasketCharge_Delete_All_Type( g.Basket:basket_id, 'TAX' )" />


    Then add Sales Tax back to the basket

    <mvt:assign name="l.basket_charge:basket_id" value="g.Basket:basket_id" />
    <mvt:assign name="l.basket_charge:type" value="'TAX'" />
    <mvt:assign name="l.basket_charge:descrip" value="'Custom Description'" />
    <mvt:assign name="l.basket_charge:amount" value="g.final_tax_calulation" />
    <mvt:assign name="l.basket_charge:disp_amt" value="g.final_tax_calulation" />
    <mvt:assign name="l.basket_charge:tax_exempt" value="0" />

    <mvt:do file="g.Module_Library_DB" name="l.ok" value="BasketCharge_Insert( l.basket_charge )" />

    I have placed this code in all different places on the OCST, OSEL and OPAY page, in my attempt to find the "sweet spot". But it seems at the end of the checkout process, sales tax is always adjusted from the "State" the customer used in the OCST page.

    My plan was once I was able to get the Sales tax to correctly be added to the basket despite the "State" selected by the customer I would then attempt to have this only triggered if the the Shipping Method used the Pickup & Delivery Module.

    I did attempt briefly to overwrite the customers "Shipping Address" with ours to correctly charge sales tax and also help us flag the orders that SYNC to Quickbooks that the order was a "Will Call" but that didn't go anywhere and I couldn't get it to work. However, maybe that is the better option.

    Does anyone have any insight where I may be going wrong or a different way to go about charging sales tax for orders that use the shipping method Pickup & Delivery?

    Best regards,

    Jeff

    #2
    I ran into an issue trying to modify the basket charges, and it seems that the order in which the data is called into Miva is such that it's not possible. The solution was to use Toolbelt's PREACTION function to modify the basket charges before the next checkout screen is loaded. Modify Shipping Charge in Basket

    Comment


      #3

      I did attempt briefly to overwrite the customers "Shipping Address" with ours to correctly charge sales tax and also help us flag the orders that SYNC to Quickbooks that the order was a "Will Call" but that didn't go anywhere and I couldn't get it to work. However, maybe that is the better option.
      That is the better option.

      Before onSubmit, use javascript to write ship to fields to be your store address if Pickup is true.

      Then let Miva be Miva.

      As for the basket_charge code above, it should be using the l.settings array.
      http://www.alphabetsigns.com/

      Comment


        #4
        minor quibble, but i'd make the address change on the "will call" selection change because that makes it more obvious to the user.
        Bruce Golub
        Phosphor Media - "Your Success is our Business"

        Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
        phosphormedia.com

        Comment

        Working...
        X