$product = {"id":7408373268579,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 死星-黑白條紋","handle":"iphone-12-pro-max-mod-nx-printable-pb21","description":null,"published_at":"2024-06-11T16:35:27+08:00","created_at":"2024-05-03T15:13:58+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":41884767813731,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB21","requires_shipping":true,"taxable":true,"featured_image":{"id":31472096837731,"product_id":7408373268579,"position":2,"created_at":"2024-05-03T15:14:04+08:00","updated_at":"2024-05-03T15:14:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7b1a4c36dcdbd6e7cf66c40b981c910b863fca8_a17d237d-aa97-453e-8331-ecc147c83020.webp?v=1714720444","variant_ids":[41884767813731]},"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-PB21","featured_media":{"alt":null,"id":23877012226147,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7b1a4c36dcdbd6e7cf66c40b981c910b863fca8_a17d237d-aa97-453e-8331-ecc147c83020.webp?v=1714720444"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/720fd20e62d763ccabf5782d9770e3088639015f_e18f51b5-cc20-4ac1-b348-414c32fb8153.webp?v=1714720441","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7b1a4c36dcdbd6e7cf66c40b981c910b863fca8_a17d237d-aa97-453e-8331-ecc147c83020.webp?v=1714720444","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0585875a7ba79644214ee88aba4cb7e38c6139af_3fc1aec5-8390-49b6-bffa-f18dde661bf2.webp?v=1714720446","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb137863fe6da24ee04e5d3f6d847c9040d95e0d_048a7260-62be-4aa2-8469-86f2c580d197.webp?v=1714720448","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be38198cc13337f255c865e375e9c9bd9ba500bd_8b67bd39-ba76-4b7e-949b-36d8f425a57f.webp?v=1714720451","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea223bf3f8df45cb30aa9fd0b49dd3685ae4de31_60924404-b6ae-4d6b-9c22-4f2127faadfa.webp?v=1714720453","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b270472e0f6393484bd9e8c548a79fb8274bb8e6_5a5aa356-85cd-46e1-ba12-45bda2903663.webp?v=1714720456","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/070b12ecb92132ec2c2e02d9744ed94bbba8c2de_ed1771c9-4c65-46d6-8ff1-bd58ecbd0840.webp?v=1714720458","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/683e619ab5931aa57e9c7800af852407d9b34389_f07551d8-03ee-41e8-9e8a-3f6e930a1618.webp?v=1714720461","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5aff241cfbeda4541756497a1343341403e45de4_9c434bc8-63f2-4416-ae6f-6851f5f86d2d.webp?v=1714720463"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/720fd20e62d763ccabf5782d9770e3088639015f_e18f51b5-cc20-4ac1-b348-414c32fb8153.webp?v=1714720441","options":["color"],"media":[{"alt":null,"id":23877011603555,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/720fd20e62d763ccabf5782d9770e3088639015f_e18f51b5-cc20-4ac1-b348-414c32fb8153.webp?v=1714720441"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/720fd20e62d763ccabf5782d9770e3088639015f_e18f51b5-cc20-4ac1-b348-414c32fb8153.webp?v=1714720441","width":2000},{"alt":null,"id":23877012226147,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7b1a4c36dcdbd6e7cf66c40b981c910b863fca8_a17d237d-aa97-453e-8331-ecc147c83020.webp?v=1714720444"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7b1a4c36dcdbd6e7cf66c40b981c910b863fca8_a17d237d-aa97-453e-8331-ecc147c83020.webp?v=1714720444","width":2000},{"alt":null,"id":23877012389987,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0585875a7ba79644214ee88aba4cb7e38c6139af_3fc1aec5-8390-49b6-bffa-f18dde661bf2.webp?v=1714720446"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0585875a7ba79644214ee88aba4cb7e38c6139af_3fc1aec5-8390-49b6-bffa-f18dde661bf2.webp?v=1714720446","width":2000},{"alt":null,"id":23877013176419,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb137863fe6da24ee04e5d3f6d847c9040d95e0d_048a7260-62be-4aa2-8469-86f2c580d197.webp?v=1714720448"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb137863fe6da24ee04e5d3f6d847c9040d95e0d_048a7260-62be-4aa2-8469-86f2c580d197.webp?v=1714720448","width":2000},{"alt":null,"id":23877013405795,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be38198cc13337f255c865e375e9c9bd9ba500bd_8b67bd39-ba76-4b7e-949b-36d8f425a57f.webp?v=1714720451"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be38198cc13337f255c865e375e9c9bd9ba500bd_8b67bd39-ba76-4b7e-949b-36d8f425a57f.webp?v=1714720451","width":2000},{"alt":null,"id":23877014093923,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea223bf3f8df45cb30aa9fd0b49dd3685ae4de31_60924404-b6ae-4d6b-9c22-4f2127faadfa.webp?v=1714720453"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea223bf3f8df45cb30aa9fd0b49dd3685ae4de31_60924404-b6ae-4d6b-9c22-4f2127faadfa.webp?v=1714720453","width":2000},{"alt":null,"id":23877014585443,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b270472e0f6393484bd9e8c548a79fb8274bb8e6_5a5aa356-85cd-46e1-ba12-45bda2903663.webp?v=1714720456"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b270472e0f6393484bd9e8c548a79fb8274bb8e6_5a5aa356-85cd-46e1-ba12-45bda2903663.webp?v=1714720456","width":2000},{"alt":null,"id":23877015175267,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/070b12ecb92132ec2c2e02d9744ed94bbba8c2de_ed1771c9-4c65-46d6-8ff1-bd58ecbd0840.webp?v=1714720458"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/070b12ecb92132ec2c2e02d9744ed94bbba8c2de_ed1771c9-4c65-46d6-8ff1-bd58ecbd0840.webp?v=1714720458","width":2000},{"alt":null,"id":23877015535715,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/683e619ab5931aa57e9c7800af852407d9b34389_f07551d8-03ee-41e8-9e8a-3f6e930a1618.webp?v=1714720461"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/683e619ab5931aa57e9c7800af852407d9b34389_f07551d8-03ee-41e8-9e8a-3f6e930a1618.webp?v=1714720461","width":2000},{"alt":null,"id":23877016092771,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5aff241cfbeda4541756497a1343341403e45de4_9c434bc8-63f2-4416-ae6f-6851f5f86d2d.webp?v=1714720463"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5aff241cfbeda4541756497a1343341403e45de4_9c434bc8-63f2-4416-ae6f-6851f5f86d2d.webp?v=1714720463","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41884767813731,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB21","requires_shipping":true,"taxable":true,"featured_image":{"id":31472096837731,"product_id":7408373268579,"position":2,"created_at":"2024-05-03T15:14:04+08:00","updated_at":"2024-05-03T15:14:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7b1a4c36dcdbd6e7cf66c40b981c910b863fca8_a17d237d-aa97-453e-8331-ecc147c83020.webp?v=1714720444","variant_ids":[41884767813731]},"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-PB21","featured_media":{"alt":null,"id":23877012226147,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7b1a4c36dcdbd6e7cf66c40b981c910b863fca8_a17d237d-aa97-453e-8331-ecc147c83020.webp?v=1714720444"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41884767813731,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB21","requires_shipping":true,"taxable":true,"featured_image":{"id":31472096837731,"product_id":7408373268579,"position":2,"created_at":"2024-05-03T15:14:04+08:00","updated_at":"2024-05-03T15:14:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7b1a4c36dcdbd6e7cf66c40b981c910b863fca8_a17d237d-aa97-453e-8331-ecc147c83020.webp?v=1714720444","variant_ids":[41884767813731]},"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-PB21","featured_media":{"alt":null,"id":23877012226147,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7b1a4c36dcdbd6e7cf66c40b981c910b863fca8_a17d237d-aa97-453e-8331-ecc147c83020.webp?v=1714720444"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $type = ""; var sellingStatus if ($isMerge) { $(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: "停產" }