$product = {"id":7408227156067,"title":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵-大臉系列","handle":"iphone-13-pro-max-mod-nx-printable-pb77","description":null,"published_at":"2024-06-11T16:34:47+08:00","created_at":"2024-05-03T12:24:38+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 13 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":41884073230435,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB77","requires_shipping":true,"taxable":true,"featured_image":{"id":31471521628259,"product_id":7408227156067,"position":2,"created_at":"2024-05-03T12:24:42+08:00","updated_at":"2024-05-03T12:24:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3247b46e336046456f951aee141dbe52b7a9f09b_2341c9ba-b599-486a-aa6c-9b380be4ff50.webp?v=1714710282","variant_ids":[41884073230435]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 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":"NPB0123224-PB77","featured_media":{"alt":null,"id":23876428169315,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3247b46e336046456f951aee141dbe52b7a9f09b_2341c9ba-b599-486a-aa6c-9b380be4ff50.webp?v=1714710282"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41884073558115,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB77","requires_shipping":true,"taxable":true,"featured_image":{"id":31471525953635,"product_id":7408227156067,"position":10,"created_at":"2024-05-03T12:25:01+08:00","updated_at":"2024-05-03T12:25:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed6bed140f1d875a2188c93309c2be037fe57ba3_be0bdf48-1fcc-474c-8b9b-d13fb42251eb.webp?v=1714710301","variant_ids":[41884073558115]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 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":"NPB01232J5-PB77","featured_media":{"alt":null,"id":23876432527459,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed6bed140f1d875a2188c93309c2be037fe57ba3_be0bdf48-1fcc-474c-8b9b-d13fb42251eb.webp?v=1714710301"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/166136ab5c79fb37d5e56ec44aa9541423b0b70c_2486c077-190b-4320-a77c-ccf5eb58ec5d.webp?v=1714710280","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3247b46e336046456f951aee141dbe52b7a9f09b_2341c9ba-b599-486a-aa6c-9b380be4ff50.webp?v=1714710282","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c3d17f1753fb72cac7adb2e7df21abcfe7ef748_f15e28c6-cf13-49ce-aa25-4951a8c75392.webp?v=1714710285","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/862e5374079c6eba1c8b117a0bc135c04fc22996_9875fe08-c268-4b74-8d0c-e9004598e679.webp?v=1714710287","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/058fe07d9b6e50f3f0cb00fc712642bd69ba4992_7731b802-0399-4b29-bd5d-39b68c1137d5.webp?v=1714710290","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b87c08c6475044fedeaefa9cce0b71e41a78501_eb029834-7c9c-4a34-8726-a81422a16164.webp?v=1714710292","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8010af787e62de891d7f2e7a10317f5c3cd3d50_b8c61f7f-70bd-484b-8756-b45738b948c4.webp?v=1714710294","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac6f3011d9dddcd1095437b58d2f1130c94c1836_a478df12-2790-4fe4-a914-6f67f67421e0.webp?v=1714710296","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12734b0eb6afb84b871078d65af9a46ae812b4a9_8408927f-3744-407d-b276-752c0e6a8fe0.webp?v=1714710298","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed6bed140f1d875a2188c93309c2be037fe57ba3_be0bdf48-1fcc-474c-8b9b-d13fb42251eb.webp?v=1714710301"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/166136ab5c79fb37d5e56ec44aa9541423b0b70c_2486c077-190b-4320-a77c-ccf5eb58ec5d.webp?v=1714710280","options":["color"],"media":[{"alt":null,"id":23876427808867,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/166136ab5c79fb37d5e56ec44aa9541423b0b70c_2486c077-190b-4320-a77c-ccf5eb58ec5d.webp?v=1714710280"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/166136ab5c79fb37d5e56ec44aa9541423b0b70c_2486c077-190b-4320-a77c-ccf5eb58ec5d.webp?v=1714710280","width":2000},{"alt":null,"id":23876428169315,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3247b46e336046456f951aee141dbe52b7a9f09b_2341c9ba-b599-486a-aa6c-9b380be4ff50.webp?v=1714710282"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3247b46e336046456f951aee141dbe52b7a9f09b_2341c9ba-b599-486a-aa6c-9b380be4ff50.webp?v=1714710282","width":2000},{"alt":null,"id":23876428890211,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c3d17f1753fb72cac7adb2e7df21abcfe7ef748_f15e28c6-cf13-49ce-aa25-4951a8c75392.webp?v=1714710285"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c3d17f1753fb72cac7adb2e7df21abcfe7ef748_f15e28c6-cf13-49ce-aa25-4951a8c75392.webp?v=1714710285","width":2000},{"alt":null,"id":23876429414499,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/862e5374079c6eba1c8b117a0bc135c04fc22996_9875fe08-c268-4b74-8d0c-e9004598e679.webp?v=1714710287"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/862e5374079c6eba1c8b117a0bc135c04fc22996_9875fe08-c268-4b74-8d0c-e9004598e679.webp?v=1714710287","width":2000},{"alt":null,"id":23876429873251,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/058fe07d9b6e50f3f0cb00fc712642bd69ba4992_7731b802-0399-4b29-bd5d-39b68c1137d5.webp?v=1714710290"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/058fe07d9b6e50f3f0cb00fc712642bd69ba4992_7731b802-0399-4b29-bd5d-39b68c1137d5.webp?v=1714710290","width":2000},{"alt":null,"id":23876430561379,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b87c08c6475044fedeaefa9cce0b71e41a78501_eb029834-7c9c-4a34-8726-a81422a16164.webp?v=1714710292"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b87c08c6475044fedeaefa9cce0b71e41a78501_eb029834-7c9c-4a34-8726-a81422a16164.webp?v=1714710292","width":2000},{"alt":null,"id":23876431118435,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8010af787e62de891d7f2e7a10317f5c3cd3d50_b8c61f7f-70bd-484b-8756-b45738b948c4.webp?v=1714710294"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8010af787e62de891d7f2e7a10317f5c3cd3d50_b8c61f7f-70bd-484b-8756-b45738b948c4.webp?v=1714710294","width":2000},{"alt":null,"id":23876431413347,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac6f3011d9dddcd1095437b58d2f1130c94c1836_a478df12-2790-4fe4-a914-6f67f67421e0.webp?v=1714710296"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac6f3011d9dddcd1095437b58d2f1130c94c1836_a478df12-2790-4fe4-a914-6f67f67421e0.webp?v=1714710296","width":2000},{"alt":null,"id":23876431904867,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12734b0eb6afb84b871078d65af9a46ae812b4a9_8408927f-3744-407d-b276-752c0e6a8fe0.webp?v=1714710298"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12734b0eb6afb84b871078d65af9a46ae812b4a9_8408927f-3744-407d-b276-752c0e6a8fe0.webp?v=1714710298","width":2000},{"alt":null,"id":23876432527459,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed6bed140f1d875a2188c93309c2be037fe57ba3_be0bdf48-1fcc-474c-8b9b-d13fb42251eb.webp?v=1714710301"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed6bed140f1d875a2188c93309c2be037fe57ba3_be0bdf48-1fcc-474c-8b9b-d13fb42251eb.webp?v=1714710301","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":41884073230435,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB77","requires_shipping":true,"taxable":true,"featured_image":{"id":31471521628259,"product_id":7408227156067,"position":2,"created_at":"2024-05-03T12:24:42+08:00","updated_at":"2024-05-03T12:24:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3247b46e336046456f951aee141dbe52b7a9f09b_2341c9ba-b599-486a-aa6c-9b380be4ff50.webp?v=1714710282","variant_ids":[41884073230435]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 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":"NPB0123224-PB77","featured_media":{"alt":null,"id":23876428169315,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3247b46e336046456f951aee141dbe52b7a9f09b_2341c9ba-b599-486a-aa6c-9b380be4ff50.webp?v=1714710282"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41884073558115,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB77","requires_shipping":true,"taxable":true,"featured_image":{"id":31471525953635,"product_id":7408227156067,"position":10,"created_at":"2024-05-03T12:25:01+08:00","updated_at":"2024-05-03T12:25:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed6bed140f1d875a2188c93309c2be037fe57ba3_be0bdf48-1fcc-474c-8b9b-d13fb42251eb.webp?v=1714710301","variant_ids":[41884073558115]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 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":"NPB01232J5-PB77","featured_media":{"alt":null,"id":23876432527459,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed6bed140f1d875a2188c93309c2be037fe57ba3_be0bdf48-1fcc-474c-8b9b-d13fb42251eb.webp?v=1714710301"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41884073230435,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB77","requires_shipping":true,"taxable":true,"featured_image":{"id":31471521628259,"product_id":7408227156067,"position":2,"created_at":"2024-05-03T12:24:42+08:00","updated_at":"2024-05-03T12:24:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3247b46e336046456f951aee141dbe52b7a9f09b_2341c9ba-b599-486a-aa6c-9b380be4ff50.webp?v=1714710282","variant_ids":[41884073230435]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 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":"NPB0123224-PB77","featured_media":{"alt":null,"id":23876428169315,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3247b46e336046456f951aee141dbe52b7a9f09b_2341c9ba-b599-486a-aa6c-9b380be4ff50.webp?v=1714710282"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null var sellingStatus if ($bumper) { $(document).ready(function() { var productImg = $product.images[0] var bumperVariants = $bumper.variants; var bumperColors = new Object(); var currentVariant = ''; var productType = ''; bumperVariants.forEach(variant => { bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src; }); if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') { mergeImages( [productImg, bumperColors[currentVariant]], { crossOrigin: 'anonymous' } ).then(mergedImg => { $('.merged-img').attr('src', mergedImg); }); } else { mergeImages( [bumperColors[currentVariant], productImg], { crossOrigin: 'anonymous' } ).then(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: "停產" }