$product = {"id":7416064639075,"title":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - Pixel Jeff 皮傑 - 街頭潮流","handle":"iphone-xs-max-mod-nx-printable-hq06","description":null,"published_at":"2024-06-11T16:51:47+08:00","created_at":"2024-05-06T12:51:32+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Pixel Jeff 皮傑","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-pixeljeff","device-iPhone XS Max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-pixeljeff","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":41917061333091,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-HQ06","requires_shipping":true,"taxable":true,"featured_image":{"id":31491120070755,"product_id":7416064639075,"position":2,"created_at":"2024-05-06T12:51:37+08:00","updated_at":"2024-05-06T12:51:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23db06a7cc9b8a9e8b13e5bd11c5daea9077b5fe_b8f60d90-b618-4b24-9019-12dc041391df.webp?v=1714971097","variant_ids":[41917061333091]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - Pixel Jeff 皮傑 - 街頭潮流 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108624-HQ06","featured_media":{"alt":null,"id":23896527503459,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23db06a7cc9b8a9e8b13e5bd11c5daea9077b5fe_b8f60d90-b618-4b24-9019-12dc041391df.webp?v=1714971097"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0dd09e2b84371e41f880c0dc35f60fc76b090ecd_eaaabbad-5728-4cb8-83cd-eb0db4bdbb51.webp?v=1714971095","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23db06a7cc9b8a9e8b13e5bd11c5daea9077b5fe_b8f60d90-b618-4b24-9019-12dc041391df.webp?v=1714971097","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7288c9667812ab5295384c70aff2041b1f5f8292_2381e8d0-464e-407d-ac00-e635123219f3.webp?v=1714971099","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac2730eb9ca632106cc74340363b3d0e096b9145_05419e85-d15d-4e58-8490-bdc8da9cc049.webp?v=1714971102","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f88b0b6e15dd92787434740431b965722c21235c_0d010415-ae02-46ad-8de3-3bbb5d1f15ed.webp?v=1714971104","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e7457a8370cf386e5a7c295da0471350f6a09d7_def888d2-2aa8-4a09-b590-fc9bf8540624.webp?v=1714971107","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b400e2906ec1e9f0639a295b2438964e0814666d_e440249a-80fc-46de-b649-6c6db9551098.webp?v=1714971110","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4095fcf80ee4d7b014223c67d74a9727ae3c88b0_8d1306eb-5bb9-4cd9-97bb-06d2f648a583.webp?v=1714971112","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d0e0865204e52ec9ccd77351eed2604167026a4_1fcc497e-3efb-4f7e-8f8f-e5f5cc201226.webp?v=1714971114","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2700a29f9ae88f16a0721bea57cb907b282bc13_80478472-ce1a-4fae-b183-4f04991f2fa2.webp?v=1714971117"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0dd09e2b84371e41f880c0dc35f60fc76b090ecd_eaaabbad-5728-4cb8-83cd-eb0db4bdbb51.webp?v=1714971095","options":["color"],"media":[{"alt":null,"id":23896527044707,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0dd09e2b84371e41f880c0dc35f60fc76b090ecd_eaaabbad-5728-4cb8-83cd-eb0db4bdbb51.webp?v=1714971095"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0dd09e2b84371e41f880c0dc35f60fc76b090ecd_eaaabbad-5728-4cb8-83cd-eb0db4bdbb51.webp?v=1714971095","width":2000},{"alt":null,"id":23896527503459,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23db06a7cc9b8a9e8b13e5bd11c5daea9077b5fe_b8f60d90-b618-4b24-9019-12dc041391df.webp?v=1714971097"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23db06a7cc9b8a9e8b13e5bd11c5daea9077b5fe_b8f60d90-b618-4b24-9019-12dc041391df.webp?v=1714971097","width":2000},{"alt":null,"id":23896528060515,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7288c9667812ab5295384c70aff2041b1f5f8292_2381e8d0-464e-407d-ac00-e635123219f3.webp?v=1714971099"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7288c9667812ab5295384c70aff2041b1f5f8292_2381e8d0-464e-407d-ac00-e635123219f3.webp?v=1714971099","width":2000},{"alt":null,"id":23896528683107,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac2730eb9ca632106cc74340363b3d0e096b9145_05419e85-d15d-4e58-8490-bdc8da9cc049.webp?v=1714971102"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac2730eb9ca632106cc74340363b3d0e096b9145_05419e85-d15d-4e58-8490-bdc8da9cc049.webp?v=1714971102","width":2000},{"alt":null,"id":23896529567843,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f88b0b6e15dd92787434740431b965722c21235c_0d010415-ae02-46ad-8de3-3bbb5d1f15ed.webp?v=1714971104"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f88b0b6e15dd92787434740431b965722c21235c_0d010415-ae02-46ad-8de3-3bbb5d1f15ed.webp?v=1714971104","width":2000},{"alt":null,"id":23896530157667,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e7457a8370cf386e5a7c295da0471350f6a09d7_def888d2-2aa8-4a09-b590-fc9bf8540624.webp?v=1714971107"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e7457a8370cf386e5a7c295da0471350f6a09d7_def888d2-2aa8-4a09-b590-fc9bf8540624.webp?v=1714971107","width":2000},{"alt":null,"id":23896530649187,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b400e2906ec1e9f0639a295b2438964e0814666d_e440249a-80fc-46de-b649-6c6db9551098.webp?v=1714971110"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b400e2906ec1e9f0639a295b2438964e0814666d_e440249a-80fc-46de-b649-6c6db9551098.webp?v=1714971110","width":2000},{"alt":null,"id":23896532090979,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4095fcf80ee4d7b014223c67d74a9727ae3c88b0_8d1306eb-5bb9-4cd9-97bb-06d2f648a583.webp?v=1714971112"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4095fcf80ee4d7b014223c67d74a9727ae3c88b0_8d1306eb-5bb9-4cd9-97bb-06d2f648a583.webp?v=1714971112","width":2000},{"alt":null,"id":23896532615267,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d0e0865204e52ec9ccd77351eed2604167026a4_1fcc497e-3efb-4f7e-8f8f-e5f5cc201226.webp?v=1714971114"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d0e0865204e52ec9ccd77351eed2604167026a4_1fcc497e-3efb-4f7e-8f8f-e5f5cc201226.webp?v=1714971114","width":2000},{"alt":null,"id":23896533631075,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2700a29f9ae88f16a0721bea57cb907b282bc13_80478472-ce1a-4fae-b183-4f04991f2fa2.webp?v=1714971117"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2700a29f9ae88f16a0721bea57cb907b282bc13_80478472-ce1a-4fae-b183-4f04991f2fa2.webp?v=1714971117","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41917061333091,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-HQ06","requires_shipping":true,"taxable":true,"featured_image":{"id":31491120070755,"product_id":7416064639075,"position":2,"created_at":"2024-05-06T12:51:37+08:00","updated_at":"2024-05-06T12:51:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23db06a7cc9b8a9e8b13e5bd11c5daea9077b5fe_b8f60d90-b618-4b24-9019-12dc041391df.webp?v=1714971097","variant_ids":[41917061333091]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - Pixel Jeff 皮傑 - 街頭潮流 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108624-HQ06","featured_media":{"alt":null,"id":23896527503459,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23db06a7cc9b8a9e8b13e5bd11c5daea9077b5fe_b8f60d90-b618-4b24-9019-12dc041391df.webp?v=1714971097"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41917061333091,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-HQ06","requires_shipping":true,"taxable":true,"featured_image":{"id":31491120070755,"product_id":7416064639075,"position":2,"created_at":"2024-05-06T12:51:37+08:00","updated_at":"2024-05-06T12:51:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23db06a7cc9b8a9e8b13e5bd11c5daea9077b5fe_b8f60d90-b618-4b24-9019-12dc041391df.webp?v=1714971097","variant_ids":[41917061333091]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - Pixel Jeff 皮傑 - 街頭潮流 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108624-HQ06","featured_media":{"alt":null,"id":23896527503459,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23db06a7cc9b8a9e8b13e5bd11c5daea9077b5fe_b8f60d90-b618-4b24-9019-12dc041391df.webp?v=1714971097"}},"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: "停產" }