$product = {"id":7415976362083,"title":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵-大臉系列","handle":"iphone-xs-max-mod-nx-printable-pb77","description":null,"published_at":"2024-06-11T16:49:25+08:00","created_at":"2024-05-06T12:35:16+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":41916121546851,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PB77","requires_shipping":true,"taxable":true,"featured_image":{"id":31490884141155,"product_id":7415976362083,"position":9,"created_at":"2024-05-06T12:35:37+08:00","updated_at":"2024-05-06T12:35:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a509f506402fd256ac95bb924af46a9ab5a7456_43499611-9125-45fa-b633-0954c60151a3.webp?v=1714970137","variant_ids":[41916121546851]},"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-PB77","featured_media":{"alt":null,"id":23896291213411,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a509f506402fd256ac95bb924af46a9ab5a7456_43499611-9125-45fa-b633-0954c60151a3.webp?v=1714970137"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8e843a79f8a1934bd587c4002a025ddc200c626_c6b73138-868e-467c-82e4-5dd04055f8d3.webp?v=1714970119","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07b13f0f08cc6d4008e0e570a1d8d8df692fdfa0_1437438d-325d-4c61-8bc0-e66e4ac6caac.webp?v=1714970121","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/458c15b1bd2646b04ad1cc60bacd90092c9e03c1_1ca732e3-3a1f-40a2-be9c-2bcc8bc7fe21.webp?v=1714970123","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d4569c324a60ee95fd9ba62dd2a82b9d459db8c_a1195cd3-c5b4-4efb-bfb6-c0e093719f37.webp?v=1714970125","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bceec4fd5a3ad948dcc4d7cac0b9ccf526fd9365_b53d809f-403a-4e8d-9dc5-3ad634a92750.webp?v=1714970127","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/728f9aa623915e977fbe8c2ef5ea76374586a84c_c22cb9bf-19af-4f4a-a4f1-703b8e41c9b3.webp?v=1714970130","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/210fc0ea79c4c2d93455090dc0344dc76ec4f44c_3df7663c-f8dd-448a-9bff-d16be7064b8b.webp?v=1714970132","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c547c2ba84599dda96e58a681f05368a805db0a_7553d96a-49dd-4df5-911a-99cb0b2afc38.webp?v=1714970134","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a509f506402fd256ac95bb924af46a9ab5a7456_43499611-9125-45fa-b633-0954c60151a3.webp?v=1714970137","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd39a4e832e916cbd59fafb1e470fd54c1e5b27d_40f398ee-6042-4d04-a74e-d63670067382.webp?v=1714970139"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8e843a79f8a1934bd587c4002a025ddc200c626_c6b73138-868e-467c-82e4-5dd04055f8d3.webp?v=1714970119","options":["color"],"media":[{"alt":null,"id":23896286724195,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8e843a79f8a1934bd587c4002a025ddc200c626_c6b73138-868e-467c-82e4-5dd04055f8d3.webp?v=1714970119"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8e843a79f8a1934bd587c4002a025ddc200c626_c6b73138-868e-467c-82e4-5dd04055f8d3.webp?v=1714970119","width":2000},{"alt":null,"id":23896287641699,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07b13f0f08cc6d4008e0e570a1d8d8df692fdfa0_1437438d-325d-4c61-8bc0-e66e4ac6caac.webp?v=1714970121"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07b13f0f08cc6d4008e0e570a1d8d8df692fdfa0_1437438d-325d-4c61-8bc0-e66e4ac6caac.webp?v=1714970121","width":2000},{"alt":null,"id":23896288034915,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/458c15b1bd2646b04ad1cc60bacd90092c9e03c1_1ca732e3-3a1f-40a2-be9c-2bcc8bc7fe21.webp?v=1714970123"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/458c15b1bd2646b04ad1cc60bacd90092c9e03c1_1ca732e3-3a1f-40a2-be9c-2bcc8bc7fe21.webp?v=1714970123","width":2000},{"alt":null,"id":23896288526435,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d4569c324a60ee95fd9ba62dd2a82b9d459db8c_a1195cd3-c5b4-4efb-bfb6-c0e093719f37.webp?v=1714970125"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d4569c324a60ee95fd9ba62dd2a82b9d459db8c_a1195cd3-c5b4-4efb-bfb6-c0e093719f37.webp?v=1714970125","width":2000},{"alt":null,"id":23896289050723,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bceec4fd5a3ad948dcc4d7cac0b9ccf526fd9365_b53d809f-403a-4e8d-9dc5-3ad634a92750.webp?v=1714970127"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bceec4fd5a3ad948dcc4d7cac0b9ccf526fd9365_b53d809f-403a-4e8d-9dc5-3ad634a92750.webp?v=1714970127","width":2000},{"alt":null,"id":23896289771619,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/728f9aa623915e977fbe8c2ef5ea76374586a84c_c22cb9bf-19af-4f4a-a4f1-703b8e41c9b3.webp?v=1714970130"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/728f9aa623915e977fbe8c2ef5ea76374586a84c_c22cb9bf-19af-4f4a-a4f1-703b8e41c9b3.webp?v=1714970130","width":2000},{"alt":null,"id":23896290328675,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/210fc0ea79c4c2d93455090dc0344dc76ec4f44c_3df7663c-f8dd-448a-9bff-d16be7064b8b.webp?v=1714970132"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/210fc0ea79c4c2d93455090dc0344dc76ec4f44c_3df7663c-f8dd-448a-9bff-d16be7064b8b.webp?v=1714970132","width":2000},{"alt":null,"id":23896290787427,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c547c2ba84599dda96e58a681f05368a805db0a_7553d96a-49dd-4df5-911a-99cb0b2afc38.webp?v=1714970134"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c547c2ba84599dda96e58a681f05368a805db0a_7553d96a-49dd-4df5-911a-99cb0b2afc38.webp?v=1714970134","width":2000},{"alt":null,"id":23896291213411,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a509f506402fd256ac95bb924af46a9ab5a7456_43499611-9125-45fa-b633-0954c60151a3.webp?v=1714970137"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a509f506402fd256ac95bb924af46a9ab5a7456_43499611-9125-45fa-b633-0954c60151a3.webp?v=1714970137","width":2000},{"alt":null,"id":23896292393059,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd39a4e832e916cbd59fafb1e470fd54c1e5b27d_40f398ee-6042-4d04-a74e-d63670067382.webp?v=1714970139"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd39a4e832e916cbd59fafb1e470fd54c1e5b27d_40f398ee-6042-4d04-a74e-d63670067382.webp?v=1714970139","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41916121546851,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PB77","requires_shipping":true,"taxable":true,"featured_image":{"id":31490884141155,"product_id":7415976362083,"position":9,"created_at":"2024-05-06T12:35:37+08:00","updated_at":"2024-05-06T12:35:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a509f506402fd256ac95bb924af46a9ab5a7456_43499611-9125-45fa-b633-0954c60151a3.webp?v=1714970137","variant_ids":[41916121546851]},"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-PB77","featured_media":{"alt":null,"id":23896291213411,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a509f506402fd256ac95bb924af46a9ab5a7456_43499611-9125-45fa-b633-0954c60151a3.webp?v=1714970137"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41916121546851,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PB77","requires_shipping":true,"taxable":true,"featured_image":{"id":31490884141155,"product_id":7415976362083,"position":9,"created_at":"2024-05-06T12:35:37+08:00","updated_at":"2024-05-06T12:35:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a509f506402fd256ac95bb924af46a9ab5a7456_43499611-9125-45fa-b633-0954c60151a3.webp?v=1714970137","variant_ids":[41916121546851]},"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-PB77","featured_media":{"alt":null,"id":23896291213411,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a509f506402fd256ac95bb924af46a9ab5a7456_43499611-9125-45fa-b633-0954c60151a3.webp?v=1714970137"}},"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: "停產" }