$product = {"id":7408560341091,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 戰機-日文字系列","handle":"iphone-12-pro-max-mod-nx-printable-pb63","description":null,"published_at":"2024-06-11T16:40:43+08:00","created_at":"2024-05-03T15:50:50+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":41886880858211,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB63","requires_shipping":true,"taxable":true,"featured_image":{"id":31472593797219,"product_id":7408560341091,"position":8,"created_at":"2024-05-03T15:51:10+08:00","updated_at":"2024-05-03T15:51:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b49bdf89c4fa2ac37dcbc88cb9c0442c7e35c20_154686ff-4b09-4bd2-9727-ce2fcd67ae3d.webp?v=1714722670","variant_ids":[41886880858211]},"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-PB63","featured_media":{"alt":null,"id":23877511315555,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b49bdf89c4fa2ac37dcbc88cb9c0442c7e35c20_154686ff-4b09-4bd2-9727-ce2fcd67ae3d.webp?v=1714722670"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6d636ed45678e860d82d56791b556b9097b6761_691ccce5-375f-4395-9dd6-740214147b3d.webp?v=1714722652","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd532c88bcd91c321239a5fbfd10e9e07c112d45_fa02a375-58d6-43e3-98f0-09f8ae3c9a07.webp?v=1714722655","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cabcd62c28f9f0d77cf61b434330972dbd81e67_972d47f9-94c8-4d7c-950a-1d9b95aab344.webp?v=1714722658","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2fd167a1bed9cb3e2f336eb7750e22c9de5e617_4009dd1c-841d-4d13-a9f6-2cb654a4583f.webp?v=1714722660","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc7ff6c7a8ebdcdff1892edb27115036ad63c8f3_1674049b-7122-4a93-be56-1f2760383346.webp?v=1714722662","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d30fb67a87965e1b6b1e7a32d170be09c4bf383_c5459310-ccb4-4ade-ab7d-c7268d4c2ff2.webp?v=1714722665","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd43eefc409f552d2018a7781311b75e0455b62c_3b874743-2004-4aba-8fa6-495856c92a4c.webp?v=1714722667","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b49bdf89c4fa2ac37dcbc88cb9c0442c7e35c20_154686ff-4b09-4bd2-9727-ce2fcd67ae3d.webp?v=1714722670","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75c65c1f317a1c4b3255e88daabb5c1725c39081_20d04d89-7034-4cfc-a6f5-4f3ff97c7ae3.webp?v=1714722672","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b3ac3ea83b17f9d9891c82a8d799170a9149a06_fd60986e-89e0-443f-928c-99bb01fa0767.webp?v=1714722674"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6d636ed45678e860d82d56791b556b9097b6761_691ccce5-375f-4395-9dd6-740214147b3d.webp?v=1714722652","options":["color"],"media":[{"alt":null,"id":23877508104291,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6d636ed45678e860d82d56791b556b9097b6761_691ccce5-375f-4395-9dd6-740214147b3d.webp?v=1714722652"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6d636ed45678e860d82d56791b556b9097b6761_691ccce5-375f-4395-9dd6-740214147b3d.webp?v=1714722652","width":2000},{"alt":null,"id":23877508595811,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd532c88bcd91c321239a5fbfd10e9e07c112d45_fa02a375-58d6-43e3-98f0-09f8ae3c9a07.webp?v=1714722655"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd532c88bcd91c321239a5fbfd10e9e07c112d45_fa02a375-58d6-43e3-98f0-09f8ae3c9a07.webp?v=1714722655","width":2000},{"alt":null,"id":23877509054563,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cabcd62c28f9f0d77cf61b434330972dbd81e67_972d47f9-94c8-4d7c-950a-1d9b95aab344.webp?v=1714722658"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cabcd62c28f9f0d77cf61b434330972dbd81e67_972d47f9-94c8-4d7c-950a-1d9b95aab344.webp?v=1714722658","width":2000},{"alt":null,"id":23877509513315,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2fd167a1bed9cb3e2f336eb7750e22c9de5e617_4009dd1c-841d-4d13-a9f6-2cb654a4583f.webp?v=1714722660"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2fd167a1bed9cb3e2f336eb7750e22c9de5e617_4009dd1c-841d-4d13-a9f6-2cb654a4583f.webp?v=1714722660","width":2000},{"alt":null,"id":23877509808227,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc7ff6c7a8ebdcdff1892edb27115036ad63c8f3_1674049b-7122-4a93-be56-1f2760383346.webp?v=1714722662"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc7ff6c7a8ebdcdff1892edb27115036ad63c8f3_1674049b-7122-4a93-be56-1f2760383346.webp?v=1714722662","width":2000},{"alt":null,"id":23877510332515,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d30fb67a87965e1b6b1e7a32d170be09c4bf383_c5459310-ccb4-4ade-ab7d-c7268d4c2ff2.webp?v=1714722665"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d30fb67a87965e1b6b1e7a32d170be09c4bf383_c5459310-ccb4-4ade-ab7d-c7268d4c2ff2.webp?v=1714722665","width":2000},{"alt":null,"id":23877510791267,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd43eefc409f552d2018a7781311b75e0455b62c_3b874743-2004-4aba-8fa6-495856c92a4c.webp?v=1714722667"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd43eefc409f552d2018a7781311b75e0455b62c_3b874743-2004-4aba-8fa6-495856c92a4c.webp?v=1714722667","width":2000},{"alt":null,"id":23877511315555,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b49bdf89c4fa2ac37dcbc88cb9c0442c7e35c20_154686ff-4b09-4bd2-9727-ce2fcd67ae3d.webp?v=1714722670"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b49bdf89c4fa2ac37dcbc88cb9c0442c7e35c20_154686ff-4b09-4bd2-9727-ce2fcd67ae3d.webp?v=1714722670","width":2000},{"alt":null,"id":23877511905379,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75c65c1f317a1c4b3255e88daabb5c1725c39081_20d04d89-7034-4cfc-a6f5-4f3ff97c7ae3.webp?v=1714722672"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75c65c1f317a1c4b3255e88daabb5c1725c39081_20d04d89-7034-4cfc-a6f5-4f3ff97c7ae3.webp?v=1714722672","width":2000},{"alt":null,"id":23877512396899,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b3ac3ea83b17f9d9891c82a8d799170a9149a06_fd60986e-89e0-443f-928c-99bb01fa0767.webp?v=1714722674"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b3ac3ea83b17f9d9891c82a8d799170a9149a06_fd60986e-89e0-443f-928c-99bb01fa0767.webp?v=1714722674","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41886880858211,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB63","requires_shipping":true,"taxable":true,"featured_image":{"id":31472593797219,"product_id":7408560341091,"position":8,"created_at":"2024-05-03T15:51:10+08:00","updated_at":"2024-05-03T15:51:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b49bdf89c4fa2ac37dcbc88cb9c0442c7e35c20_154686ff-4b09-4bd2-9727-ce2fcd67ae3d.webp?v=1714722670","variant_ids":[41886880858211]},"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-PB63","featured_media":{"alt":null,"id":23877511315555,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b49bdf89c4fa2ac37dcbc88cb9c0442c7e35c20_154686ff-4b09-4bd2-9727-ce2fcd67ae3d.webp?v=1714722670"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41886880858211,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB63","requires_shipping":true,"taxable":true,"featured_image":{"id":31472593797219,"product_id":7408560341091,"position":8,"created_at":"2024-05-03T15:51:10+08:00","updated_at":"2024-05-03T15:51:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b49bdf89c4fa2ac37dcbc88cb9c0442c7e35c20_154686ff-4b09-4bd2-9727-ce2fcd67ae3d.webp?v=1714722670","variant_ids":[41886880858211]},"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-PB63","featured_media":{"alt":null,"id":23877511315555,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b49bdf89c4fa2ac37dcbc88cb9c0442c7e35c20_154686ff-4b09-4bd2-9727-ce2fcd67ae3d.webp?v=1714722670"}},"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: "停產" }