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
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
Comment