ショッピングカート

ショッピングカートの有効期限は、商品をカートに入れてから「3時間」となります。「3時間」を過ぎるとカートに入れた商品は自動的に削除されます。

カートに商品がありません。

'; var ul = '

    '; var li = '
  • '; var div = '
    '; // header var div_list_show = $(div, {'class':'list shown'}); if (result.length > 0) { $.each(result, function(index, value){ // mProductThumbnail var div_mProductThumbnail = $(div, {'class':'mProductThumbnail', 'data-from':value.newest_date, 'data-pn':value.product_number}); // A HOVERABLE if(callApi){ var a_hoverable = $(a, {'class':'hoveraable', 'target':'_blank', 'href':'https://'+document.domain+'/'+value.shop_key+'/detail/'+value.product_number+'/', 'onClick':'callClickApi(2,"'+value.product_number+'")'}); }else{ var a_hoverable = $(a, {'class':'hoveraable', 'target':'_blank', 'href':'https://'+document.domain+'/'+value.shop_key+'/detail/'+value.product_number+'/'}); } // IMAGE var div_image = $(div, {'class':'image'}); if (value.torso) { var image = $('', { //'src':value.list_picture4+'', 'src':'/jp/assets/images/common/blankProduct.png', 'data-src':value.list_picture4+'', 'data-srcset':value.list_picture2+' 90w, '+value.list_picture3+' 180w, '+value.list_picture4+' 360w, '+value.list_picture7+' 720w, '+value.list_picture8+' 1440w, '+value.list_picture1+' 2880w', 'data-srcover':value.main_picture_360x480+'', 'data-srcsetover':value.main_picture_90x120+' 90w, '+value.main_picture_180x240+' 180w, '+value.main_picture_360x480+' 360w, '+value.main_picture_720x960+' 720w, '+value.main_picture_1440x1920+' 1440w, '+value.main_picture_original+' 2880w', //'sizes':"(min-width:1440px) calc((1440px*0.852778 - (1440px*0.852778 - 42px*3)/4 - 42px * 4 ) / 4), (min-width:1381px) calc((100vw*0.852778 - (100vw*0.852778 - 42px*3)/4 - 42px * 4 ) / 4), (min-width:1024px) calc((100vw*0.852778 - 42px*3)/4), calc((934px - 42px*3)/4)", 'srcset':value.list_picture2+' 90w, '+value.list_picture3+' 180w, '+value.list_picture4+' 360w, '+value.list_picture7+' 720w, '+value.list_picture8+' 1440w, '+value.list_picture1+' 2880w' }); } else { var image = $('', { //'src':value.list_picture4+'', 'src':'/jp/assets/images/common/blankProduct.png', 'data-src':value.list_picture4+'', 'data-srcset':value.list_picture2+' 90w, '+value.list_picture3+' 180w, '+value.list_picture4+' 360w, '+value.list_picture7+' 720w, '+value.list_picture8+' 1440w, '+value.list_picture1+' 2880w', }); } div_image.append(image); a_hoverable.append(div_image); // INFO var div_info = $(div, {'class':'info'}); var p_price = $(p, {'class':'price'}); var ex_price = value.ex_price.toString().replace(/([0-9]+?)(?=(?:[0-9]{3})+$)/g , '$1,'); var retail_price = value.retail_price.toString().replace(/([0-9]+?)(?=(?:[0-9]{3})+$)/g , '$1,'); p_price.append('¥'+ex_price); if (value.retail_price > value.ex_price) { p_price.append('¥'+retail_price+''); } div_info.append(p_price); a_hoverable.append(div_info); var p_name = $(p, {'class':'name'}); p_name.append(value.ec_product_name); div_info.append(p_name); var ul_material = $(ul, {'class':'material'}); ul_material.append($(li).append(value.material)); div_info.append(ul_material); var ul_func = $(ul, {'class':'func'}); var arr_func = value.function.split(','); $.each(arr_func,(funcIndex,funcValue) => { ul_func.append($(li).append(funcValue)); }); div_info.append(ul_func); var ul_feature = $(ul, {'class':'feature'}); // オンライン商品 if (value.ec_original_flg == 1) { ul_feature.append($(li, {'class':'online'}).append('オンライン商品')); } // 新商品 if (value.new_product) { ul_feature.append($(li, {'class':'new'}).append('新商品')); } // セール商品 if (value.retail_price > value.ex_price) { ul_feature.append($(li, {'class':'sale'}).append('セール商品')); } // 定期購入商品 if (value.subscription_flg == 1) { ul_feature.append($(li, {'class':'interval'}).append('定期購入商品')); } div_info.append(ul_feature); // COLORS var div_colors = $(div, {'class':'colors'}); var ul_colors = $(ul); var colors = ['白', '黒', 'グレー', 'ベージュ', 'チャ', 'ピンク', '赤', 'オレンジ', 'イエロー', 'グリーン', 'ブルー', 'ネイビー', 'パープル']; for (index in value.color_class) { if (value.color_class[index] && colors[value.color_class[index]-1]) { var ci = value.color_class[index]-1; ul_colors.append($(li, {'class':'c'+value.color_class[index]}).append(colors[ci])); } } div_colors.append(ul_colors); a_hoverable.append(div_colors); // ARROW var div_arrow = $(div, {'class':'arrow'}); a_hoverable.append(div_arrow); // FAV HOVERABLE var div_hoverable = $(div, {'class':'fav hoverable', 'id':value.product_number}); div_mProductThumbnail.append(a_hoverable); div_mProductThumbnail.append(div_hoverable); div_list_show.append(div_mProductThumbnail); }); var div_wrapper = $(div, {'class':'wrapper'}); div_wrapper.append(div_list_show); var div_products = $(div, {'class':'products'}); div_products.append(div_wrapper); var h2_favorite = $('

    ').append(type[0]); var el_class = type[1]; $('div.mProductList'+el_class).append(h2_favorite); $('div.mProductList'+el_class).append(div_products); $(el_class).show(); // 読込完了クラス呼出 $(document).trigger("favoritePrepared", [el_class]); } };