").append(me.checkoutTags); jQuery("head").append(tag); /* step3の場合は支払い方法を設定 */ var method_name = ""; if (order_step === 3){ method_name = (jQuery("th.estimate_method_").siblings("td").text() == undefined) ? "" : jQuery("th.estimate_method_").siblings("td").text(); } ga('ec:setAction','checkout', {'step': order_step, 'option': method_name}); ga('send', 'pageview'); } }};ecommerceExtCommon.mixin_obj = function(srcObj, dstObj){ for(var property in srcObj){ dstObj[property] = srcObj[property]; }};ecommerceExtCommon.LoadJquery = { load : function(callback){ if(typeof jQuery != "undefined") { callback(); return; } var script = document.createElement('script'); script.setAttribute("src","https://code.jquery.com/jquery-3.0.0.min.js"); script.setAttribute("type","text/javascript"); document.getElementsByTagName("head")[0].appendChild(script); script.onload = function () { callback(); }; }};").append(me.impressionTags); jQuery("body").append(tag); } }, /* 商品のカート削除を送信 */ delCartConversion : function() { jQuery(document).on("click", 'div.delete_ img', function(event){ var id = "", title = "", price = "", variant = "", id_text = "", price_text = "", variant_text = "", category = "", brand = ""; var dom = this; /* 自身の親要素を辿り必要な情報を取得 */ for (var i = 0; i < 4; i++) { dom = jQuery(dom).parent(); id_text = jQuery(dom).find(".name_ a, .StyleH_Item_ .img_ a, a:has(figure.img_)").attr("href"); if (id == "" && id_text != undefined) { /* href属性から商品コードを抜出す */ id = id_text.substr(0, id_text.length-1).split("/").pop(); id = id.substr(1, id.length-1); /* title属性から商品名を取得 */ title = jQuery(dom).find(".name_ a, .StyleH_Item_ .img_ a, a:has(figure.img_)").text(); /* category、brandを取得 */ category = (jQuery(dom).attr("category") == undefined) ? "" : jQuery(dom).attr("category"), brand = (jQuery(dom).attr("brand") == undefined) ? "" : jQuery(dom).attr("brand"); } /* 「税込価格(¥、, 抜き)」部分のみを抜出す */ price_text = jQuery(dom).find(".price_").text(); if (price == "" && price_text != "") { price = ecommerceExtCommon.formatPrice(price_text); } /* サイズ・カラーを取得 */ variant_text = jQuery(dom).find(".name2_").text(); if (i < 4 -1 && variant == "" && variant_text != "") { variant = variant_text; } } /* 商品コード、商品名いずれかでも取得出来ない場合、以降の処理をスキップ */ if (id == "" || title == "") { return true; } /* 送信用データ配列作成 */ var itemData = {"id":id,"title": title,"category": category,"brand": brand,"price": price,"variant": variant}; /* 送信処理 */ ecommerceExtCommon.sendDelCartConversion(itemData); }); }};ecommerceExt.mixin_obj(ecommerceList, ecommerceExt);

PREMIUM MALL ログインページ