$product = {"id":7407644278883,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Look - 大自然的傑作(錫安國家公園)","handle":"iphone-14-plus-mod-nx-printable-af14","description":null,"published_at":"2024-06-11T16:21:25+08:00","created_at":"2024-05-03T10:36:23+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Look","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-look","device-iPhone 14 Plus","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-look","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":41877106163811,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-AF14","requires_shipping":true,"taxable":true,"featured_image":{"id":31470140817507,"product_id":7407644278883,"position":10,"created_at":"2024-05-03T10:36:48+08:00","updated_at":"2024-05-03T10:36:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5958b3a7d51c4c7212b41bc8db1698e94b987c32_0b698bc5-ca81-4401-a6ce-d4de09df8f83.webp?v=1714703808","variant_ids":[41877106163811]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Look - 大自然的傑作(錫安國家公園) - 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-AF14","featured_media":{"alt":null,"id":23875043754083,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5958b3a7d51c4c7212b41bc8db1698e94b987c32_0b698bc5-ca81-4401-a6ce-d4de09df8f83.webp?v=1714703808"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd99b4af547b103aef1b4ecfba547a83dd7c2d54_f90908b0-8c06-47b3-a8a7-f0e502cfc2ff.webp?v=1714703786","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bd49ad6ee68c1b44228c9c29cbe1c16eed9690c_1132cbfb-1372-40d4-8ca1-9a4fe076d115.webp?v=1714703788","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4b42ecde8a03aac553bd4531c1b0bc675cd8b00_4f3645ef-778a-41a2-a333-d75d03c91f9c.webp?v=1714703791","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa3dc9d3ed0d621db4cf26a040002a7bc04b52fb_61e665c3-817c-48a0-9474-8f5fc4a1f43c.webp?v=1714703794","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97226e6991466d7692f5221587a57d3f304700cc_3c9ac084-56a3-4eaa-a058-ee6ae1876822.webp?v=1714703796","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/907f2b2f31c85a75584b828aace1a503c70b5da3_94ce0219-ebd9-469c-9a56-4bbe34eaf174.webp?v=1714703798","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ad7483e2a0f6d89921733de4b2bd39c4f1e023c_29c3f35e-6f7e-4329-94e6-bac230d6516a.webp?v=1714703801","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90546a6d844c461a6b24073050d628307d28c48e_85f7c84c-7663-4171-b32b-169bb7f6d29f.webp?v=1714703803","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d017ed5f1904861b065202805ba05485693bbe5a_860ff919-4b29-4b20-a090-f1b8a5aa73bd.webp?v=1714703806","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5958b3a7d51c4c7212b41bc8db1698e94b987c32_0b698bc5-ca81-4401-a6ce-d4de09df8f83.webp?v=1714703808"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd99b4af547b103aef1b4ecfba547a83dd7c2d54_f90908b0-8c06-47b3-a8a7-f0e502cfc2ff.webp?v=1714703786","options":["color"],"media":[{"alt":null,"id":23875038838883,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd99b4af547b103aef1b4ecfba547a83dd7c2d54_f90908b0-8c06-47b3-a8a7-f0e502cfc2ff.webp?v=1714703786"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd99b4af547b103aef1b4ecfba547a83dd7c2d54_f90908b0-8c06-47b3-a8a7-f0e502cfc2ff.webp?v=1714703786","width":2000},{"alt":null,"id":23875039395939,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bd49ad6ee68c1b44228c9c29cbe1c16eed9690c_1132cbfb-1372-40d4-8ca1-9a4fe076d115.webp?v=1714703788"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bd49ad6ee68c1b44228c9c29cbe1c16eed9690c_1132cbfb-1372-40d4-8ca1-9a4fe076d115.webp?v=1714703788","width":2000},{"alt":null,"id":23875039756387,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4b42ecde8a03aac553bd4531c1b0bc675cd8b00_4f3645ef-778a-41a2-a333-d75d03c91f9c.webp?v=1714703791"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4b42ecde8a03aac553bd4531c1b0bc675cd8b00_4f3645ef-778a-41a2-a333-d75d03c91f9c.webp?v=1714703791","width":2000},{"alt":null,"id":23875040149603,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa3dc9d3ed0d621db4cf26a040002a7bc04b52fb_61e665c3-817c-48a0-9474-8f5fc4a1f43c.webp?v=1714703794"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa3dc9d3ed0d621db4cf26a040002a7bc04b52fb_61e665c3-817c-48a0-9474-8f5fc4a1f43c.webp?v=1714703794","width":2000},{"alt":null,"id":23875040673891,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97226e6991466d7692f5221587a57d3f304700cc_3c9ac084-56a3-4eaa-a058-ee6ae1876822.webp?v=1714703796"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97226e6991466d7692f5221587a57d3f304700cc_3c9ac084-56a3-4eaa-a058-ee6ae1876822.webp?v=1714703796","width":2000},{"alt":null,"id":23875041263715,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/907f2b2f31c85a75584b828aace1a503c70b5da3_94ce0219-ebd9-469c-9a56-4bbe34eaf174.webp?v=1714703798"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/907f2b2f31c85a75584b828aace1a503c70b5da3_94ce0219-ebd9-469c-9a56-4bbe34eaf174.webp?v=1714703798","width":2000},{"alt":null,"id":23875041755235,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ad7483e2a0f6d89921733de4b2bd39c4f1e023c_29c3f35e-6f7e-4329-94e6-bac230d6516a.webp?v=1714703801"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ad7483e2a0f6d89921733de4b2bd39c4f1e023c_29c3f35e-6f7e-4329-94e6-bac230d6516a.webp?v=1714703801","width":2000},{"alt":null,"id":23875042312291,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90546a6d844c461a6b24073050d628307d28c48e_85f7c84c-7663-4171-b32b-169bb7f6d29f.webp?v=1714703803"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90546a6d844c461a6b24073050d628307d28c48e_85f7c84c-7663-4171-b32b-169bb7f6d29f.webp?v=1714703803","width":2000},{"alt":null,"id":23875043197027,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d017ed5f1904861b065202805ba05485693bbe5a_860ff919-4b29-4b20-a090-f1b8a5aa73bd.webp?v=1714703806"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d017ed5f1904861b065202805ba05485693bbe5a_860ff919-4b29-4b20-a090-f1b8a5aa73bd.webp?v=1714703806","width":2000},{"alt":null,"id":23875043754083,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5958b3a7d51c4c7212b41bc8db1698e94b987c32_0b698bc5-ca81-4401-a6ce-d4de09df8f83.webp?v=1714703808"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5958b3a7d51c4c7212b41bc8db1698e94b987c32_0b698bc5-ca81-4401-a6ce-d4de09df8f83.webp?v=1714703808","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41877106163811,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-AF14","requires_shipping":true,"taxable":true,"featured_image":{"id":31470140817507,"product_id":7407644278883,"position":10,"created_at":"2024-05-03T10:36:48+08:00","updated_at":"2024-05-03T10:36:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5958b3a7d51c4c7212b41bc8db1698e94b987c32_0b698bc5-ca81-4401-a6ce-d4de09df8f83.webp?v=1714703808","variant_ids":[41877106163811]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Look - 大自然的傑作(錫安國家公園) - 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-AF14","featured_media":{"alt":null,"id":23875043754083,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5958b3a7d51c4c7212b41bc8db1698e94b987c32_0b698bc5-ca81-4401-a6ce-d4de09df8f83.webp?v=1714703808"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41877106163811,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-AF14","requires_shipping":true,"taxable":true,"featured_image":{"id":31470140817507,"product_id":7407644278883,"position":10,"created_at":"2024-05-03T10:36:48+08:00","updated_at":"2024-05-03T10:36:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5958b3a7d51c4c7212b41bc8db1698e94b987c32_0b698bc5-ca81-4401-a6ce-d4de09df8f83.webp?v=1714703808","variant_ids":[41877106163811]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Look - 大自然的傑作(錫安國家公園) - 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-AF14","featured_media":{"alt":null,"id":23875043754083,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5958b3a7d51c4c7212b41bc8db1698e94b987c32_0b698bc5-ca81-4401-a6ce-d4de09df8f83.webp?v=1714703808"}},"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: "停產" }