Create consignments using

This are the changes for each Product:

[php]

Tollpost Globe / Partifrakt:

"product" => "tg_parti"
no "service_partner"
no "services"

=============================

Tollpost Globe / MyPack:

"product" => "mypack"

"service_partner" => array(
"number" => "3042033",
"customer_number" => "AND001",
"name" => "ROMSDAL BLOMSTER OG GAVER",
"address1" => "RAUMASENTERET ØRAN",
"country" => "NO",
"postcode" => "6300",
"city" => "Åndalsnes"
)

"services" => array(
array("service" => array(
"_attribs" => array("id"=>"tg_etterkrav"),
"amount" => "4571",
"currency" => "NOK",
"kid" => "1000076353545222",
)),
),

[/php]

Disable zoom on product images

In theretailer/woocommerce/single-product/product-image.php I’ve commented out

[html]<!– <a href="<?php echo $src[0] ?>" rel="prettyPhoto[product-gallery]"></a> –>[/html]

and this

[html]<!–<a href="%s" rel="prettyPhoto[product-gallery]"></a>–>[/html]

You can change it back when you need.

Remove hashtag (#) from order number

This code

[php]$order->get_order_number()[/php]

is replaced by this code

[php]str_ireplace("#", "", $order->get_order_number())[/php]

in

theretailer/woocommerce/emails/customer-completed-order.php

theretailer/woocommerce/emails/customer-processing-order.php

theretailer/woocommerce/emails/customer-invoice.php

theretailer/woocommerce/emails/customer-note.php

theretailer/woocommerce/emails/admin-new-order.php

theretailer/woocommerce/checkout/thankyou.php

 

Update: “#” is a translatable string in woocommerce. So I translated it into NULL 🙂

Kontekst: hash before order number #