$product = {"id":7415880679523,"title":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章1-潮流系列","handle":"iphone-xs-max-mod-nx-printable-pb46","description":null,"published_at":"2024-06-11T16:46:55+08:00","created_at":"2024-05-06T12:17:10+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":41915142799459,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PB46","requires_shipping":true,"taxable":true,"featured_image":{"id":31490641526883,"product_id":7415880679523,"position":3,"created_at":"2024-05-06T12:17:19+08:00","updated_at":"2024-05-06T12:17:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a23013d7b822c3e0db63e1e9393b1cb4be3105a_1f23ee5e-07aa-4b7b-9abb-84033acadf8a.webp?v=1714969039","variant_ids":[41915142799459]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章1-潮流系列 - 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-PB46","featured_media":{"alt":null,"id":23896047976547,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a23013d7b822c3e0db63e1e9393b1cb4be3105a_1f23ee5e-07aa-4b7b-9abb-84033acadf8a.webp?v=1714969039"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b6261b91d4db8971a8d11bd7249ebf60eb08da1_8b18fed9-9864-4172-8256-c4a18708bc68.webp?v=1714969033","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7524c5e577534fcee57ed85a9f263d29b39c09df_af36fcea-736c-4066-8eeb-44fbee558551.webp?v=1714969036","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a23013d7b822c3e0db63e1e9393b1cb4be3105a_1f23ee5e-07aa-4b7b-9abb-84033acadf8a.webp?v=1714969039","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46f9e0c1df774014138ad8ad17f749d80904bc2e_d704120d-6bd0-4d95-81e4-11cca4e45526.webp?v=1714969041","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b6c684b7596eff0cc23913ff268ca1b0726df66_76bec467-6475-447d-a18d-5df94f9729c9.webp?v=1714969044","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c8a4f3fef03d7a162a8bf5938153ff0a32e4f7b_00eb2104-d18d-481b-ac56-2d121db4e6b0.webp?v=1714969046","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5c46d2f9da5a4fd2abab78122aa02031b02ce00_83213419-4321-4a88-b7de-bb29a32bcbd0.webp?v=1714969049","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6cce80da50f710824e43f636a8e6d43a486051ab_2334e20a-d60c-4e53-b827-0c3b7e447a99.webp?v=1714969051","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8caac139d7a175509be59350c92cd6838c2572f_60d576b7-1167-4248-bff6-ca1e8ff83c09.webp?v=1714969055","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79d5c5891fd4b1a06c39d397077824345d57490e_7a8dc191-0cd4-4606-a216-8514d6e21353.webp?v=1714969057"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b6261b91d4db8971a8d11bd7249ebf60eb08da1_8b18fed9-9864-4172-8256-c4a18708bc68.webp?v=1714969033","options":["color"],"media":[{"alt":null,"id":23896046960739,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b6261b91d4db8971a8d11bd7249ebf60eb08da1_8b18fed9-9864-4172-8256-c4a18708bc68.webp?v=1714969033"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b6261b91d4db8971a8d11bd7249ebf60eb08da1_8b18fed9-9864-4172-8256-c4a18708bc68.webp?v=1714969033","width":2000},{"alt":null,"id":23896047386723,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7524c5e577534fcee57ed85a9f263d29b39c09df_af36fcea-736c-4066-8eeb-44fbee558551.webp?v=1714969036"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7524c5e577534fcee57ed85a9f263d29b39c09df_af36fcea-736c-4066-8eeb-44fbee558551.webp?v=1714969036","width":2000},{"alt":null,"id":23896047976547,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a23013d7b822c3e0db63e1e9393b1cb4be3105a_1f23ee5e-07aa-4b7b-9abb-84033acadf8a.webp?v=1714969039"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a23013d7b822c3e0db63e1e9393b1cb4be3105a_1f23ee5e-07aa-4b7b-9abb-84033acadf8a.webp?v=1714969039","width":2000},{"alt":null,"id":23896048435299,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46f9e0c1df774014138ad8ad17f749d80904bc2e_d704120d-6bd0-4d95-81e4-11cca4e45526.webp?v=1714969041"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46f9e0c1df774014138ad8ad17f749d80904bc2e_d704120d-6bd0-4d95-81e4-11cca4e45526.webp?v=1714969041","width":2000},{"alt":null,"id":23896048894051,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b6c684b7596eff0cc23913ff268ca1b0726df66_76bec467-6475-447d-a18d-5df94f9729c9.webp?v=1714969044"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b6c684b7596eff0cc23913ff268ca1b0726df66_76bec467-6475-447d-a18d-5df94f9729c9.webp?v=1714969044","width":2000},{"alt":null,"id":23896049451107,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c8a4f3fef03d7a162a8bf5938153ff0a32e4f7b_00eb2104-d18d-481b-ac56-2d121db4e6b0.webp?v=1714969046"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c8a4f3fef03d7a162a8bf5938153ff0a32e4f7b_00eb2104-d18d-481b-ac56-2d121db4e6b0.webp?v=1714969046","width":2000},{"alt":null,"id":23896050106467,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5c46d2f9da5a4fd2abab78122aa02031b02ce00_83213419-4321-4a88-b7de-bb29a32bcbd0.webp?v=1714969049"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5c46d2f9da5a4fd2abab78122aa02031b02ce00_83213419-4321-4a88-b7de-bb29a32bcbd0.webp?v=1714969049","width":2000},{"alt":null,"id":23896050630755,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6cce80da50f710824e43f636a8e6d43a486051ab_2334e20a-d60c-4e53-b827-0c3b7e447a99.webp?v=1714969051"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6cce80da50f710824e43f636a8e6d43a486051ab_2334e20a-d60c-4e53-b827-0c3b7e447a99.webp?v=1714969051","width":2000},{"alt":null,"id":23896051253347,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8caac139d7a175509be59350c92cd6838c2572f_60d576b7-1167-4248-bff6-ca1e8ff83c09.webp?v=1714969055"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8caac139d7a175509be59350c92cd6838c2572f_60d576b7-1167-4248-bff6-ca1e8ff83c09.webp?v=1714969055","width":2000},{"alt":null,"id":23896051810403,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79d5c5891fd4b1a06c39d397077824345d57490e_7a8dc191-0cd4-4606-a216-8514d6e21353.webp?v=1714969057"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79d5c5891fd4b1a06c39d397077824345d57490e_7a8dc191-0cd4-4606-a216-8514d6e21353.webp?v=1714969057","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41915142799459,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PB46","requires_shipping":true,"taxable":true,"featured_image":{"id":31490641526883,"product_id":7415880679523,"position":3,"created_at":"2024-05-06T12:17:19+08:00","updated_at":"2024-05-06T12:17:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a23013d7b822c3e0db63e1e9393b1cb4be3105a_1f23ee5e-07aa-4b7b-9abb-84033acadf8a.webp?v=1714969039","variant_ids":[41915142799459]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章1-潮流系列 - 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-PB46","featured_media":{"alt":null,"id":23896047976547,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a23013d7b822c3e0db63e1e9393b1cb4be3105a_1f23ee5e-07aa-4b7b-9abb-84033acadf8a.webp?v=1714969039"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41915142799459,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PB46","requires_shipping":true,"taxable":true,"featured_image":{"id":31490641526883,"product_id":7415880679523,"position":3,"created_at":"2024-05-06T12:17:19+08:00","updated_at":"2024-05-06T12:17:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a23013d7b822c3e0db63e1e9393b1cb4be3105a_1f23ee5e-07aa-4b7b-9abb-84033acadf8a.webp?v=1714969039","variant_ids":[41915142799459]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章1-潮流系列 - 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-PB46","featured_media":{"alt":null,"id":23896047976547,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a23013d7b822c3e0db63e1e9393b1cb4be3105a_1f23ee5e-07aa-4b7b-9abb-84033acadf8a.webp?v=1714969039"}},"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: "停產" }