$product = {"id":7937929019491,"title":"iPhone 14 Plus Mod NX 進擊的巨人 Attack on Titan 超大型巨人","handle":"iphone-14-plus-mod-nx-xu09","description":null,"published_at":"2025-12-12T10:30:31+08:00","created_at":"2025-12-11T16:00: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":43884447727715,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-XU09","requires_shipping":true,"taxable":true,"featured_image":{"id":34933128003683,"product_id":7937929019491,"position":9,"created_at":"2025-12-11T16:00:34+08:00","updated_at":"2025-12-11T16:00:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f99c3acae342784bd6263b00d23fcffbfca9521.webp?v=1765440035","variant_ids":[43884447727715]},"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-XU09","featured_media":{"alt":null,"id":26495499763811,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f99c3acae342784bd6263b00d23fcffbfca9521.webp?v=1765440035"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d978478912d470ce1393d6a6b400d1b4f5a16d0.webp?v=1765440031","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db57b4d1876444eabb6a6d589e1611c770571aee.webp?v=1765440031","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15a8a73a7ac80cfdb7f94f5bbc598d1b41e6d2f4.webp?v=1765440032","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bd56b255e48919a177edca0a792d08936736d5b.webp?v=1765440032","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49ae77e0c72fc509e624c4d7b23dea22fdcfa194.webp?v=1765440034","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4b333dab1a3845e841ae210eea148b23bee8891.webp?v=1765440034","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8660a5942c5b1752c3d35524d40a95ec90f6e7a4.webp?v=1765440035","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd0e0d2d4003bb434732a98f9d661a18e2b2e241.webp?v=1765440035","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f99c3acae342784bd6263b00d23fcffbfca9521.webp?v=1765440035","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18bec705c894a5ab2a280e3654497c2f62306a3f.webp?v=1765440036","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ca05151ab20270c9fda63a3becd4a7354133d51.webp?v=1765440037","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88997990d4242a17a0cb2305ea619bade1e87529.webp?v=1765440037","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c6d4637e94483ed543082c118828b1299ef8707.webp?v=1765440038"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d978478912d470ce1393d6a6b400d1b4f5a16d0.webp?v=1765440031","options":["color"],"media":[{"alt":null,"id":26495498158179,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d978478912d470ce1393d6a6b400d1b4f5a16d0.webp?v=1765440031"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d978478912d470ce1393d6a6b400d1b4f5a16d0.webp?v=1765440031","width":2000},{"alt":null,"id":26495498387555,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db57b4d1876444eabb6a6d589e1611c770571aee.webp?v=1765440031"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db57b4d1876444eabb6a6d589e1611c770571aee.webp?v=1765440031","width":2000},{"alt":null,"id":26495498584163,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15a8a73a7ac80cfdb7f94f5bbc598d1b41e6d2f4.webp?v=1765440032"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15a8a73a7ac80cfdb7f94f5bbc598d1b41e6d2f4.webp?v=1765440032","width":2000},{"alt":null,"id":26495498813539,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bd56b255e48919a177edca0a792d08936736d5b.webp?v=1765440032"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bd56b255e48919a177edca0a792d08936736d5b.webp?v=1765440032","width":2000},{"alt":null,"id":26495499075683,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49ae77e0c72fc509e624c4d7b23dea22fdcfa194.webp?v=1765440034"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49ae77e0c72fc509e624c4d7b23dea22fdcfa194.webp?v=1765440034","width":2000},{"alt":null,"id":26495499239523,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4b333dab1a3845e841ae210eea148b23bee8891.webp?v=1765440034"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4b333dab1a3845e841ae210eea148b23bee8891.webp?v=1765440034","width":2000},{"alt":null,"id":26495499403363,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8660a5942c5b1752c3d35524d40a95ec90f6e7a4.webp?v=1765440035"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8660a5942c5b1752c3d35524d40a95ec90f6e7a4.webp?v=1765440035","width":2000},{"alt":null,"id":26495499599971,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd0e0d2d4003bb434732a98f9d661a18e2b2e241.webp?v=1765440035"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd0e0d2d4003bb434732a98f9d661a18e2b2e241.webp?v=1765440035","width":2000},{"alt":null,"id":26495499763811,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f99c3acae342784bd6263b00d23fcffbfca9521.webp?v=1765440035"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f99c3acae342784bd6263b00d23fcffbfca9521.webp?v=1765440035","width":2000},{"alt":null,"id":26495499927651,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18bec705c894a5ab2a280e3654497c2f62306a3f.webp?v=1765440036"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18bec705c894a5ab2a280e3654497c2f62306a3f.webp?v=1765440036","width":2000},{"alt":null,"id":26495500091491,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ca05151ab20270c9fda63a3becd4a7354133d51.webp?v=1765440037"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ca05151ab20270c9fda63a3becd4a7354133d51.webp?v=1765440037","width":2000},{"alt":null,"id":26495500222563,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88997990d4242a17a0cb2305ea619bade1e87529.webp?v=1765440037"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88997990d4242a17a0cb2305ea619bade1e87529.webp?v=1765440037","width":2000},{"alt":null,"id":26495500386403,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c6d4637e94483ed543082c118828b1299ef8707.webp?v=1765440038"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c6d4637e94483ed543082c118828b1299ef8707.webp?v=1765440038","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43884447727715,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-XU09","requires_shipping":true,"taxable":true,"featured_image":{"id":34933128003683,"product_id":7937929019491,"position":9,"created_at":"2025-12-11T16:00:34+08:00","updated_at":"2025-12-11T16:00:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f99c3acae342784bd6263b00d23fcffbfca9521.webp?v=1765440035","variant_ids":[43884447727715]},"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-XU09","featured_media":{"alt":null,"id":26495499763811,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f99c3acae342784bd6263b00d23fcffbfca9521.webp?v=1765440035"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43884447727715,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-XU09","requires_shipping":true,"taxable":true,"featured_image":{"id":34933128003683,"product_id":7937929019491,"position":9,"created_at":"2025-12-11T16:00:34+08:00","updated_at":"2025-12-11T16:00:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f99c3acae342784bd6263b00d23fcffbfca9521.webp?v=1765440035","variant_ids":[43884447727715]},"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-XU09","featured_media":{"alt":null,"id":26495499763811,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f99c3acae342784bd6263b00d23fcffbfca9521.webp?v=1765440035"}},"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: "停產" }