$product = {"id":7416381898851,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Look - 大自然的傑作(亞馬遜雨林)","handle":"iphone-8-mod-nx-printable-af09","description":null,"published_at":"2024-06-11T16:57:32+08:00","created_at":"2024-05-06T14:46:00+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 8","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":41919125389411,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-AF09","requires_shipping":true,"taxable":true,"featured_image":{"id":31491992780899,"product_id":7416381898851,"position":10,"created_at":"2024-05-06T14:46:25+08:00","updated_at":"2024-05-06T14:46:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11c64ac3499c6a681b16555a01601a0f29f40e68_34fd69f2-5942-48a5-be58-f95675edcd12.webp?v=1714977985","variant_ids":[41919125389411]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 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":"NPB0105424-AF09","featured_media":{"alt":null,"id":23897406308451,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11c64ac3499c6a681b16555a01601a0f29f40e68_34fd69f2-5942-48a5-be58-f95675edcd12.webp?v=1714977985"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55e092fd99f3490945eae3f61c37ee7d94faffa9_82217be8-bc60-42f6-8f00-fcc249222f69.webp?v=1714977963","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc6111fec16e6e5ac9eb1ef117b974795695da17_e857e23c-19e2-4e80-bc06-e516e4945ccf.webp?v=1714977966","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/941667b4d2dcb3b11e8ca0c306229f9874327139_b8e7e5cf-e801-4aec-912d-778a0a0c7dee.webp?v=1714977968","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bcddb369938813dc14a39281fb56398713640ab_9a7aaca0-62d2-4d08-bd80-c2f49208e2d7.webp?v=1714977970","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1be562bd4fb8e1d8d9c5dc5e69c31184bb2f38a9_d01762a7-f5e0-4aeb-9559-c5da5e2f1e35.webp?v=1714977973","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3fc2aadb0f18f47b1310d1868c8034fc97abb2c_c6f5b290-3ba9-472c-9033-46c9a870b297.webp?v=1714977975","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f94c187f35c8b13bb0557f6c49db7358fa00e26_07fcc4cf-caef-4087-8cc4-da53cbd73871.webp?v=1714977978","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e989010a3e80d7c5aa9b2a87554accc4065b1a68_c5bd61aa-f3cf-4bb6-810d-1fc5f27836a7.webp?v=1714977980","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39c094cc7d8250643c89a19e3a8c687b2a922d36_0e811eb6-03b4-499d-bf65-fd45c9aa886a.webp?v=1714977983","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11c64ac3499c6a681b16555a01601a0f29f40e68_34fd69f2-5942-48a5-be58-f95675edcd12.webp?v=1714977985"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55e092fd99f3490945eae3f61c37ee7d94faffa9_82217be8-bc60-42f6-8f00-fcc249222f69.webp?v=1714977963","options":["color"],"media":[{"alt":null,"id":23897400803427,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55e092fd99f3490945eae3f61c37ee7d94faffa9_82217be8-bc60-42f6-8f00-fcc249222f69.webp?v=1714977963"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55e092fd99f3490945eae3f61c37ee7d94faffa9_82217be8-bc60-42f6-8f00-fcc249222f69.webp?v=1714977963","width":2000},{"alt":null,"id":23897401426019,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc6111fec16e6e5ac9eb1ef117b974795695da17_e857e23c-19e2-4e80-bc06-e516e4945ccf.webp?v=1714977966"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc6111fec16e6e5ac9eb1ef117b974795695da17_e857e23c-19e2-4e80-bc06-e516e4945ccf.webp?v=1714977966","width":2000},{"alt":null,"id":23897401786467,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/941667b4d2dcb3b11e8ca0c306229f9874327139_b8e7e5cf-e801-4aec-912d-778a0a0c7dee.webp?v=1714977968"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/941667b4d2dcb3b11e8ca0c306229f9874327139_b8e7e5cf-e801-4aec-912d-778a0a0c7dee.webp?v=1714977968","width":2000},{"alt":null,"id":23897402376291,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bcddb369938813dc14a39281fb56398713640ab_9a7aaca0-62d2-4d08-bd80-c2f49208e2d7.webp?v=1714977970"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bcddb369938813dc14a39281fb56398713640ab_9a7aaca0-62d2-4d08-bd80-c2f49208e2d7.webp?v=1714977970","width":2000},{"alt":null,"id":23897403129955,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1be562bd4fb8e1d8d9c5dc5e69c31184bb2f38a9_d01762a7-f5e0-4aeb-9559-c5da5e2f1e35.webp?v=1714977973"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1be562bd4fb8e1d8d9c5dc5e69c31184bb2f38a9_d01762a7-f5e0-4aeb-9559-c5da5e2f1e35.webp?v=1714977973","width":2000},{"alt":null,"id":23897403818083,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3fc2aadb0f18f47b1310d1868c8034fc97abb2c_c6f5b290-3ba9-472c-9033-46c9a870b297.webp?v=1714977975"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3fc2aadb0f18f47b1310d1868c8034fc97abb2c_c6f5b290-3ba9-472c-9033-46c9a870b297.webp?v=1714977975","width":2000},{"alt":null,"id":23897404407907,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f94c187f35c8b13bb0557f6c49db7358fa00e26_07fcc4cf-caef-4087-8cc4-da53cbd73871.webp?v=1714977978"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f94c187f35c8b13bb0557f6c49db7358fa00e26_07fcc4cf-caef-4087-8cc4-da53cbd73871.webp?v=1714977978","width":2000},{"alt":null,"id":23897404997731,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e989010a3e80d7c5aa9b2a87554accc4065b1a68_c5bd61aa-f3cf-4bb6-810d-1fc5f27836a7.webp?v=1714977980"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e989010a3e80d7c5aa9b2a87554accc4065b1a68_c5bd61aa-f3cf-4bb6-810d-1fc5f27836a7.webp?v=1714977980","width":2000},{"alt":null,"id":23897405456483,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39c094cc7d8250643c89a19e3a8c687b2a922d36_0e811eb6-03b4-499d-bf65-fd45c9aa886a.webp?v=1714977983"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39c094cc7d8250643c89a19e3a8c687b2a922d36_0e811eb6-03b4-499d-bf65-fd45c9aa886a.webp?v=1714977983","width":2000},{"alt":null,"id":23897406308451,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11c64ac3499c6a681b16555a01601a0f29f40e68_34fd69f2-5942-48a5-be58-f95675edcd12.webp?v=1714977985"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11c64ac3499c6a681b16555a01601a0f29f40e68_34fd69f2-5942-48a5-be58-f95675edcd12.webp?v=1714977985","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41919125389411,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-AF09","requires_shipping":true,"taxable":true,"featured_image":{"id":31491992780899,"product_id":7416381898851,"position":10,"created_at":"2024-05-06T14:46:25+08:00","updated_at":"2024-05-06T14:46:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11c64ac3499c6a681b16555a01601a0f29f40e68_34fd69f2-5942-48a5-be58-f95675edcd12.webp?v=1714977985","variant_ids":[41919125389411]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 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":"NPB0105424-AF09","featured_media":{"alt":null,"id":23897406308451,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11c64ac3499c6a681b16555a01601a0f29f40e68_34fd69f2-5942-48a5-be58-f95675edcd12.webp?v=1714977985"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41919125389411,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-AF09","requires_shipping":true,"taxable":true,"featured_image":{"id":31491992780899,"product_id":7416381898851,"position":10,"created_at":"2024-05-06T14:46:25+08:00","updated_at":"2024-05-06T14:46:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11c64ac3499c6a681b16555a01601a0f29f40e68_34fd69f2-5942-48a5-be58-f95675edcd12.webp?v=1714977985","variant_ids":[41919125389411]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 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":"NPB0105424-AF09","featured_media":{"alt":null,"id":23897406308451,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11c64ac3499c6a681b16555a01601a0f29f40e68_34fd69f2-5942-48a5-be58-f95675edcd12.webp?v=1714977985"}},"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: "停產" }