$product = {"id":7911226572899,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) PosterLad 植物","handle":"iphone-14-plus-mod-nx-magsafe-printable-pos06","description":null,"published_at":"2025-11-05T10:42:46+08:00","created_at":"2025-11-04T10:40:36+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-posterlad","device-iPhone 14 Plus","merge","reseller-posterlad"],"price":110000,"price_min":110000,"price_max":110000,"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":43812046176355,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-POS06","requires_shipping":true,"taxable":true,"featured_image":{"id":34729166667875,"product_id":7911226572899,"position":2,"created_at":"2025-11-04T10:40:40+08:00","updated_at":"2025-11-04T10:40:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a65e6dbbc9507d0817b24512f6a721e5ca93d504.webp?v=1762224042","variant_ids":[43812046176355]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) PosterLad 植物 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-POS06","featured_media":{"alt":null,"id":26297035063395,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a65e6dbbc9507d0817b24512f6a721e5ca93d504.webp?v=1762224042"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7936db7172a878a9570e0fd0a023dde3b52f7cf.webp?v=1762224041","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a65e6dbbc9507d0817b24512f6a721e5ca93d504.webp?v=1762224042","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6118044e9828b473bf9c759d095415e90b848c05.webp?v=1762224043","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e3f19ff6c6e32dbea3c2ec63d73561382326292.webp?v=1762224044","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e136790cfa5058acd2753e5a0d826517c960108.webp?v=1762224044","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ee343d29e07d4a4d11dd5c875632ec4638cb96b.webp?v=1762224045","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e1c7da45ff98b09c45373d1accc387766333e7f.webp?v=1762224046","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03d21e9a70ca954bd0615b14b737008345d91a22.webp?v=1762224047","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2608acbe324249798c5d8b593a46340bad5bd30c.webp?v=1762224048","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5618a79d05fc5ffff221202b73fb0faa1afc195.webp?v=1762224048","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b90a43db9b7ff663173edd5202478e8e17d95fe.webp?v=1762224049","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5839106bff5232986431480fe2f2e6a6800d161d.webp?v=1762224049","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a0a496d313be4e0dcbd02fc845ed80d2a549ee1.webp?v=1762224051"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7936db7172a878a9570e0fd0a023dde3b52f7cf.webp?v=1762224041","options":["color"],"media":[{"alt":null,"id":26297034834019,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7936db7172a878a9570e0fd0a023dde3b52f7cf.webp?v=1762224041"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7936db7172a878a9570e0fd0a023dde3b52f7cf.webp?v=1762224041","width":2000},{"alt":null,"id":26297035063395,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a65e6dbbc9507d0817b24512f6a721e5ca93d504.webp?v=1762224042"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a65e6dbbc9507d0817b24512f6a721e5ca93d504.webp?v=1762224042","width":2000},{"alt":null,"id":26297035391075,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6118044e9828b473bf9c759d095415e90b848c05.webp?v=1762224043"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6118044e9828b473bf9c759d095415e90b848c05.webp?v=1762224043","width":2000},{"alt":null,"id":26297035653219,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e3f19ff6c6e32dbea3c2ec63d73561382326292.webp?v=1762224044"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e3f19ff6c6e32dbea3c2ec63d73561382326292.webp?v=1762224044","width":2000},{"alt":null,"id":26297035948131,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e136790cfa5058acd2753e5a0d826517c960108.webp?v=1762224044"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e136790cfa5058acd2753e5a0d826517c960108.webp?v=1762224044","width":2000},{"alt":null,"id":26297036275811,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ee343d29e07d4a4d11dd5c875632ec4638cb96b.webp?v=1762224045"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ee343d29e07d4a4d11dd5c875632ec4638cb96b.webp?v=1762224045","width":2000},{"alt":null,"id":26297036505187,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e1c7da45ff98b09c45373d1accc387766333e7f.webp?v=1762224046"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e1c7da45ff98b09c45373d1accc387766333e7f.webp?v=1762224046","width":2000},{"alt":null,"id":26297036669027,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03d21e9a70ca954bd0615b14b737008345d91a22.webp?v=1762224047"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03d21e9a70ca954bd0615b14b737008345d91a22.webp?v=1762224047","width":2000},{"alt":null,"id":26297036931171,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2608acbe324249798c5d8b593a46340bad5bd30c.webp?v=1762224048"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2608acbe324249798c5d8b593a46340bad5bd30c.webp?v=1762224048","width":2000},{"alt":null,"id":26297037226083,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5618a79d05fc5ffff221202b73fb0faa1afc195.webp?v=1762224048"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5618a79d05fc5ffff221202b73fb0faa1afc195.webp?v=1762224048","width":2000},{"alt":null,"id":26297037488227,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b90a43db9b7ff663173edd5202478e8e17d95fe.webp?v=1762224049"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b90a43db9b7ff663173edd5202478e8e17d95fe.webp?v=1762224049","width":2000},{"alt":null,"id":26297037783139,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5839106bff5232986431480fe2f2e6a6800d161d.webp?v=1762224049"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5839106bff5232986431480fe2f2e6a6800d161d.webp?v=1762224049","width":2000},{"alt":null,"id":26297037946979,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a0a496d313be4e0dcbd02fc845ed80d2a549ee1.webp?v=1762224051"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a0a496d313be4e0dcbd02fc845ed80d2a549ee1.webp?v=1762224051","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43812046176355,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-POS06","requires_shipping":true,"taxable":true,"featured_image":{"id":34729166667875,"product_id":7911226572899,"position":2,"created_at":"2025-11-04T10:40:40+08:00","updated_at":"2025-11-04T10:40:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a65e6dbbc9507d0817b24512f6a721e5ca93d504.webp?v=1762224042","variant_ids":[43812046176355]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) PosterLad 植物 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-POS06","featured_media":{"alt":null,"id":26297035063395,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a65e6dbbc9507d0817b24512f6a721e5ca93d504.webp?v=1762224042"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43812046176355,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-POS06","requires_shipping":true,"taxable":true,"featured_image":{"id":34729166667875,"product_id":7911226572899,"position":2,"created_at":"2025-11-04T10:40:40+08:00","updated_at":"2025-11-04T10:40:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a65e6dbbc9507d0817b24512f6a721e5ca93d504.webp?v=1762224042","variant_ids":[43812046176355]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) PosterLad 植物 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-POS06","featured_media":{"alt":null,"id":26297035063395,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a65e6dbbc9507d0817b24512f6a721e5ca93d504.webp?v=1762224042"}},"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: "停產" }