$product = {"id":7408391618659,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Weiweiboy - 可愛大龍王","handle":"iphone-12-pro-max-mod-nx-printable-eo06","description":null,"published_at":"2024-06-11T16:35:58+08:00","created_at":"2024-05-03T15:17:22+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 12 pro max","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":41884961538147,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-EO06","requires_shipping":true,"taxable":true,"featured_image":{"id":31472139534435,"product_id":7408391618659,"position":1,"created_at":"2024-05-03T15:17:25+08:00","updated_at":"2024-05-03T15:17:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e8140b6abac6025a09e2bb4dcf585a12aedf374_b209f5a8-718c-45b5-908b-7600b606f88c.webp?v=1714720645","variant_ids":[41884961538147]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 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":"NPB0118724-EO06","featured_media":{"alt":null,"id":23877055250531,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e8140b6abac6025a09e2bb4dcf585a12aedf374_b209f5a8-718c-45b5-908b-7600b606f88c.webp?v=1714720645"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e8140b6abac6025a09e2bb4dcf585a12aedf374_b209f5a8-718c-45b5-908b-7600b606f88c.webp?v=1714720645","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6c90e941ace074e00382b1bf2cd0bc22ad76750_42be0fe0-fd0d-4f9e-8ec9-cc0b988418bd.webp?v=1714720647","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b582d74c013b00d6d4be744b9367a0a73138df0_ac15b692-170c-4bbb-898b-52b1a86d12fd.webp?v=1714720650","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fb826157425d636e438a9c4841b63f702fbfec5_1694708a-86c9-464e-918e-95a159b92929.webp?v=1714720652","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fb339ab55ee6833722c784d5355657906ffcacf_ba4d5707-124b-45f1-9d16-76c824ac9536.webp?v=1714720654","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ead291a91417c00fe8f821dd6e6ec050cef2df7c_6928dd52-76b5-4ae8-a8eb-490ecd72902a.webp?v=1714720656","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6203a3c07efb7cb301ca4fef6988f98d945dcd0f_31bd9030-791c-4512-991a-53fe34d9cb5b.webp?v=1714720659","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4aceebe8052794a427cf4145d8f3e5d0cb6044b1_a5f086f2-8dd4-4387-991b-30aa476fd23b.webp?v=1714720661","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c6773eb4670434db1b82daff0768a7a1361ce72_af033373-fbb2-49af-ba15-bad26fc796bc.webp?v=1714720664","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7f0469cf824136d2a0f2cde94958af35849095b_14165e10-99b9-4163-b5fc-bd75f3b159ec.webp?v=1714720666"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e8140b6abac6025a09e2bb4dcf585a12aedf374_b209f5a8-718c-45b5-908b-7600b606f88c.webp?v=1714720645","options":["color"],"media":[{"alt":null,"id":23877055250531,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e8140b6abac6025a09e2bb4dcf585a12aedf374_b209f5a8-718c-45b5-908b-7600b606f88c.webp?v=1714720645"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e8140b6abac6025a09e2bb4dcf585a12aedf374_b209f5a8-718c-45b5-908b-7600b606f88c.webp?v=1714720645","width":2000},{"alt":null,"id":23877055676515,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6c90e941ace074e00382b1bf2cd0bc22ad76750_42be0fe0-fd0d-4f9e-8ec9-cc0b988418bd.webp?v=1714720647"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6c90e941ace074e00382b1bf2cd0bc22ad76750_42be0fe0-fd0d-4f9e-8ec9-cc0b988418bd.webp?v=1714720647","width":2000},{"alt":null,"id":23877056200803,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b582d74c013b00d6d4be744b9367a0a73138df0_ac15b692-170c-4bbb-898b-52b1a86d12fd.webp?v=1714720650"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b582d74c013b00d6d4be744b9367a0a73138df0_ac15b692-170c-4bbb-898b-52b1a86d12fd.webp?v=1714720650","width":2000},{"alt":null,"id":23877056594019,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fb826157425d636e438a9c4841b63f702fbfec5_1694708a-86c9-464e-918e-95a159b92929.webp?v=1714720652"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fb826157425d636e438a9c4841b63f702fbfec5_1694708a-86c9-464e-918e-95a159b92929.webp?v=1714720652","width":2000},{"alt":null,"id":23877057413219,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fb339ab55ee6833722c784d5355657906ffcacf_ba4d5707-124b-45f1-9d16-76c824ac9536.webp?v=1714720654"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fb339ab55ee6833722c784d5355657906ffcacf_ba4d5707-124b-45f1-9d16-76c824ac9536.webp?v=1714720654","width":2000},{"alt":null,"id":23877057970275,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ead291a91417c00fe8f821dd6e6ec050cef2df7c_6928dd52-76b5-4ae8-a8eb-490ecd72902a.webp?v=1714720656"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ead291a91417c00fe8f821dd6e6ec050cef2df7c_6928dd52-76b5-4ae8-a8eb-490ecd72902a.webp?v=1714720656","width":2000},{"alt":null,"id":23877058592867,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6203a3c07efb7cb301ca4fef6988f98d945dcd0f_31bd9030-791c-4512-991a-53fe34d9cb5b.webp?v=1714720659"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6203a3c07efb7cb301ca4fef6988f98d945dcd0f_31bd9030-791c-4512-991a-53fe34d9cb5b.webp?v=1714720659","width":2000},{"alt":null,"id":23877058986083,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4aceebe8052794a427cf4145d8f3e5d0cb6044b1_a5f086f2-8dd4-4387-991b-30aa476fd23b.webp?v=1714720661"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4aceebe8052794a427cf4145d8f3e5d0cb6044b1_a5f086f2-8dd4-4387-991b-30aa476fd23b.webp?v=1714720661","width":2000},{"alt":null,"id":23877059575907,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c6773eb4670434db1b82daff0768a7a1361ce72_af033373-fbb2-49af-ba15-bad26fc796bc.webp?v=1714720664"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c6773eb4670434db1b82daff0768a7a1361ce72_af033373-fbb2-49af-ba15-bad26fc796bc.webp?v=1714720664","width":2000},{"alt":null,"id":23877059936355,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7f0469cf824136d2a0f2cde94958af35849095b_14165e10-99b9-4163-b5fc-bd75f3b159ec.webp?v=1714720666"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7f0469cf824136d2a0f2cde94958af35849095b_14165e10-99b9-4163-b5fc-bd75f3b159ec.webp?v=1714720666","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41884961538147,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-EO06","requires_shipping":true,"taxable":true,"featured_image":{"id":31472139534435,"product_id":7408391618659,"position":1,"created_at":"2024-05-03T15:17:25+08:00","updated_at":"2024-05-03T15:17:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e8140b6abac6025a09e2bb4dcf585a12aedf374_b209f5a8-718c-45b5-908b-7600b606f88c.webp?v=1714720645","variant_ids":[41884961538147]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 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":"NPB0118724-EO06","featured_media":{"alt":null,"id":23877055250531,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e8140b6abac6025a09e2bb4dcf585a12aedf374_b209f5a8-718c-45b5-908b-7600b606f88c.webp?v=1714720645"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41884961538147,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-EO06","requires_shipping":true,"taxable":true,"featured_image":{"id":31472139534435,"product_id":7408391618659,"position":1,"created_at":"2024-05-03T15:17:25+08:00","updated_at":"2024-05-03T15:17:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e8140b6abac6025a09e2bb4dcf585a12aedf374_b209f5a8-718c-45b5-908b-7600b606f88c.webp?v=1714720645","variant_ids":[41884961538147]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 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":"NPB0118724-EO06","featured_media":{"alt":null,"id":23877055250531,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e8140b6abac6025a09e2bb4dcf585a12aedf374_b209f5a8-718c-45b5-908b-7600b606f88c.webp?v=1714720645"}},"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: "停產" }