Free Express shipping on AU domestic orders over $100

Testing page

Show variation links:

http://jococups.com/shop/12oz-joco-cup/?colour=mint

The following code has beed added to functions.php
add_filter( 'woocommerce_product_default_attributes', 'maybe_change_colour');

function maybe_change_colour( $default_attributes ) {
 if ( isset( $_GET['colour'] ) ) {
 $default_attributes['pa_colour'] = $_GET['colour'];
 }
 return $default_attributes;
 }

 


Add to cart links:

 

Links are like

http://jococups.com/?add-to-cart=145&variation_id=202&quantity=1attribute_pa_colour=red

One needs to change variation_id and attribute_pa_colour