Thanks.. I want to like ViArt - it is clearly a very powerful system. But if only somebody could write some documentation for it... arrrggghhhh!!!
I had a cup of T and took the time to look at the code for shipping (somewhat a process of reverse engineering process) and here is some code in case it helps anybody else...
Set shipping free for orders>= £10 and offer express/standard if not.
In some respects I'm hoping I DON'T get this job: I had a quick look at hooking up the payment gateway and it scares me :(
<?php
$value=0;
foreach ($shopping_cart as $cart_item) {
$value += $shopping_cart[$cart_id]["PRICE"];
}
// The fields are as follows $row_shipping_type_id, $row_shipping_type_code, $row_shipping_type_desc, ($net_charge + $row_shipping_cost), $row_tare_weight, $row_shipping_taxable, $row_shipping_time
if ($value>=10) {
$shipping_types[] = array(54, '', 'Free delivery', 0, 0, 1, 0);
}
else
{
$shipping_types[] = array(54, '', 'Standard Delivery Charge', 5, 0, 1, 0);
$shipping_types[] = array(54, '', 'Express Delivery Charge', 10, 0, 1, 0);
}
?>