$product = {"id":7408484057187,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵\u0026光劍-潮流系列","handle":"iphone-12-pro-max-mod-nx-printable-pb44","description":null,"published_at":"2024-06-11T16:38:31+08:00","created_at":"2024-05-03T15:35:40+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":41886003855459,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB44","requires_shipping":true,"taxable":true,"featured_image":{"id":31472396435555,"product_id":7408484057187,"position":9,"created_at":"2024-05-03T15:36:02+08:00","updated_at":"2024-05-03T15:36:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b4eb0e9bb4bfa8d3ba362b228e0840d6e338c96_da8433d3-e742-4c55-9ea5-24275eeb91ce.webp?v=1714721762","variant_ids":[41886003855459]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵\u0026光劍-潮流系列 - 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-PB44","featured_media":{"alt":null,"id":23877313364067,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b4eb0e9bb4bfa8d3ba362b228e0840d6e338c96_da8433d3-e742-4c55-9ea5-24275eeb91ce.webp?v=1714721762"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33d2460cdc03d05e233b379c440cb9cda88827ef_d4ac6a45-5f8b-4640-9b16-f7b161794d3e.webp?v=1714721743","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d20762536b4fcc708905b92a7dfaa9de9c8a647e_ef8ce367-c587-438c-92d8-a8c75e55eb40.webp?v=1714721745","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d314c0b3da8dda1c47c5af24904d46d2169a284_75575468-8f81-436b-9b5f-8cc9a7b02168.webp?v=1714721748","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b8ea91f963dff1ff4557b264c231ab960680d7d_2ae9a6b8-e41e-4845-a949-cf42391ec926.webp?v=1714721750","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c19b994f8707f95b3fbc9ba325f036efa4d8d876_17ce279d-1f4c-4145-af8a-30d4dd7b1af3.webp?v=1714721752","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a969fe2ca91dbc357a55e4e04a5b4dbfa2c12d3_56f9bd86-d71e-46d1-8fea-4fc8d373f928.webp?v=1714721755","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd76b2bdef01da6cdd3c4ef5ebca3ff7a8e13d46_f15b06e4-33cd-43ef-b99b-a56050512cf0.webp?v=1714721757","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c10754a483385b1076070416466b7c3c6e6c089_6b06771e-d77c-4223-bdab-ba78620a3f39.webp?v=1714721760","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b4eb0e9bb4bfa8d3ba362b228e0840d6e338c96_da8433d3-e742-4c55-9ea5-24275eeb91ce.webp?v=1714721762","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9442637a23b6696fe1d52b86c27eac5df8e3db56_6d6e5904-5bda-4872-8907-42b19f500b30.webp?v=1714721764"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33d2460cdc03d05e233b379c440cb9cda88827ef_d4ac6a45-5f8b-4640-9b16-f7b161794d3e.webp?v=1714721743","options":["color"],"media":[{"alt":null,"id":23877309399139,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33d2460cdc03d05e233b379c440cb9cda88827ef_d4ac6a45-5f8b-4640-9b16-f7b161794d3e.webp?v=1714721743"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33d2460cdc03d05e233b379c440cb9cda88827ef_d4ac6a45-5f8b-4640-9b16-f7b161794d3e.webp?v=1714721743","width":2000},{"alt":null,"id":23877310021731,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d20762536b4fcc708905b92a7dfaa9de9c8a647e_ef8ce367-c587-438c-92d8-a8c75e55eb40.webp?v=1714721745"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d20762536b4fcc708905b92a7dfaa9de9c8a647e_ef8ce367-c587-438c-92d8-a8c75e55eb40.webp?v=1714721745","width":2000},{"alt":null,"id":23877310513251,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d314c0b3da8dda1c47c5af24904d46d2169a284_75575468-8f81-436b-9b5f-8cc9a7b02168.webp?v=1714721748"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d314c0b3da8dda1c47c5af24904d46d2169a284_75575468-8f81-436b-9b5f-8cc9a7b02168.webp?v=1714721748","width":2000},{"alt":null,"id":23877311037539,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b8ea91f963dff1ff4557b264c231ab960680d7d_2ae9a6b8-e41e-4845-a949-cf42391ec926.webp?v=1714721750"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b8ea91f963dff1ff4557b264c231ab960680d7d_2ae9a6b8-e41e-4845-a949-cf42391ec926.webp?v=1714721750","width":2000},{"alt":null,"id":23877311496291,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c19b994f8707f95b3fbc9ba325f036efa4d8d876_17ce279d-1f4c-4145-af8a-30d4dd7b1af3.webp?v=1714721752"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c19b994f8707f95b3fbc9ba325f036efa4d8d876_17ce279d-1f4c-4145-af8a-30d4dd7b1af3.webp?v=1714721752","width":2000},{"alt":null,"id":23877311955043,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a969fe2ca91dbc357a55e4e04a5b4dbfa2c12d3_56f9bd86-d71e-46d1-8fea-4fc8d373f928.webp?v=1714721755"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a969fe2ca91dbc357a55e4e04a5b4dbfa2c12d3_56f9bd86-d71e-46d1-8fea-4fc8d373f928.webp?v=1714721755","width":2000},{"alt":null,"id":23877312413795,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd76b2bdef01da6cdd3c4ef5ebca3ff7a8e13d46_f15b06e4-33cd-43ef-b99b-a56050512cf0.webp?v=1714721757"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd76b2bdef01da6cdd3c4ef5ebca3ff7a8e13d46_f15b06e4-33cd-43ef-b99b-a56050512cf0.webp?v=1714721757","width":2000},{"alt":null,"id":23877312872547,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c10754a483385b1076070416466b7c3c6e6c089_6b06771e-d77c-4223-bdab-ba78620a3f39.webp?v=1714721760"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c10754a483385b1076070416466b7c3c6e6c089_6b06771e-d77c-4223-bdab-ba78620a3f39.webp?v=1714721760","width":2000},{"alt":null,"id":23877313364067,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b4eb0e9bb4bfa8d3ba362b228e0840d6e338c96_da8433d3-e742-4c55-9ea5-24275eeb91ce.webp?v=1714721762"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b4eb0e9bb4bfa8d3ba362b228e0840d6e338c96_da8433d3-e742-4c55-9ea5-24275eeb91ce.webp?v=1714721762","width":2000},{"alt":null,"id":23877313822819,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9442637a23b6696fe1d52b86c27eac5df8e3db56_6d6e5904-5bda-4872-8907-42b19f500b30.webp?v=1714721764"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9442637a23b6696fe1d52b86c27eac5df8e3db56_6d6e5904-5bda-4872-8907-42b19f500b30.webp?v=1714721764","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41886003855459,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB44","requires_shipping":true,"taxable":true,"featured_image":{"id":31472396435555,"product_id":7408484057187,"position":9,"created_at":"2024-05-03T15:36:02+08:00","updated_at":"2024-05-03T15:36:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b4eb0e9bb4bfa8d3ba362b228e0840d6e338c96_da8433d3-e742-4c55-9ea5-24275eeb91ce.webp?v=1714721762","variant_ids":[41886003855459]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵\u0026光劍-潮流系列 - 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-PB44","featured_media":{"alt":null,"id":23877313364067,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b4eb0e9bb4bfa8d3ba362b228e0840d6e338c96_da8433d3-e742-4c55-9ea5-24275eeb91ce.webp?v=1714721762"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41886003855459,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB44","requires_shipping":true,"taxable":true,"featured_image":{"id":31472396435555,"product_id":7408484057187,"position":9,"created_at":"2024-05-03T15:36:02+08:00","updated_at":"2024-05-03T15:36:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b4eb0e9bb4bfa8d3ba362b228e0840d6e338c96_da8433d3-e742-4c55-9ea5-24275eeb91ce.webp?v=1714721762","variant_ids":[41886003855459]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵\u0026光劍-潮流系列 - 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-PB44","featured_media":{"alt":null,"id":23877313364067,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b4eb0e9bb4bfa8d3ba362b228e0840d6e338c96_da8433d3-e742-4c55-9ea5-24275eeb91ce.webp?v=1714721762"}},"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: "停產" }