document.write("
( function ( obj, eventType, fn ){
if ( obj.addEventListener ){
obj.addEventListener( eventType, fn, false );
} else if ( obj.attachEvent ) {
obj.attachEvent( 'on' + eventType, fn );
}
})( window, 'load' , function () {
if ( typeof MivaEvents == 'object' ) {
MivaEvents.SubscribeToEvent( 'variant_changed' , function ( data ) {
var cb;
var container = document.getElementById( 'iparcel-sku' );
if ( !container ) return ;
cb = function ( response ){
if ( response.success && response.data.sku ){
newTextNode_EmptyParent( response.data.sku, container );
}
};
AJAX_Call_Module_JSON( cb, 'runtime' , 'iparcel' , 'iParcel_VariantSKU_Load' ,{
Product_Code: data.product_code,
Variant_ID: data.variant_id
} );
} );
}
} );
am_sku - Snippet hosted by \"Cacher\"
");