$product = {"id":7408429531235,"title":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 史迪奇 - 經典系列-史迪奇大臉款","handle":"iphone-12-mini-mod-nx-printable-yf01","description":null,"published_at":"2024-06-11T16:37:00+08:00","created_at":"2024-05-03T15:25:03+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-史迪奇","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-stitch","device-iPhone 12 mini","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-stitch","Top50","type-Mod NX Printable"],"price":90000,"price_min":90000,"price_max":90000,"available":true,"price_varies":false,"compare_at_price":null,"compare_at_price_min":0,"compare_at_price_max":0,"compare_at_price_varies":false,"variants":[{"id":41885387587683,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-YF01","requires_shipping":true,"taxable":true,"featured_image":{"id":31472256778339,"product_id":7408429531235,"position":6,"created_at":"2024-05-03T15:25:19+08:00","updated_at":"2024-05-03T15:25:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e75d895ce7de502aca6d367474d4cc803f6e050f_e2dd9b53-c50c-407b-a716-aaefc121f78d.webp?v=1714721119","variant_ids":[41885387587683]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 史迪奇 - 經典系列-史迪奇大臉款 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118424-YF01","featured_media":{"alt":null,"id":23877172985955,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e75d895ce7de502aca6d367474d4cc803f6e050f_e2dd9b53-c50c-407b-a716-aaefc121f78d.webp?v=1714721119"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36889d518e56a49c53f8b982b3532c53db30caaa_f8ac1cba-f4be-43fc-8d29-5b3532434bf1.webp?v=1714721106","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb5eb32beececa988585ea039f16e0ac725c1408_f011fc9f-065f-45fe-84a8-de2fbc0725f0.webp?v=1714721108","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c0afb9e5edbb4ff439142314cf4362e1855e5d3_897a58bb-9f92-4dc4-86bc-ca86b52a4317.webp?v=1714721111","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b62de1eda4d99b1608367804cb7112b4ea25c7b3_70ed803d-54be-4b1a-bc03-754272b360de.webp?v=1714721113","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b463dd308ff3f2fb443d078873a80e35014a93c0_5de9f173-7606-417e-a23e-cf43dc65d1ae.webp?v=1714721116","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e75d895ce7de502aca6d367474d4cc803f6e050f_e2dd9b53-c50c-407b-a716-aaefc121f78d.webp?v=1714721119","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96953ead937fce721a73bca293864e11e08de6d5_011bbcd3-9f6c-4b48-a758-510892e27bc9.webp?v=1714721121","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/335a6296c41ac1f8714868a569e2ae0532e09c6e_5d692d4a-267e-4927-aff7-83c962fec32f.webp?v=1714721124","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ad3e56b88a5bc387d8273ec5161502c118240e1_9b6c50e6-523c-4617-b044-a39ed40290a3.webp?v=1714721126","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2780645f9197349f69af58c78b7d80c84e6c37fe_c6cb91bb-cb45-4674-a500-60bdf5197333.webp?v=1714721129","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f9f14bab20b95eaa5435c8c5de53df9f418d38f_3d97060a-8a55-4d01-839c-eaec3c3864cb.webp?v=1714721131"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36889d518e56a49c53f8b982b3532c53db30caaa_f8ac1cba-f4be-43fc-8d29-5b3532434bf1.webp?v=1714721106","options":["color"],"media":[{"alt":null,"id":23877169217635,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36889d518e56a49c53f8b982b3532c53db30caaa_f8ac1cba-f4be-43fc-8d29-5b3532434bf1.webp?v=1714721106"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36889d518e56a49c53f8b982b3532c53db30caaa_f8ac1cba-f4be-43fc-8d29-5b3532434bf1.webp?v=1714721106","width":2000},{"alt":null,"id":23877169971299,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb5eb32beececa988585ea039f16e0ac725c1408_f011fc9f-065f-45fe-84a8-de2fbc0725f0.webp?v=1714721108"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb5eb32beececa988585ea039f16e0ac725c1408_f011fc9f-065f-45fe-84a8-de2fbc0725f0.webp?v=1714721108","width":2000},{"alt":null,"id":23877170823267,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c0afb9e5edbb4ff439142314cf4362e1855e5d3_897a58bb-9f92-4dc4-86bc-ca86b52a4317.webp?v=1714721111"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c0afb9e5edbb4ff439142314cf4362e1855e5d3_897a58bb-9f92-4dc4-86bc-ca86b52a4317.webp?v=1714721111","width":2000},{"alt":null,"id":23877171249251,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b62de1eda4d99b1608367804cb7112b4ea25c7b3_70ed803d-54be-4b1a-bc03-754272b360de.webp?v=1714721113"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b62de1eda4d99b1608367804cb7112b4ea25c7b3_70ed803d-54be-4b1a-bc03-754272b360de.webp?v=1714721113","width":2000},{"alt":null,"id":23877171708003,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b463dd308ff3f2fb443d078873a80e35014a93c0_5de9f173-7606-417e-a23e-cf43dc65d1ae.webp?v=1714721116"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b463dd308ff3f2fb443d078873a80e35014a93c0_5de9f173-7606-417e-a23e-cf43dc65d1ae.webp?v=1714721116","width":2000},{"alt":null,"id":23877172985955,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e75d895ce7de502aca6d367474d4cc803f6e050f_e2dd9b53-c50c-407b-a716-aaefc121f78d.webp?v=1714721119"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e75d895ce7de502aca6d367474d4cc803f6e050f_e2dd9b53-c50c-407b-a716-aaefc121f78d.webp?v=1714721119","width":2000},{"alt":null,"id":23877173641315,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96953ead937fce721a73bca293864e11e08de6d5_011bbcd3-9f6c-4b48-a758-510892e27bc9.webp?v=1714721121"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96953ead937fce721a73bca293864e11e08de6d5_011bbcd3-9f6c-4b48-a758-510892e27bc9.webp?v=1714721121","width":2000},{"alt":null,"id":23877174329443,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/335a6296c41ac1f8714868a569e2ae0532e09c6e_5d692d4a-267e-4927-aff7-83c962fec32f.webp?v=1714721124"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/335a6296c41ac1f8714868a569e2ae0532e09c6e_5d692d4a-267e-4927-aff7-83c962fec32f.webp?v=1714721124","width":2000},{"alt":null,"id":23877174886499,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ad3e56b88a5bc387d8273ec5161502c118240e1_9b6c50e6-523c-4617-b044-a39ed40290a3.webp?v=1714721126"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ad3e56b88a5bc387d8273ec5161502c118240e1_9b6c50e6-523c-4617-b044-a39ed40290a3.webp?v=1714721126","width":2000},{"alt":null,"id":23877175574627,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2780645f9197349f69af58c78b7d80c84e6c37fe_c6cb91bb-cb45-4674-a500-60bdf5197333.webp?v=1714721129"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2780645f9197349f69af58c78b7d80c84e6c37fe_c6cb91bb-cb45-4674-a500-60bdf5197333.webp?v=1714721129","width":2000},{"alt":null,"id":23877176459363,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f9f14bab20b95eaa5435c8c5de53df9f418d38f_3d97060a-8a55-4d01-839c-eaec3c3864cb.webp?v=1714721131"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f9f14bab20b95eaa5435c8c5de53df9f418d38f_3d97060a-8a55-4d01-839c-eaec3c3864cb.webp?v=1714721131","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41885387587683,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-YF01","requires_shipping":true,"taxable":true,"featured_image":{"id":31472256778339,"product_id":7408429531235,"position":6,"created_at":"2024-05-03T15:25:19+08:00","updated_at":"2024-05-03T15:25:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e75d895ce7de502aca6d367474d4cc803f6e050f_e2dd9b53-c50c-407b-a716-aaefc121f78d.webp?v=1714721119","variant_ids":[41885387587683]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 史迪奇 - 經典系列-史迪奇大臉款 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118424-YF01","featured_media":{"alt":null,"id":23877172985955,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e75d895ce7de502aca6d367474d4cc803f6e050f_e2dd9b53-c50c-407b-a716-aaefc121f78d.webp?v=1714721119"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41885387587683,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-YF01","requires_shipping":true,"taxable":true,"featured_image":{"id":31472256778339,"product_id":7408429531235,"position":6,"created_at":"2024-05-03T15:25:19+08:00","updated_at":"2024-05-03T15:25:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e75d895ce7de502aca6d367474d4cc803f6e050f_e2dd9b53-c50c-407b-a716-aaefc121f78d.webp?v=1714721119","variant_ids":[41885387587683]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 史迪奇 - 經典系列-史迪奇大臉款 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118424-YF01","featured_media":{"alt":null,"id":23877172985955,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e75d895ce7de502aca6d367474d4cc803f6e050f_e2dd9b53-c50c-407b-a716-aaefc121f78d.webp?v=1714721119"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $brand_handle = null; $type = ""; var sellingStatus // 只有設計款(SKU 含 '-')才需要合圖 if ($isMerge && $defaultVariant.sku.includes('-')) { $(document).ready(function() { var productImg = $product.images[0]; var bumperImg = window.getProductImageUrl($defaultVariant.sku.split('-')[0]); var layers = ($type === 'mod-nx-backplate' || $type === 'mod-backplate') ? [productImg, bumperImg] : [bumperImg, productImg]; window.mergeProductImages(layers).then(function (mergedImg) { $('.merged-img').attr('src', mergedImg); }); }); }; var sellingStatusData window.fetchSellingStatus().then(data => { try { sellingStatusData = data; } catch (error) { sellingStatusData = null console.error('Unable to parse selling status', error) } $(document).ready(function() { handleSellingStatus($defaultVariant.sku); }); }) function handleSellingStatus(currentSku) { if (!sellingStatusData) { console.error('No selling status available!') return } const sellingStatusElement = document.getElementById('selling-status') const addToCartButton = document.getElementById('AddToCart-product-template') const currentProductSku = currentSku.replace(/-(.*)$/, '-') if ($variants) { const flattenedSellingStatus = [...sellingStatusData.pending, ...sellingStatusData.preorder] const matchSellingStatusProduct = flattenedSellingStatus.filter(product => currentProductSku === product.sku) if (matchSellingStatusProduct.length > 0) { const isProductPending = matchSellingStatusProduct[0].status === 'pending' const matchDate = matchSellingStatusProduct[0].date sellingStatus = isProductPending ? "缺貨中" : "預購完成出貨日:" + matchDate sellingStatusElement.textContent = sellingStatus if (sellingStatus.includes("缺貨中")){ addToCartButton.disabled ='true'; addToCartButton.textContent = "缺貨中無法加入購物車" } else { addToCartButton.textContent = "加到購物車" } } else { sellingStatusElement.textContent = '' addToCartButton.textContent = "加到購物車" }; }; }; document.addEventListener('DOMContentLoaded', function () { var currentVariantSelect = document.getElementById('SingleOptionSelector-0') currentVariantSelect.addEventListener('change', function() { var currentSku = $('#current_sku').text() var skuElement = document.getElementById('current-sku') skuElement.textContent = currentSku handleSellingStatus(currentSku) }); });
// Override default values of shop.strings for each template. // Alternate product templates can change values of // add to cart button, sold out, and unavailable states here. theme.productStrings = { addToCart: "加到購物車", soldOut: "售完", unavailable: "停產" }