cancel
Showing results for 
Search instead for 
Did you mean: 

Owebia Shipping Programming Issues with Json

Owebia Shipping Programming Issues with Json

Hey everyone;

I have a couple issues;

We're Using Owebia Shipping 2 module for shipping and when the cart has exceeded the limit of 1 method, it marks it as $0.00 and stays in checkout as an option, instead of hiding it.

Also, its not calculating free shipping on certain products;

{
	"test1": {
		"label": "Free USA Shipping",
		"shipto": "US",
		"conditions": "{count items where in_array(product.attribute_set.id, array('TestAttribute')) >=1}",
		"fees": "0",
		"customer_groups": "NOT LOGGED IN,General"
	},
	"test2": {
		"label": "Small Packet Air (6-10 Business Days)",
		"shipto": "US",
		"fees": "{test1.fees}+{table {cart.weight} in 0.249:6.50, 0.499:8.75, 0.999:11.50}",
		"customer_groups": "NOT LOGGED IN,General"
	},
	"test3": {
		"label": "Expedited (4-5 Business Days)",
		"shipto": "US",
		"fees": "{test1.fees}+{table {cart.weight} in 0:0, 0.499:14.30, 0.999:15.30, 1.499:16.30, 1.999:17.30, 2.499:18.30, 2.999:19.30, 3.499:20.30, 3.999:21.30, 4.499:22.30, 4.999:23.30, 6.499:27.30, 8.999:32.30, 10.499:37.30, 12.999:43.30, 14.499:48.30, *:87.00}",
		"customer_groups": "NOT LOGGED IN,General"
	},
	"test4": {
		"label": "Canada Expedited (2-7 Business Days)",
		"shipto": "CA",
		"fees": "{table {cart.weight} in 0.499:10.15, 0.999:11.15, 2.999:12.75, *:87.00}",
		"customer_groups": "NOT LOGGED IN,General"
	}
}

 So from the above code;

If your in the USA; and have items over 1kg in weight, it shows test2 as $0.00 instead of removing it.
test2 is 0-0.999kg

If your in the USA, and have an item in the cart from attribute set "TestAttribute" its not giving that item free shipping, its calculating test3 as $87.00

I'm a bit confused on how to solve this,

any help would be greatly appeciated.