$product = {"id":7408506863715,"title":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士\u0026尤達-剪紙系列","handle":"iphone-12-mini-mod-nx-printable-pb54","description":null,"published_at":"2024-06-11T16:39:10+08:00","created_at":"2024-05-03T15:40: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 12 mini","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":41886267211875,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-PB54","requires_shipping":true,"taxable":true,"featured_image":{"id":31472454697059,"product_id":7408506863715,"position":5,"created_at":"2024-05-03T15:40:22+08:00","updated_at":"2024-05-03T15:40:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2eb4c69ae754e31626d7b0ec4707dbf0ac5568cd_b211eb79-e5ff-4108-b0d8-2be093b036fa.webp?v=1714722022","variant_ids":[41886267211875]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0118424-PB54","featured_media":{"alt":null,"id":23877371756643,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2eb4c69ae754e31626d7b0ec4707dbf0ac5568cd_b211eb79-e5ff-4108-b0d8-2be093b036fa.webp?v=1714722022"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad8ed5aff4a93c14e5cc09a19ec109b241bde9dc_b33721ad-bf8a-4131-bad4-a6af3827e9a7.webp?v=1714722013","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c948ba41e833f870682f3db4e33f2434ffd05c5_42835a64-714e-4456-a183-82d43b29f8f4.webp?v=1714722015","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8dfc386609db27bb90e2d9d4530b85fcd7f99909_8a60ba53-9094-4289-ae4a-089428e89d61.webp?v=1714722017","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/318c1a818b221da79249ea56832c311ba81da90e_813df8fd-1aaa-4fc0-b197-f597552a7ac8.webp?v=1714722020","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2eb4c69ae754e31626d7b0ec4707dbf0ac5568cd_b211eb79-e5ff-4108-b0d8-2be093b036fa.webp?v=1714722022","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09b56790e8d6f8ef34d34605483539f781e2d8fe_3d8fdf4f-90cf-49c0-acd4-77489bef9b0e.webp?v=1714722024","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fcbd0eebab34e2b9b13441051d1b4e799d1ee60_41fb6c42-d7bc-43ce-b70f-6fc5eecdea03.webp?v=1714722026","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73739f762797cfe7b16315e846a0db4327574d30_5ce07934-b54a-4a76-a629-c37f610a8284.webp?v=1714722029","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5453e81acd38255f8e36c077efd0ddaae08db9a_ee899188-6377-41e8-b011-049c2b7c3d80.webp?v=1714722031","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac3fbff5ccf5d5f1fcb7b7aad3aa45701f0d5265_e3eda230-1583-4785-98c1-9bf3efa2e64a.webp?v=1714722033","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d20599d4c37403a54e6974e190b00adecfcc1ed_3c71e054-ebf6-4575-a0cb-45cdceebd125.webp?v=1714722036"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad8ed5aff4a93c14e5cc09a19ec109b241bde9dc_b33721ad-bf8a-4131-bad4-a6af3827e9a7.webp?v=1714722013","options":["color"],"media":[{"alt":null,"id":23877369725027,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad8ed5aff4a93c14e5cc09a19ec109b241bde9dc_b33721ad-bf8a-4131-bad4-a6af3827e9a7.webp?v=1714722013"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad8ed5aff4a93c14e5cc09a19ec109b241bde9dc_b33721ad-bf8a-4131-bad4-a6af3827e9a7.webp?v=1714722013","width":2000},{"alt":null,"id":23877370249315,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c948ba41e833f870682f3db4e33f2434ffd05c5_42835a64-714e-4456-a183-82d43b29f8f4.webp?v=1714722015"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c948ba41e833f870682f3db4e33f2434ffd05c5_42835a64-714e-4456-a183-82d43b29f8f4.webp?v=1714722015","width":2000},{"alt":null,"id":23877370740835,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8dfc386609db27bb90e2d9d4530b85fcd7f99909_8a60ba53-9094-4289-ae4a-089428e89d61.webp?v=1714722017"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8dfc386609db27bb90e2d9d4530b85fcd7f99909_8a60ba53-9094-4289-ae4a-089428e89d61.webp?v=1714722017","width":2000},{"alt":null,"id":23877371265123,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/318c1a818b221da79249ea56832c311ba81da90e_813df8fd-1aaa-4fc0-b197-f597552a7ac8.webp?v=1714722020"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/318c1a818b221da79249ea56832c311ba81da90e_813df8fd-1aaa-4fc0-b197-f597552a7ac8.webp?v=1714722020","width":2000},{"alt":null,"id":23877371756643,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2eb4c69ae754e31626d7b0ec4707dbf0ac5568cd_b211eb79-e5ff-4108-b0d8-2be093b036fa.webp?v=1714722022"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2eb4c69ae754e31626d7b0ec4707dbf0ac5568cd_b211eb79-e5ff-4108-b0d8-2be093b036fa.webp?v=1714722022","width":2000},{"alt":null,"id":23877372182627,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09b56790e8d6f8ef34d34605483539f781e2d8fe_3d8fdf4f-90cf-49c0-acd4-77489bef9b0e.webp?v=1714722024"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09b56790e8d6f8ef34d34605483539f781e2d8fe_3d8fdf4f-90cf-49c0-acd4-77489bef9b0e.webp?v=1714722024","width":2000},{"alt":null,"id":23877373165667,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fcbd0eebab34e2b9b13441051d1b4e799d1ee60_41fb6c42-d7bc-43ce-b70f-6fc5eecdea03.webp?v=1714722026"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fcbd0eebab34e2b9b13441051d1b4e799d1ee60_41fb6c42-d7bc-43ce-b70f-6fc5eecdea03.webp?v=1714722026","width":2000},{"alt":null,"id":23877373689955,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73739f762797cfe7b16315e846a0db4327574d30_5ce07934-b54a-4a76-a629-c37f610a8284.webp?v=1714722029"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73739f762797cfe7b16315e846a0db4327574d30_5ce07934-b54a-4a76-a629-c37f610a8284.webp?v=1714722029","width":2000},{"alt":null,"id":23877374214243,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5453e81acd38255f8e36c077efd0ddaae08db9a_ee899188-6377-41e8-b011-049c2b7c3d80.webp?v=1714722031"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5453e81acd38255f8e36c077efd0ddaae08db9a_ee899188-6377-41e8-b011-049c2b7c3d80.webp?v=1714722031","width":2000},{"alt":null,"id":23877374672995,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac3fbff5ccf5d5f1fcb7b7aad3aa45701f0d5265_e3eda230-1583-4785-98c1-9bf3efa2e64a.webp?v=1714722033"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac3fbff5ccf5d5f1fcb7b7aad3aa45701f0d5265_e3eda230-1583-4785-98c1-9bf3efa2e64a.webp?v=1714722033","width":2000},{"alt":null,"id":23877375230051,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d20599d4c37403a54e6974e190b00adecfcc1ed_3c71e054-ebf6-4575-a0cb-45cdceebd125.webp?v=1714722036"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d20599d4c37403a54e6974e190b00adecfcc1ed_3c71e054-ebf6-4575-a0cb-45cdceebd125.webp?v=1714722036","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41886267211875,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-PB54","requires_shipping":true,"taxable":true,"featured_image":{"id":31472454697059,"product_id":7408506863715,"position":5,"created_at":"2024-05-03T15:40:22+08:00","updated_at":"2024-05-03T15:40:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2eb4c69ae754e31626d7b0ec4707dbf0ac5568cd_b211eb79-e5ff-4108-b0d8-2be093b036fa.webp?v=1714722022","variant_ids":[41886267211875]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0118424-PB54","featured_media":{"alt":null,"id":23877371756643,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2eb4c69ae754e31626d7b0ec4707dbf0ac5568cd_b211eb79-e5ff-4108-b0d8-2be093b036fa.webp?v=1714722022"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41886267211875,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-PB54","requires_shipping":true,"taxable":true,"featured_image":{"id":31472454697059,"product_id":7408506863715,"position":5,"created_at":"2024-05-03T15:40:22+08:00","updated_at":"2024-05-03T15:40:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2eb4c69ae754e31626d7b0ec4707dbf0ac5568cd_b211eb79-e5ff-4108-b0d8-2be093b036fa.webp?v=1714722022","variant_ids":[41886267211875]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0118424-PB54","featured_media":{"alt":null,"id":23877371756643,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2eb4c69ae754e31626d7b0ec4707dbf0ac5568cd_b211eb79-e5ff-4108-b0d8-2be093b036fa.webp?v=1714722022"}},"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: "停產" }