Anon.User Posted February 28, 2017 Share Posted February 28, 2017 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 More sharing options...
Anon.User Posted March 2, 2017 Author Share Posted March 2, 2017 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 More sharing options...
bellini13 Posted March 2, 2017 Share Posted March 2, 2017 It is this line of code "vat_code" => $format->GetVatCode($line_detail->tax_rate) But this line of code calls a function GetVatCode which you have not provided. Link to comment Share on other sites More sharing options...
Anon.User Posted March 2, 2017 Author Share Posted March 2, 2017 Thanks for your reply. Where would I find this? Link to comment Share on other sites More sharing options...
bellini13 Posted March 2, 2017 Share Posted March 2, 2017 I can't tell you that, this is custom code you had developed Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now