$product = {"id":7937856405603,"title":"iPhone 14 Plus Mod NX 進擊的巨人 Attack on Titan 城牆巨人","handle":"iphone-14-plus-mod-nx-xu15","description":null,"published_at":"2025-12-12T10:46:16+08:00","created_at":"2025-12-11T15:43:25+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-attack-on-titan","device-iPhone 14 Plus","merge","reseller-attack-on-titan"],"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":43884165136483,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-XU15","requires_shipping":true,"taxable":true,"featured_image":{"id":34932821360739,"product_id":7937856405603,"position":3,"created_at":"2025-12-11T15:43:29+08:00","updated_at":"2025-12-11T15:43:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff83afa92da13376638bf0546d68f70d05a99753.webp?v=1765439011","variant_ids":[43884165136483]},"available":true,"name":"iPhone 14 Plus Mod NX 進擊的巨人 Attack on Titan 城牆巨人 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-XU15","featured_media":{"alt":null,"id":26495193317475,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff83afa92da13376638bf0546d68f70d05a99753.webp?v=1765439011"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6ec7cbf078ebb7874eaa13082a5749e6f74963a.webp?v=1765439010","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ea7475f23df39621d253e101af28bb06be73480.webp?v=1765439011","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff83afa92da13376638bf0546d68f70d05a99753.webp?v=1765439011","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1b51c92913ec1cb5d994e2ddeaaa71720d4ea49.webp?v=1765439014","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fbbe96116c685d1972c0364fcad5e3c480ecc8b.webp?v=1765439015","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/209a9a0cdd12e5cde9f082d339946c620aa09a71.webp?v=1765439015","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cdc467a128bd7a49d63e7284b3c36b8ce01ad19.webp?v=1765439016","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5df9026abf8ac4f9795cf962134010acc407d891.webp?v=1765439016","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/419e8a1286bb4c7395f06fa4aec20f71a46c3f9c.webp?v=1765439017","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3649d16b7ab6738e068ee2932772f5ddbde2692e.webp?v=1765439017","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f56d3b39348aa0b10e2f3d868bf26a1b341fa91.webp?v=1765439018","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1280f0fe068e705623e8677bc1c2613b57e3cac3.webp?v=1765439018","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee5927e5d7c8282b38797339aa0be02eb4e58b74.webp?v=1765439019"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6ec7cbf078ebb7874eaa13082a5749e6f74963a.webp?v=1765439010","options":["color"],"media":[{"alt":null,"id":26495192989795,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6ec7cbf078ebb7874eaa13082a5749e6f74963a.webp?v=1765439010"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6ec7cbf078ebb7874eaa13082a5749e6f74963a.webp?v=1765439010","width":2000},{"alt":null,"id":26495193088099,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ea7475f23df39621d253e101af28bb06be73480.webp?v=1765439011"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ea7475f23df39621d253e101af28bb06be73480.webp?v=1765439011","width":2000},{"alt":null,"id":26495193317475,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff83afa92da13376638bf0546d68f70d05a99753.webp?v=1765439011"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff83afa92da13376638bf0546d68f70d05a99753.webp?v=1765439011","width":2000},{"alt":null,"id":26495193841763,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1b51c92913ec1cb5d994e2ddeaaa71720d4ea49.webp?v=1765439014"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1b51c92913ec1cb5d994e2ddeaaa71720d4ea49.webp?v=1765439014","width":2000},{"alt":null,"id":26495194136675,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fbbe96116c685d1972c0364fcad5e3c480ecc8b.webp?v=1765439015"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fbbe96116c685d1972c0364fcad5e3c480ecc8b.webp?v=1765439015","width":2000},{"alt":null,"id":26495194595427,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/209a9a0cdd12e5cde9f082d339946c620aa09a71.webp?v=1765439015"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/209a9a0cdd12e5cde9f082d339946c620aa09a71.webp?v=1765439015","width":2000},{"alt":null,"id":26495194955875,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cdc467a128bd7a49d63e7284b3c36b8ce01ad19.webp?v=1765439016"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cdc467a128bd7a49d63e7284b3c36b8ce01ad19.webp?v=1765439016","width":2000},{"alt":null,"id":26495195218019,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5df9026abf8ac4f9795cf962134010acc407d891.webp?v=1765439016"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5df9026abf8ac4f9795cf962134010acc407d891.webp?v=1765439016","width":2000},{"alt":null,"id":26495195578467,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/419e8a1286bb4c7395f06fa4aec20f71a46c3f9c.webp?v=1765439017"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/419e8a1286bb4c7395f06fa4aec20f71a46c3f9c.webp?v=1765439017","width":2000},{"alt":null,"id":26495195775075,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3649d16b7ab6738e068ee2932772f5ddbde2692e.webp?v=1765439017"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3649d16b7ab6738e068ee2932772f5ddbde2692e.webp?v=1765439017","width":2000},{"alt":null,"id":26495195938915,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f56d3b39348aa0b10e2f3d868bf26a1b341fa91.webp?v=1765439018"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f56d3b39348aa0b10e2f3d868bf26a1b341fa91.webp?v=1765439018","width":2000},{"alt":null,"id":26495196102755,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1280f0fe068e705623e8677bc1c2613b57e3cac3.webp?v=1765439018"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1280f0fe068e705623e8677bc1c2613b57e3cac3.webp?v=1765439018","width":2000},{"alt":null,"id":26495196299363,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee5927e5d7c8282b38797339aa0be02eb4e58b74.webp?v=1765439019"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee5927e5d7c8282b38797339aa0be02eb4e58b74.webp?v=1765439019","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43884165136483,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-XU15","requires_shipping":true,"taxable":true,"featured_image":{"id":34932821360739,"product_id":7937856405603,"position":3,"created_at":"2025-12-11T15:43:29+08:00","updated_at":"2025-12-11T15:43:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff83afa92da13376638bf0546d68f70d05a99753.webp?v=1765439011","variant_ids":[43884165136483]},"available":true,"name":"iPhone 14 Plus Mod NX 進擊的巨人 Attack on Titan 城牆巨人 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-XU15","featured_media":{"alt":null,"id":26495193317475,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff83afa92da13376638bf0546d68f70d05a99753.webp?v=1765439011"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43884165136483,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-XU15","requires_shipping":true,"taxable":true,"featured_image":{"id":34932821360739,"product_id":7937856405603,"position":3,"created_at":"2025-12-11T15:43:29+08:00","updated_at":"2025-12-11T15:43:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff83afa92da13376638bf0546d68f70d05a99753.webp?v=1765439011","variant_ids":[43884165136483]},"available":true,"name":"iPhone 14 Plus Mod NX 進擊的巨人 Attack on Titan 城牆巨人 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-XU15","featured_media":{"alt":null,"id":26495193317475,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff83afa92da13376638bf0546d68f70d05a99753.webp?v=1765439011"}},"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: "停產" }