$product = {"id":7411411976291,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 史迪奇 - 經典系列-不游泳但衝浪","handle":"iphone-14-plus-mod-nx-magsafe-printable-yf09","description":null,"published_at":"2024-06-11T17:44:16+08:00","created_at":"2024-05-05T00:24:43+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":41898557014115,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-YF09","requires_shipping":true,"taxable":true,"featured_image":{"id":31480363876451,"product_id":7411411976291,"position":9,"created_at":"2024-05-05T00:25:04+08:00","updated_at":"2024-05-05T00:25:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e738a3019c184d154c1a8853e8c7be9a7800b6d4_a33836bb-988f-41eb-854a-6c75c342000a.webp?v=1714839904","variant_ids":[41898557014115]},"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-YF09","featured_media":{"alt":null,"id":23885615628387,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e738a3019c184d154c1a8853e8c7be9a7800b6d4_a33836bb-988f-41eb-854a-6c75c342000a.webp?v=1714839904"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5891e2594458c67b20aead28db387bd7f3919fbf_50b09175-4904-4ccf-8d4c-d18a746ca9c4.webp?v=1714839885","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31a4197ac618375ba19377031f71fad787f39c9c_db630c20-b7a2-461d-b498-1bd8b85e00ba.webp?v=1714839887","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eca39542a42ad827fc8165d4a203abb82164d3dd_e2f3920a-cec2-4882-b0fe-589a1d752e04.webp?v=1714839890","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13a9aa8580d8a2913f1676bfa4df9bb1da313c50_bb4c544d-b2ae-41ca-93aa-a286aac24891.webp?v=1714839892","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f14f1ad0226e4b647171a3469efdae353b1a7c6d_1e1bcd9b-2868-4e00-b11b-0e5209f7b39c.webp?v=1714839894","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12ebd9ea4e071ec2ca5c5db41b3d4024038b9414_0dfa4c12-7671-4ed6-a282-9f7c11500d33.webp?v=1714839897","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f4e8d439079f7fa9b447e883bf4afe7c59f320d_82691915-2672-4353-9f0c-e964c6027f45.webp?v=1714839899","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a853226d2e1389b1311ebe0d7e2fadab9b29a029_69e858dd-5849-4aa8-a797-2d067cd97e9b.webp?v=1714839902","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e738a3019c184d154c1a8853e8c7be9a7800b6d4_a33836bb-988f-41eb-854a-6c75c342000a.webp?v=1714839904","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc2dd95ed00f99f3ed0b314139d7fabd50970d4f_535b93e4-35db-4dbb-a5ae-2250a4ebe37b.webp?v=1714839906"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5891e2594458c67b20aead28db387bd7f3919fbf_50b09175-4904-4ccf-8d4c-d18a746ca9c4.webp?v=1714839885","options":["color"],"media":[{"alt":null,"id":23885611597923,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5891e2594458c67b20aead28db387bd7f3919fbf_50b09175-4904-4ccf-8d4c-d18a746ca9c4.webp?v=1714839885"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5891e2594458c67b20aead28db387bd7f3919fbf_50b09175-4904-4ccf-8d4c-d18a746ca9c4.webp?v=1714839885","width":2000},{"alt":null,"id":23885612318819,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31a4197ac618375ba19377031f71fad787f39c9c_db630c20-b7a2-461d-b498-1bd8b85e00ba.webp?v=1714839887"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31a4197ac618375ba19377031f71fad787f39c9c_db630c20-b7a2-461d-b498-1bd8b85e00ba.webp?v=1714839887","width":2000},{"alt":null,"id":23885612843107,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eca39542a42ad827fc8165d4a203abb82164d3dd_e2f3920a-cec2-4882-b0fe-589a1d752e04.webp?v=1714839890"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eca39542a42ad827fc8165d4a203abb82164d3dd_e2f3920a-cec2-4882-b0fe-589a1d752e04.webp?v=1714839890","width":2000},{"alt":null,"id":23885613269091,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13a9aa8580d8a2913f1676bfa4df9bb1da313c50_bb4c544d-b2ae-41ca-93aa-a286aac24891.webp?v=1714839892"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13a9aa8580d8a2913f1676bfa4df9bb1da313c50_bb4c544d-b2ae-41ca-93aa-a286aac24891.webp?v=1714839892","width":2000},{"alt":null,"id":23885613826147,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f14f1ad0226e4b647171a3469efdae353b1a7c6d_1e1bcd9b-2868-4e00-b11b-0e5209f7b39c.webp?v=1714839894"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f14f1ad0226e4b647171a3469efdae353b1a7c6d_1e1bcd9b-2868-4e00-b11b-0e5209f7b39c.webp?v=1714839894","width":2000},{"alt":null,"id":23885614252131,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12ebd9ea4e071ec2ca5c5db41b3d4024038b9414_0dfa4c12-7671-4ed6-a282-9f7c11500d33.webp?v=1714839897"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12ebd9ea4e071ec2ca5c5db41b3d4024038b9414_0dfa4c12-7671-4ed6-a282-9f7c11500d33.webp?v=1714839897","width":2000},{"alt":null,"id":23885614678115,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f4e8d439079f7fa9b447e883bf4afe7c59f320d_82691915-2672-4353-9f0c-e964c6027f45.webp?v=1714839899"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f4e8d439079f7fa9b447e883bf4afe7c59f320d_82691915-2672-4353-9f0c-e964c6027f45.webp?v=1714839899","width":2000},{"alt":null,"id":23885615104099,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a853226d2e1389b1311ebe0d7e2fadab9b29a029_69e858dd-5849-4aa8-a797-2d067cd97e9b.webp?v=1714839902"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a853226d2e1389b1311ebe0d7e2fadab9b29a029_69e858dd-5849-4aa8-a797-2d067cd97e9b.webp?v=1714839902","width":2000},{"alt":null,"id":23885615628387,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e738a3019c184d154c1a8853e8c7be9a7800b6d4_a33836bb-988f-41eb-854a-6c75c342000a.webp?v=1714839904"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e738a3019c184d154c1a8853e8c7be9a7800b6d4_a33836bb-988f-41eb-854a-6c75c342000a.webp?v=1714839904","width":2000},{"alt":null,"id":23885616054371,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc2dd95ed00f99f3ed0b314139d7fabd50970d4f_535b93e4-35db-4dbb-a5ae-2250a4ebe37b.webp?v=1714839906"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc2dd95ed00f99f3ed0b314139d7fabd50970d4f_535b93e4-35db-4dbb-a5ae-2250a4ebe37b.webp?v=1714839906","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41898557014115,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-YF09","requires_shipping":true,"taxable":true,"featured_image":{"id":31480363876451,"product_id":7411411976291,"position":9,"created_at":"2024-05-05T00:25:04+08:00","updated_at":"2024-05-05T00:25:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e738a3019c184d154c1a8853e8c7be9a7800b6d4_a33836bb-988f-41eb-854a-6c75c342000a.webp?v=1714839904","variant_ids":[41898557014115]},"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-YF09","featured_media":{"alt":null,"id":23885615628387,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e738a3019c184d154c1a8853e8c7be9a7800b6d4_a33836bb-988f-41eb-854a-6c75c342000a.webp?v=1714839904"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41898557014115,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-YF09","requires_shipping":true,"taxable":true,"featured_image":{"id":31480363876451,"product_id":7411411976291,"position":9,"created_at":"2024-05-05T00:25:04+08:00","updated_at":"2024-05-05T00:25:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e738a3019c184d154c1a8853e8c7be9a7800b6d4_a33836bb-988f-41eb-854a-6c75c342000a.webp?v=1714839904","variant_ids":[41898557014115]},"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-YF09","featured_media":{"alt":null,"id":23885615628387,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e738a3019c184d154c1a8853e8c7be9a7800b6d4_a33836bb-988f-41eb-854a-6c75c342000a.webp?v=1714839904"}},"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: "停產" }