$product = {"id":7407849996387,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Weiweiboy - 讓世界再可愛一點","handle":"iphone-14-plus-mod-nx-printable-eo02","description":null,"published_at":"2024-06-11T16:24:35+08:00","created_at":"2024-05-03T11:02:16+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Weiweiboy","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-weiweiboy","device-iPhone 14 Plus","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-weiweiboy","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":41879618453603,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-EO02","requires_shipping":true,"taxable":true,"featured_image":{"id":31470520467555,"product_id":7407849996387,"position":1,"created_at":"2024-05-03T11:02:19+08:00","updated_at":"2024-05-03T11:02:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e52b690c04cdf195213168ca21ea713919db1e64_da3bab38-772c-4f41-9517-58d60ba583a8.webp?v=1714705339","variant_ids":[41879618453603]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Weiweiboy - 讓世界再可愛一點 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-EO02","featured_media":{"alt":null,"id":23875424223331,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e52b690c04cdf195213168ca21ea713919db1e64_da3bab38-772c-4f41-9517-58d60ba583a8.webp?v=1714705339"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e52b690c04cdf195213168ca21ea713919db1e64_da3bab38-772c-4f41-9517-58d60ba583a8.webp?v=1714705339","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d41548015168baeaf13678d618843b2179249ab6_63137a04-68c0-4c4b-94c3-550f79a51674.webp?v=1714705341","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8c8eef300889754056845b2ef09a1e26ac0a619_a68562a7-1511-4d15-9c48-903d3f8aad35.webp?v=1714705343","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c28f15eb309fac1585e71a5a793249260ce8f6a_9724fa74-075c-4d31-87dd-dcf9cdcc8d6c.webp?v=1714705346","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccac0160a39dce555ade5f205e2213755cd4c3ae_5db3f999-69a9-4b88-8b37-a94518422ed0.webp?v=1714705348","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4c8c8dcfc9ebce0b859bc742ec7fb7e1d9f486d_ae5eadcb-1891-42cc-85cb-1ac488814fae.webp?v=1714705352","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4021217e90c42806e5f91bcb4a48eb44f6ad8a3b_3e05a8c9-40fb-4ae6-b9d9-efab619d3924.webp?v=1714705354","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3862467498ea122422276c1002c7e1d8af310cc6_ae686f97-5e19-4a65-acb6-77547f6d0f9c.webp?v=1714705356","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b416e0a1321cd64e7bd0e72a0c09c2b5d3c34109_4a17497e-ec98-4ebb-8e5a-134fb73f3e9e.webp?v=1714705359","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7cd75f2dcbc4d6102aa748a66e184ac7ee611f9_a418c974-73b6-4254-906f-f3cd5a4d78bb.webp?v=1714705361"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e52b690c04cdf195213168ca21ea713919db1e64_da3bab38-772c-4f41-9517-58d60ba583a8.webp?v=1714705339","options":["color"],"media":[{"alt":null,"id":23875424223331,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e52b690c04cdf195213168ca21ea713919db1e64_da3bab38-772c-4f41-9517-58d60ba583a8.webp?v=1714705339"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e52b690c04cdf195213168ca21ea713919db1e64_da3bab38-772c-4f41-9517-58d60ba583a8.webp?v=1714705339","width":2000},{"alt":null,"id":23875424976995,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d41548015168baeaf13678d618843b2179249ab6_63137a04-68c0-4c4b-94c3-550f79a51674.webp?v=1714705341"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d41548015168baeaf13678d618843b2179249ab6_63137a04-68c0-4c4b-94c3-550f79a51674.webp?v=1714705341","width":2000},{"alt":null,"id":23875425435747,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8c8eef300889754056845b2ef09a1e26ac0a619_a68562a7-1511-4d15-9c48-903d3f8aad35.webp?v=1714705343"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8c8eef300889754056845b2ef09a1e26ac0a619_a68562a7-1511-4d15-9c48-903d3f8aad35.webp?v=1714705343","width":2000},{"alt":null,"id":23875425960035,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c28f15eb309fac1585e71a5a793249260ce8f6a_9724fa74-075c-4d31-87dd-dcf9cdcc8d6c.webp?v=1714705346"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c28f15eb309fac1585e71a5a793249260ce8f6a_9724fa74-075c-4d31-87dd-dcf9cdcc8d6c.webp?v=1714705346","width":2000},{"alt":null,"id":23875426386019,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccac0160a39dce555ade5f205e2213755cd4c3ae_5db3f999-69a9-4b88-8b37-a94518422ed0.webp?v=1714705348"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccac0160a39dce555ade5f205e2213755cd4c3ae_5db3f999-69a9-4b88-8b37-a94518422ed0.webp?v=1714705348","width":2000},{"alt":null,"id":23875427041379,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4c8c8dcfc9ebce0b859bc742ec7fb7e1d9f486d_ae5eadcb-1891-42cc-85cb-1ac488814fae.webp?v=1714705352"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4c8c8dcfc9ebce0b859bc742ec7fb7e1d9f486d_ae5eadcb-1891-42cc-85cb-1ac488814fae.webp?v=1714705352","width":2000},{"alt":null,"id":23875427401827,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4021217e90c42806e5f91bcb4a48eb44f6ad8a3b_3e05a8c9-40fb-4ae6-b9d9-efab619d3924.webp?v=1714705354"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4021217e90c42806e5f91bcb4a48eb44f6ad8a3b_3e05a8c9-40fb-4ae6-b9d9-efab619d3924.webp?v=1714705354","width":2000},{"alt":null,"id":23875427958883,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3862467498ea122422276c1002c7e1d8af310cc6_ae686f97-5e19-4a65-acb6-77547f6d0f9c.webp?v=1714705356"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3862467498ea122422276c1002c7e1d8af310cc6_ae686f97-5e19-4a65-acb6-77547f6d0f9c.webp?v=1714705356","width":2000},{"alt":null,"id":23875428253795,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b416e0a1321cd64e7bd0e72a0c09c2b5d3c34109_4a17497e-ec98-4ebb-8e5a-134fb73f3e9e.webp?v=1714705359"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b416e0a1321cd64e7bd0e72a0c09c2b5d3c34109_4a17497e-ec98-4ebb-8e5a-134fb73f3e9e.webp?v=1714705359","width":2000},{"alt":null,"id":23875428647011,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7cd75f2dcbc4d6102aa748a66e184ac7ee611f9_a418c974-73b6-4254-906f-f3cd5a4d78bb.webp?v=1714705361"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7cd75f2dcbc4d6102aa748a66e184ac7ee611f9_a418c974-73b6-4254-906f-f3cd5a4d78bb.webp?v=1714705361","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41879618453603,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-EO02","requires_shipping":true,"taxable":true,"featured_image":{"id":31470520467555,"product_id":7407849996387,"position":1,"created_at":"2024-05-03T11:02:19+08:00","updated_at":"2024-05-03T11:02:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e52b690c04cdf195213168ca21ea713919db1e64_da3bab38-772c-4f41-9517-58d60ba583a8.webp?v=1714705339","variant_ids":[41879618453603]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Weiweiboy - 讓世界再可愛一點 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-EO02","featured_media":{"alt":null,"id":23875424223331,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e52b690c04cdf195213168ca21ea713919db1e64_da3bab38-772c-4f41-9517-58d60ba583a8.webp?v=1714705339"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41879618453603,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-EO02","requires_shipping":true,"taxable":true,"featured_image":{"id":31470520467555,"product_id":7407849996387,"position":1,"created_at":"2024-05-03T11:02:19+08:00","updated_at":"2024-05-03T11:02:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e52b690c04cdf195213168ca21ea713919db1e64_da3bab38-772c-4f41-9517-58d60ba583a8.webp?v=1714705339","variant_ids":[41879618453603]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Weiweiboy - 讓世界再可愛一點 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-EO02","featured_media":{"alt":null,"id":23875424223331,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e52b690c04cdf195213168ca21ea713919db1e64_da3bab38-772c-4f41-9517-58d60ba583a8.webp?v=1714705339"}},"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: "停產" }