$product = {"id":7408465444963,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Look - 大自然的傑作(亞馬遜雨林)","handle":"iphone-12-pro-max-mod-nx-printable-af09","description":null,"published_at":"2024-06-11T16:37:59+08:00","created_at":"2024-05-03T15:32:01+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 12 pro max","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":41885789651043,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-AF09","requires_shipping":true,"taxable":true,"featured_image":{"id":31472349118563,"product_id":7408465444963,"position":4,"created_at":"2024-05-03T15:32:11+08:00","updated_at":"2024-05-03T15:32:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1577ac17a5650447e45bb742592747f763cf9647_5c6cdbab-6927-48c3-b834-2887e3d9b43f.webp?v=1714721531","variant_ids":[41885789651043]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 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":"NPB0118724-AF09","featured_media":{"alt":null,"id":23877265719395,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1577ac17a5650447e45bb742592747f763cf9647_5c6cdbab-6927-48c3-b834-2887e3d9b43f.webp?v=1714721531"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/895e36770d0237eb6ad376ec934afcdebab86b27_2e0ea578-3f03-4761-a389-0672aa314610.webp?v=1714721523","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd7fa9d5a256ed8a6f5f8a95b6d22af3aedf0a95_847e6fe5-0e77-4135-9043-2eba924b1d04.webp?v=1714721526","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e60acbc50368ed760b3122476e4d3573943be8a9_18600b83-164a-4a75-921c-9a8c752dcf64.webp?v=1714721528","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1577ac17a5650447e45bb742592747f763cf9647_5c6cdbab-6927-48c3-b834-2887e3d9b43f.webp?v=1714721531","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c340b3df40ec8588ad2a0d091ffab405a5b576c8_ed3c11bb-145d-4d9b-9188-08ab80a1684c.webp?v=1714721533","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/853ea9b4d22433bccd317e6bfd0bda6d702ee0ab_0cddfd67-ceef-425c-a975-9cafe2338ece.webp?v=1714721536","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/928cf98856155afe4e59cb1a6e6a6456601a1702_9f127f21-6783-4501-af24-1e1b783cefea.webp?v=1714721538","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13de07139fecb47b6dc3bc3adf9bd2f7f0012759_f3cc5f81-8457-4bf8-a44c-926e8ea51026.webp?v=1714721541","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d49f523d4294bcd67ea3389ed1c59d08e69be8cf_7ae2b1d4-19f3-467d-840c-80f86731ec92.webp?v=1714721543","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bb29ce3c85fb6d5ba8d7bda945b587c5bb1cdb7_1978c5ff-b9a1-42d8-8080-9de06ed8a27f.webp?v=1714721546"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/895e36770d0237eb6ad376ec934afcdebab86b27_2e0ea578-3f03-4761-a389-0672aa314610.webp?v=1714721523","options":["color"],"media":[{"alt":null,"id":23877264474211,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/895e36770d0237eb6ad376ec934afcdebab86b27_2e0ea578-3f03-4761-a389-0672aa314610.webp?v=1714721523"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/895e36770d0237eb6ad376ec934afcdebab86b27_2e0ea578-3f03-4761-a389-0672aa314610.webp?v=1714721523","width":2000},{"alt":null,"id":23877264867427,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd7fa9d5a256ed8a6f5f8a95b6d22af3aedf0a95_847e6fe5-0e77-4135-9043-2eba924b1d04.webp?v=1714721526"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd7fa9d5a256ed8a6f5f8a95b6d22af3aedf0a95_847e6fe5-0e77-4135-9043-2eba924b1d04.webp?v=1714721526","width":2000},{"alt":null,"id":23877265391715,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e60acbc50368ed760b3122476e4d3573943be8a9_18600b83-164a-4a75-921c-9a8c752dcf64.webp?v=1714721528"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e60acbc50368ed760b3122476e4d3573943be8a9_18600b83-164a-4a75-921c-9a8c752dcf64.webp?v=1714721528","width":2000},{"alt":null,"id":23877265719395,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1577ac17a5650447e45bb742592747f763cf9647_5c6cdbab-6927-48c3-b834-2887e3d9b43f.webp?v=1714721531"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1577ac17a5650447e45bb742592747f763cf9647_5c6cdbab-6927-48c3-b834-2887e3d9b43f.webp?v=1714721531","width":2000},{"alt":null,"id":23877266309219,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c340b3df40ec8588ad2a0d091ffab405a5b576c8_ed3c11bb-145d-4d9b-9188-08ab80a1684c.webp?v=1714721533"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c340b3df40ec8588ad2a0d091ffab405a5b576c8_ed3c11bb-145d-4d9b-9188-08ab80a1684c.webp?v=1714721533","width":2000},{"alt":null,"id":23877266767971,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/853ea9b4d22433bccd317e6bfd0bda6d702ee0ab_0cddfd67-ceef-425c-a975-9cafe2338ece.webp?v=1714721536"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/853ea9b4d22433bccd317e6bfd0bda6d702ee0ab_0cddfd67-ceef-425c-a975-9cafe2338ece.webp?v=1714721536","width":2000},{"alt":null,"id":23877267161187,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/928cf98856155afe4e59cb1a6e6a6456601a1702_9f127f21-6783-4501-af24-1e1b783cefea.webp?v=1714721538"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/928cf98856155afe4e59cb1a6e6a6456601a1702_9f127f21-6783-4501-af24-1e1b783cefea.webp?v=1714721538","width":2000},{"alt":null,"id":23877267619939,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13de07139fecb47b6dc3bc3adf9bd2f7f0012759_f3cc5f81-8457-4bf8-a44c-926e8ea51026.webp?v=1714721541"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13de07139fecb47b6dc3bc3adf9bd2f7f0012759_f3cc5f81-8457-4bf8-a44c-926e8ea51026.webp?v=1714721541","width":2000},{"alt":null,"id":23877268209763,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d49f523d4294bcd67ea3389ed1c59d08e69be8cf_7ae2b1d4-19f3-467d-840c-80f86731ec92.webp?v=1714721543"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d49f523d4294bcd67ea3389ed1c59d08e69be8cf_7ae2b1d4-19f3-467d-840c-80f86731ec92.webp?v=1714721543","width":2000},{"alt":null,"id":23877268602979,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bb29ce3c85fb6d5ba8d7bda945b587c5bb1cdb7_1978c5ff-b9a1-42d8-8080-9de06ed8a27f.webp?v=1714721546"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bb29ce3c85fb6d5ba8d7bda945b587c5bb1cdb7_1978c5ff-b9a1-42d8-8080-9de06ed8a27f.webp?v=1714721546","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41885789651043,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-AF09","requires_shipping":true,"taxable":true,"featured_image":{"id":31472349118563,"product_id":7408465444963,"position":4,"created_at":"2024-05-03T15:32:11+08:00","updated_at":"2024-05-03T15:32:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1577ac17a5650447e45bb742592747f763cf9647_5c6cdbab-6927-48c3-b834-2887e3d9b43f.webp?v=1714721531","variant_ids":[41885789651043]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 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":"NPB0118724-AF09","featured_media":{"alt":null,"id":23877265719395,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1577ac17a5650447e45bb742592747f763cf9647_5c6cdbab-6927-48c3-b834-2887e3d9b43f.webp?v=1714721531"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41885789651043,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-AF09","requires_shipping":true,"taxable":true,"featured_image":{"id":31472349118563,"product_id":7408465444963,"position":4,"created_at":"2024-05-03T15:32:11+08:00","updated_at":"2024-05-03T15:32:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1577ac17a5650447e45bb742592747f763cf9647_5c6cdbab-6927-48c3-b834-2887e3d9b43f.webp?v=1714721531","variant_ids":[41885789651043]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 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":"NPB0118724-AF09","featured_media":{"alt":null,"id":23877265719395,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1577ac17a5650447e45bb742592747f763cf9647_5c6cdbab-6927-48c3-b834-2887e3d9b43f.webp?v=1714721531"}},"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: "停產" }