Jump to content

Orders not pulling through correct tax code


Anon.User

Recommended Posts

We are having trouble with syncs to our external ordering system.  

 

When the orders.php file was written, our store was showing pricing inc VAT, but now we have changed in customer groups to show prices ex VAT.  As a result, as below the orders are pulling through at T0 tax code. 

 

<SalesOrderLine>
<eCommerceCode>120G-120G-07</eCommerceCode>
<Code>120G-120G-07</Code>
<Quantity>1</Quantity>
<eCommerceItemID>516</eCommerceItemID>
<ItemGross>10</ItemGross>
<TaxCode>T0</TaxCode>
</SalesOrderLine>
 
Would someone be able to advise where to change this?  In the orders.php file it shows the below (I did change tax_incl to tax_excl to see if it would make a difference)
 
        $order_details->order_lines[] = array(
            "sku" => $sku,
            "ecommerce_code" => $sku,
            "variant_code" => $sku,
            "external_item_id" => $line_detail->id_order_detail,
            "quantity" => $line_detail->product_quantity,
            "item_gross" => $line_detail->unit_price_tax_excl,
            "vat_code" => $format->GetVatCode($line_detail->tax_rate)
 
Would it be the _product_line.tpl file that needs changing instead of the orders.php?
 
Many thanks in advance!

 

Link to comment
Share on other sites

Can anyone help with this?

 

When the customer group is changed to inc VAT the order line total pulls through inc VAT, which is what we need, so does anyone know how to change the columns on the product lines on the order?

 

Many thanks

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...