$product = {"id":7416063131747,"title":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵-黑白條紋","handle":"iphone-xs-max-mod-nx-printable-pb19","description":null,"published_at":"2024-06-11T16:51:45+08:00","created_at":"2024-05-06T12:51:15+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 XS 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":41917044916323,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PB19","requires_shipping":true,"taxable":true,"featured_image":{"id":31491117383779,"product_id":7416063131747,"position":3,"created_at":"2024-05-06T12:51:25+08:00","updated_at":"2024-05-06T12:51:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c004c12f1b3e93fe74e1183405edd780cd89ad1d_0304e207-73f2-489b-aaf7-93d8d60e86b8.webp?v=1714971085","variant_ids":[41917044916323]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS 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":"NPB0108624-PB19","featured_media":{"alt":null,"id":23896524783715,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c004c12f1b3e93fe74e1183405edd780cd89ad1d_0304e207-73f2-489b-aaf7-93d8d60e86b8.webp?v=1714971085"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4a898669d5468ec8821c030774cb10088ebf590_736c4127-3dfc-4520-bb35-bb80744bac8d.webp?v=1714971077","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/300a9861111c0d673f5cf00060f04e7460d5da09_b6e5f292-b73b-4f27-9584-b46c14cd4546.webp?v=1714971080","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c004c12f1b3e93fe74e1183405edd780cd89ad1d_0304e207-73f2-489b-aaf7-93d8d60e86b8.webp?v=1714971085","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/695fff69ef294c5adf485be54addb7443483a5bb_cb097b6f-767c-4c36-bd93-6d3834dcfd91.webp?v=1714971088","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59b684e569fe955ad9e6431c717a7da86e747e68_334e17c7-8fde-46b7-ba5e-8f94a04d3665.webp?v=1714971090","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a8838bd93a10dae83507136e91942e894c7bd77_3548817a-b3e3-4bac-919c-9610b8d4c93b.webp?v=1714971092","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65319cd21d9805bf4634d5d394a2a79b632648a0_73648508-8475-4775-9b43-75dd7fb9de1a.webp?v=1714971094","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b02e0d0c40a94a377bb302be529725fd52299a43_4564438c-ca4e-407b-aeed-bc4414caec74.webp?v=1714971097","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/441c2003e908a1d4b0dec47e209941afcc15977d_500aca8a-56ed-4a5a-8f53-d752c935f24c.webp?v=1714971099"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4a898669d5468ec8821c030774cb10088ebf590_736c4127-3dfc-4520-bb35-bb80744bac8d.webp?v=1714971077","options":["color"],"media":[{"alt":null,"id":23896522817635,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4a898669d5468ec8821c030774cb10088ebf590_736c4127-3dfc-4520-bb35-bb80744bac8d.webp?v=1714971077"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4a898669d5468ec8821c030774cb10088ebf590_736c4127-3dfc-4520-bb35-bb80744bac8d.webp?v=1714971077","width":2000},{"alt":null,"id":23896523309155,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/300a9861111c0d673f5cf00060f04e7460d5da09_b6e5f292-b73b-4f27-9584-b46c14cd4546.webp?v=1714971080"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/300a9861111c0d673f5cf00060f04e7460d5da09_b6e5f292-b73b-4f27-9584-b46c14cd4546.webp?v=1714971080","width":2000},{"alt":null,"id":23896524783715,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c004c12f1b3e93fe74e1183405edd780cd89ad1d_0304e207-73f2-489b-aaf7-93d8d60e86b8.webp?v=1714971085"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c004c12f1b3e93fe74e1183405edd780cd89ad1d_0304e207-73f2-489b-aaf7-93d8d60e86b8.webp?v=1714971085","width":2000},{"alt":null,"id":23896525406307,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/695fff69ef294c5adf485be54addb7443483a5bb_cb097b6f-767c-4c36-bd93-6d3834dcfd91.webp?v=1714971088"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/695fff69ef294c5adf485be54addb7443483a5bb_cb097b6f-767c-4c36-bd93-6d3834dcfd91.webp?v=1714971088","width":2000},{"alt":null,"id":23896525897827,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59b684e569fe955ad9e6431c717a7da86e747e68_334e17c7-8fde-46b7-ba5e-8f94a04d3665.webp?v=1714971090"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59b684e569fe955ad9e6431c717a7da86e747e68_334e17c7-8fde-46b7-ba5e-8f94a04d3665.webp?v=1714971090","width":2000},{"alt":null,"id":23896526684259,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a8838bd93a10dae83507136e91942e894c7bd77_3548817a-b3e3-4bac-919c-9610b8d4c93b.webp?v=1714971092"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a8838bd93a10dae83507136e91942e894c7bd77_3548817a-b3e3-4bac-919c-9610b8d4c93b.webp?v=1714971092","width":2000},{"alt":null,"id":23896527011939,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65319cd21d9805bf4634d5d394a2a79b632648a0_73648508-8475-4775-9b43-75dd7fb9de1a.webp?v=1714971094"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65319cd21d9805bf4634d5d394a2a79b632648a0_73648508-8475-4775-9b43-75dd7fb9de1a.webp?v=1714971094","width":2000},{"alt":null,"id":23896527470691,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b02e0d0c40a94a377bb302be529725fd52299a43_4564438c-ca4e-407b-aeed-bc4414caec74.webp?v=1714971097"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b02e0d0c40a94a377bb302be529725fd52299a43_4564438c-ca4e-407b-aeed-bc4414caec74.webp?v=1714971097","width":2000},{"alt":null,"id":23896527994979,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/441c2003e908a1d4b0dec47e209941afcc15977d_500aca8a-56ed-4a5a-8f53-d752c935f24c.webp?v=1714971099"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/441c2003e908a1d4b0dec47e209941afcc15977d_500aca8a-56ed-4a5a-8f53-d752c935f24c.webp?v=1714971099","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41917044916323,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PB19","requires_shipping":true,"taxable":true,"featured_image":{"id":31491117383779,"product_id":7416063131747,"position":3,"created_at":"2024-05-06T12:51:25+08:00","updated_at":"2024-05-06T12:51:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c004c12f1b3e93fe74e1183405edd780cd89ad1d_0304e207-73f2-489b-aaf7-93d8d60e86b8.webp?v=1714971085","variant_ids":[41917044916323]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS 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":"NPB0108624-PB19","featured_media":{"alt":null,"id":23896524783715,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c004c12f1b3e93fe74e1183405edd780cd89ad1d_0304e207-73f2-489b-aaf7-93d8d60e86b8.webp?v=1714971085"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41917044916323,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PB19","requires_shipping":true,"taxable":true,"featured_image":{"id":31491117383779,"product_id":7416063131747,"position":3,"created_at":"2024-05-06T12:51:25+08:00","updated_at":"2024-05-06T12:51:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c004c12f1b3e93fe74e1183405edd780cd89ad1d_0304e207-73f2-489b-aaf7-93d8d60e86b8.webp?v=1714971085","variant_ids":[41917044916323]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS 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":"NPB0108624-PB19","featured_media":{"alt":null,"id":23896524783715,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c004c12f1b3e93fe74e1183405edd780cd89ad1d_0304e207-73f2-489b-aaf7-93d8d60e86b8.webp?v=1714971085"}},"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: "停產" }