$product = {"id":7408433954915,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 天行者路克-復古系列","handle":"iphone-12-pro-max-mod-nx-printable-pb97","description":null,"published_at":"2024-06-11T16:37:07+08:00","created_at":"2024-05-03T15:25:51+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 12 pro max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-star-wars","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":41885433626723,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB97","requires_shipping":true,"taxable":true,"featured_image":{"id":31472270835811,"product_id":7408433954915,"position":7,"created_at":"2024-05-03T15:26:08+08:00","updated_at":"2024-05-03T15:26:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc4b9558fc8856c2300abb1b1429aa8af50286a0_54ffb77c-89b6-4bd9-b2ba-c04d884d42cc.webp?v=1714721168","variant_ids":[41885433626723]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 天行者路克-復古系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-PB97","featured_media":{"alt":null,"id":23877187141731,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc4b9558fc8856c2300abb1b1429aa8af50286a0_54ffb77c-89b6-4bd9-b2ba-c04d884d42cc.webp?v=1714721168"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ac8cefe3991911c2d3406abbc092ef6159844f4_7e408b7f-14e8-41e7-a86e-cff446d4f843.webp?v=1714721153","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dfdb8e842bd19212718c562feac64309cb4b9ea_0b446750-fd1e-4ab7-9b9a-8014f55c0d36.webp?v=1714721156","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa69d62a9e45cb40f01938954ba6595a83848dca_a5c46ae2-bc1b-4e71-a181-4fa1b3a3e631.webp?v=1714721158","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08449eb172b6ac63d07d17afed1ee89d0a87fe9c_655698ea-f684-41e1-91df-d27f3d1ee654.webp?v=1714721161","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1298f01aaa13fee7d31220e8a63e593945f78732_1a04e5b7-1f6f-431a-b9b5-dde7b72394df.webp?v=1714721163","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79f897c642d8b19913b2b60fbae1a57a589add67_3b881083-b888-4b4f-ac1c-57c803587463.webp?v=1714721166","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc4b9558fc8856c2300abb1b1429aa8af50286a0_54ffb77c-89b6-4bd9-b2ba-c04d884d42cc.webp?v=1714721168","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b84e14bbc8204970b9ff0e86f047cff60995dc51_c1931f72-78db-46a4-9be6-b8d12c844981.webp?v=1714721171","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e061510d646e8e56832704d2f0343c0b3e8112a1_2eddbea8-dd65-4dd1-811a-a3bfefc0655a.webp?v=1714721173","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ebd663b2b3ff4bb1b5215a160d419d2b3a0e07f9_41f60b2e-21da-45a5-bbd6-045406d75180.webp?v=1714721175"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ac8cefe3991911c2d3406abbc092ef6159844f4_7e408b7f-14e8-41e7-a86e-cff446d4f843.webp?v=1714721153","options":["color"],"media":[{"alt":null,"id":23877182521443,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ac8cefe3991911c2d3406abbc092ef6159844f4_7e408b7f-14e8-41e7-a86e-cff446d4f843.webp?v=1714721153"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ac8cefe3991911c2d3406abbc092ef6159844f4_7e408b7f-14e8-41e7-a86e-cff446d4f843.webp?v=1714721153","width":2000},{"alt":null,"id":23877184192611,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dfdb8e842bd19212718c562feac64309cb4b9ea_0b446750-fd1e-4ab7-9b9a-8014f55c0d36.webp?v=1714721156"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dfdb8e842bd19212718c562feac64309cb4b9ea_0b446750-fd1e-4ab7-9b9a-8014f55c0d36.webp?v=1714721156","width":2000},{"alt":null,"id":23877184946275,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa69d62a9e45cb40f01938954ba6595a83848dca_a5c46ae2-bc1b-4e71-a181-4fa1b3a3e631.webp?v=1714721158"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa69d62a9e45cb40f01938954ba6595a83848dca_a5c46ae2-bc1b-4e71-a181-4fa1b3a3e631.webp?v=1714721158","width":2000},{"alt":null,"id":23877185437795,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08449eb172b6ac63d07d17afed1ee89d0a87fe9c_655698ea-f684-41e1-91df-d27f3d1ee654.webp?v=1714721161"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08449eb172b6ac63d07d17afed1ee89d0a87fe9c_655698ea-f684-41e1-91df-d27f3d1ee654.webp?v=1714721161","width":2000},{"alt":null,"id":23877186060387,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1298f01aaa13fee7d31220e8a63e593945f78732_1a04e5b7-1f6f-431a-b9b5-dde7b72394df.webp?v=1714721163"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1298f01aaa13fee7d31220e8a63e593945f78732_1a04e5b7-1f6f-431a-b9b5-dde7b72394df.webp?v=1714721163","width":2000},{"alt":null,"id":23877186617443,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79f897c642d8b19913b2b60fbae1a57a589add67_3b881083-b888-4b4f-ac1c-57c803587463.webp?v=1714721166"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79f897c642d8b19913b2b60fbae1a57a589add67_3b881083-b888-4b4f-ac1c-57c803587463.webp?v=1714721166","width":2000},{"alt":null,"id":23877187141731,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc4b9558fc8856c2300abb1b1429aa8af50286a0_54ffb77c-89b6-4bd9-b2ba-c04d884d42cc.webp?v=1714721168"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc4b9558fc8856c2300abb1b1429aa8af50286a0_54ffb77c-89b6-4bd9-b2ba-c04d884d42cc.webp?v=1714721168","width":2000},{"alt":null,"id":23877188059235,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b84e14bbc8204970b9ff0e86f047cff60995dc51_c1931f72-78db-46a4-9be6-b8d12c844981.webp?v=1714721171"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b84e14bbc8204970b9ff0e86f047cff60995dc51_c1931f72-78db-46a4-9be6-b8d12c844981.webp?v=1714721171","width":2000},{"alt":null,"id":23877188550755,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e061510d646e8e56832704d2f0343c0b3e8112a1_2eddbea8-dd65-4dd1-811a-a3bfefc0655a.webp?v=1714721173"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e061510d646e8e56832704d2f0343c0b3e8112a1_2eddbea8-dd65-4dd1-811a-a3bfefc0655a.webp?v=1714721173","width":2000},{"alt":null,"id":23877189828707,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ebd663b2b3ff4bb1b5215a160d419d2b3a0e07f9_41f60b2e-21da-45a5-bbd6-045406d75180.webp?v=1714721175"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ebd663b2b3ff4bb1b5215a160d419d2b3a0e07f9_41f60b2e-21da-45a5-bbd6-045406d75180.webp?v=1714721175","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41885433626723,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB97","requires_shipping":true,"taxable":true,"featured_image":{"id":31472270835811,"product_id":7408433954915,"position":7,"created_at":"2024-05-03T15:26:08+08:00","updated_at":"2024-05-03T15:26:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc4b9558fc8856c2300abb1b1429aa8af50286a0_54ffb77c-89b6-4bd9-b2ba-c04d884d42cc.webp?v=1714721168","variant_ids":[41885433626723]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 天行者路克-復古系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-PB97","featured_media":{"alt":null,"id":23877187141731,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc4b9558fc8856c2300abb1b1429aa8af50286a0_54ffb77c-89b6-4bd9-b2ba-c04d884d42cc.webp?v=1714721168"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41885433626723,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB97","requires_shipping":true,"taxable":true,"featured_image":{"id":31472270835811,"product_id":7408433954915,"position":7,"created_at":"2024-05-03T15:26:08+08:00","updated_at":"2024-05-03T15:26:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc4b9558fc8856c2300abb1b1429aa8af50286a0_54ffb77c-89b6-4bd9-b2ba-c04d884d42cc.webp?v=1714721168","variant_ids":[41885433626723]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 天行者路克-復古系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-PB97","featured_media":{"alt":null,"id":23877187141731,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc4b9558fc8856c2300abb1b1429aa8af50286a0_54ffb77c-89b6-4bd9-b2ba-c04d884d42cc.webp?v=1714721168"}},"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: "停產" }