$product = {"id":7411451822179,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 史迪奇 - 夏威夷系列-線稿","handle":"iphone-14-plus-mod-nx-magsafe-printable-yf03","description":null,"published_at":"2024-06-11T17:45:24+08:00","created_at":"2024-05-05T00:32:27+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區史迪奇","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-stitch","device-iPhone 14 Plus","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-stitch","Top50","type-Mod NX Printable MagSafe Printable"],"price":110000,"price_min":110000,"price_max":110000,"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":41899065409635,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-YF03","requires_shipping":true,"taxable":true,"featured_image":{"id":31480461197411,"product_id":7411451822179,"position":8,"created_at":"2024-05-05T00:32:46+08:00","updated_at":"2024-05-05T00:32:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b5e6f8f6dcdd97c8d7a486216bb60b5ccfdf7e6_4ea2193d-cc04-4c20-bf23-ad92e5e8211c.webp?v=1714840366","variant_ids":[41899065409635]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 史迪奇 - 夏威夷系列-線稿 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-YF03","featured_media":{"alt":null,"id":23885713014883,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b5e6f8f6dcdd97c8d7a486216bb60b5ccfdf7e6_4ea2193d-cc04-4c20-bf23-ad92e5e8211c.webp?v=1714840366"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff59032eea2ddc6455cb1143a9a4f5267b3b68b6_1a86df97-5101-4a84-b1dd-900ba83f9d2f.webp?v=1714840350","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0248ac0fcc1c6f969a847128dc178cb0e8b4115c_bad80e73-5e2b-4376-a860-dc3185cfda8e.webp?v=1714840352","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3edb8bb174089b6d48a88b4661562958dcea9112_097141c7-dec2-4ff5-86bb-0bdb4e9d0724.webp?v=1714840354","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a36e6fff47feaeea98335abe10c8b888558246d_2d56e0de-8a9a-4f66-afa5-bfcadc67f26e.webp?v=1714840357","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa133bc6970d43aaa634c4044cb1bfaa4e0a9a34_0b4e2d5a-cf14-4b12-a0c9-551f34fce43b.webp?v=1714840359","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0517dbdaee5e944d4d1c666e9549a15c3c92a74_ffb4b627-9d15-4551-9622-0900472a6e55.webp?v=1714840361","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cf30662a10b7e225a2d33098a5d83d7f8a1a6dc_9d795418-7f98-407f-b713-605608c87006.webp?v=1714840363","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b5e6f8f6dcdd97c8d7a486216bb60b5ccfdf7e6_4ea2193d-cc04-4c20-bf23-ad92e5e8211c.webp?v=1714840366","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36318b54fc2ead787d90b14f17ae099cdb7e7a75_e417cfb0-c956-4c33-99ba-c205e0b39d89.webp?v=1714840368","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27359cfdb7687b00faa9ee4da8851fd38e1115dc_f29c6f7c-6634-4094-9e0e-509de3f3c0e5.webp?v=1714840370"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff59032eea2ddc6455cb1143a9a4f5267b3b68b6_1a86df97-5101-4a84-b1dd-900ba83f9d2f.webp?v=1714840350","options":["color"],"media":[{"alt":null,"id":23885709574243,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff59032eea2ddc6455cb1143a9a4f5267b3b68b6_1a86df97-5101-4a84-b1dd-900ba83f9d2f.webp?v=1714840350"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff59032eea2ddc6455cb1143a9a4f5267b3b68b6_1a86df97-5101-4a84-b1dd-900ba83f9d2f.webp?v=1714840350","width":2000},{"alt":null,"id":23885709869155,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0248ac0fcc1c6f969a847128dc178cb0e8b4115c_bad80e73-5e2b-4376-a860-dc3185cfda8e.webp?v=1714840352"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0248ac0fcc1c6f969a847128dc178cb0e8b4115c_bad80e73-5e2b-4376-a860-dc3185cfda8e.webp?v=1714840352","width":2000},{"alt":null,"id":23885710557283,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3edb8bb174089b6d48a88b4661562958dcea9112_097141c7-dec2-4ff5-86bb-0bdb4e9d0724.webp?v=1714840354"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3edb8bb174089b6d48a88b4661562958dcea9112_097141c7-dec2-4ff5-86bb-0bdb4e9d0724.webp?v=1714840354","width":2000},{"alt":null,"id":23885710983267,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a36e6fff47feaeea98335abe10c8b888558246d_2d56e0de-8a9a-4f66-afa5-bfcadc67f26e.webp?v=1714840357"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a36e6fff47feaeea98335abe10c8b888558246d_2d56e0de-8a9a-4f66-afa5-bfcadc67f26e.webp?v=1714840357","width":2000},{"alt":null,"id":23885711474787,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa133bc6970d43aaa634c4044cb1bfaa4e0a9a34_0b4e2d5a-cf14-4b12-a0c9-551f34fce43b.webp?v=1714840359"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa133bc6970d43aaa634c4044cb1bfaa4e0a9a34_0b4e2d5a-cf14-4b12-a0c9-551f34fce43b.webp?v=1714840359","width":2000},{"alt":null,"id":23885711900771,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0517dbdaee5e944d4d1c666e9549a15c3c92a74_ffb4b627-9d15-4551-9622-0900472a6e55.webp?v=1714840361"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0517dbdaee5e944d4d1c666e9549a15c3c92a74_ffb4b627-9d15-4551-9622-0900472a6e55.webp?v=1714840361","width":2000},{"alt":null,"id":23885712523363,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cf30662a10b7e225a2d33098a5d83d7f8a1a6dc_9d795418-7f98-407f-b713-605608c87006.webp?v=1714840363"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cf30662a10b7e225a2d33098a5d83d7f8a1a6dc_9d795418-7f98-407f-b713-605608c87006.webp?v=1714840363","width":2000},{"alt":null,"id":23885713014883,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b5e6f8f6dcdd97c8d7a486216bb60b5ccfdf7e6_4ea2193d-cc04-4c20-bf23-ad92e5e8211c.webp?v=1714840366"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b5e6f8f6dcdd97c8d7a486216bb60b5ccfdf7e6_4ea2193d-cc04-4c20-bf23-ad92e5e8211c.webp?v=1714840366","width":2000},{"alt":null,"id":23885713539171,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36318b54fc2ead787d90b14f17ae099cdb7e7a75_e417cfb0-c956-4c33-99ba-c205e0b39d89.webp?v=1714840368"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36318b54fc2ead787d90b14f17ae099cdb7e7a75_e417cfb0-c956-4c33-99ba-c205e0b39d89.webp?v=1714840368","width":2000},{"alt":null,"id":23885713932387,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27359cfdb7687b00faa9ee4da8851fd38e1115dc_f29c6f7c-6634-4094-9e0e-509de3f3c0e5.webp?v=1714840370"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27359cfdb7687b00faa9ee4da8851fd38e1115dc_f29c6f7c-6634-4094-9e0e-509de3f3c0e5.webp?v=1714840370","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41899065409635,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-YF03","requires_shipping":true,"taxable":true,"featured_image":{"id":31480461197411,"product_id":7411451822179,"position":8,"created_at":"2024-05-05T00:32:46+08:00","updated_at":"2024-05-05T00:32:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b5e6f8f6dcdd97c8d7a486216bb60b5ccfdf7e6_4ea2193d-cc04-4c20-bf23-ad92e5e8211c.webp?v=1714840366","variant_ids":[41899065409635]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 史迪奇 - 夏威夷系列-線稿 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-YF03","featured_media":{"alt":null,"id":23885713014883,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b5e6f8f6dcdd97c8d7a486216bb60b5ccfdf7e6_4ea2193d-cc04-4c20-bf23-ad92e5e8211c.webp?v=1714840366"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41899065409635,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-YF03","requires_shipping":true,"taxable":true,"featured_image":{"id":31480461197411,"product_id":7411451822179,"position":8,"created_at":"2024-05-05T00:32:46+08:00","updated_at":"2024-05-05T00:32:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b5e6f8f6dcdd97c8d7a486216bb60b5ccfdf7e6_4ea2193d-cc04-4c20-bf23-ad92e5e8211c.webp?v=1714840366","variant_ids":[41899065409635]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 史迪奇 - 夏威夷系列-線稿 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-YF03","featured_media":{"alt":null,"id":23885713014883,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b5e6f8f6dcdd97c8d7a486216bb60b5ccfdf7e6_4ea2193d-cc04-4c20-bf23-ad92e5e8211c.webp?v=1714840366"}},"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: "停產" }