$product = {"id":7911219167331,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) PosterLad 色彩之雨","handle":"iphone-14-plus-mod-nx-magsafe-printable-pos02","description":null,"published_at":"2025-11-05T10:43:50+08:00","created_at":"2025-11-04T10:39:24+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":43812027629667,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-POS02","requires_shipping":true,"taxable":true,"featured_image":{"id":34729151135843,"product_id":7911219167331,"position":5,"created_at":"2025-11-04T10:39:32+08:00","updated_at":"2025-11-04T10:39:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7cf60f92453ff03c64ccf9e8201b3759a055c1d0.webp?v=1762223974","variant_ids":[43812027629667]},"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-POS02","featured_media":{"alt":null,"id":26297019531363,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7cf60f92453ff03c64ccf9e8201b3759a055c1d0.webp?v=1762223974"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/825417e38bc244e74cc84553eee0436b70819206.webp?v=1762223971","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66675dc71b6ba8a0ad6e37fd7693595d95a0e75d.webp?v=1762223972","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e75e0723386a353e40a97bba56e3a4d2458fea3d.webp?v=1762223972","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00fab1a4da88307f2bd737c255f1196161048e96.webp?v=1762223973","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7cf60f92453ff03c64ccf9e8201b3759a055c1d0.webp?v=1762223974","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7df6c8099176c2b52dcd9d6ea1e79327711299b6.webp?v=1762223975","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db8e7e3989d6f210ded5c7c911321efd2c13f1fa.webp?v=1762223975","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfcb0a275cf0a653a85c48e5f15e28bfc93b7aba.webp?v=1762223976","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acf2446e61d5c91b8c9ccd3ec99a2f8f261b8515.webp?v=1762223977","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d66d839e329101b148c5288c155ce35d7709101b.webp?v=1762223978","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f5ba591a669b8a956c135fa2df5799bfba39bc7.webp?v=1762223978","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b3c29bddf3c1dee197b4d373d3e9ff500126d62.webp?v=1762223979","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca1889eb013a350601c3716f248819b65a8c4baf.webp?v=1762223980"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/825417e38bc244e74cc84553eee0436b70819206.webp?v=1762223971","options":["color"],"media":[{"alt":null,"id":26297018679395,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/825417e38bc244e74cc84553eee0436b70819206.webp?v=1762223971"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/825417e38bc244e74cc84553eee0436b70819206.webp?v=1762223971","width":2000},{"alt":null,"id":26297018941539,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66675dc71b6ba8a0ad6e37fd7693595d95a0e75d.webp?v=1762223972"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66675dc71b6ba8a0ad6e37fd7693595d95a0e75d.webp?v=1762223972","width":2000},{"alt":null,"id":26297019072611,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e75e0723386a353e40a97bba56e3a4d2458fea3d.webp?v=1762223972"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e75e0723386a353e40a97bba56e3a4d2458fea3d.webp?v=1762223972","width":2000},{"alt":null,"id":26297019269219,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00fab1a4da88307f2bd737c255f1196161048e96.webp?v=1762223973"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00fab1a4da88307f2bd737c255f1196161048e96.webp?v=1762223973","width":2000},{"alt":null,"id":26297019531363,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7cf60f92453ff03c64ccf9e8201b3759a055c1d0.webp?v=1762223974"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7cf60f92453ff03c64ccf9e8201b3759a055c1d0.webp?v=1762223974","width":2000},{"alt":null,"id":26297019793507,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7df6c8099176c2b52dcd9d6ea1e79327711299b6.webp?v=1762223975"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7df6c8099176c2b52dcd9d6ea1e79327711299b6.webp?v=1762223975","width":2000},{"alt":null,"id":26297019924579,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db8e7e3989d6f210ded5c7c911321efd2c13f1fa.webp?v=1762223975"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db8e7e3989d6f210ded5c7c911321efd2c13f1fa.webp?v=1762223975","width":2000},{"alt":null,"id":26297020252259,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfcb0a275cf0a653a85c48e5f15e28bfc93b7aba.webp?v=1762223976"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfcb0a275cf0a653a85c48e5f15e28bfc93b7aba.webp?v=1762223976","width":2000},{"alt":null,"id":26297020514403,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acf2446e61d5c91b8c9ccd3ec99a2f8f261b8515.webp?v=1762223977"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acf2446e61d5c91b8c9ccd3ec99a2f8f261b8515.webp?v=1762223977","width":2000},{"alt":null,"id":26297020907619,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d66d839e329101b148c5288c155ce35d7709101b.webp?v=1762223978"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d66d839e329101b148c5288c155ce35d7709101b.webp?v=1762223978","width":2000},{"alt":null,"id":26297021038691,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f5ba591a669b8a956c135fa2df5799bfba39bc7.webp?v=1762223978"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f5ba591a669b8a956c135fa2df5799bfba39bc7.webp?v=1762223978","width":2000},{"alt":null,"id":26297021268067,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b3c29bddf3c1dee197b4d373d3e9ff500126d62.webp?v=1762223979"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b3c29bddf3c1dee197b4d373d3e9ff500126d62.webp?v=1762223979","width":2000},{"alt":null,"id":26297021464675,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca1889eb013a350601c3716f248819b65a8c4baf.webp?v=1762223980"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca1889eb013a350601c3716f248819b65a8c4baf.webp?v=1762223980","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43812027629667,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-POS02","requires_shipping":true,"taxable":true,"featured_image":{"id":34729151135843,"product_id":7911219167331,"position":5,"created_at":"2025-11-04T10:39:32+08:00","updated_at":"2025-11-04T10:39:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7cf60f92453ff03c64ccf9e8201b3759a055c1d0.webp?v=1762223974","variant_ids":[43812027629667]},"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-POS02","featured_media":{"alt":null,"id":26297019531363,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7cf60f92453ff03c64ccf9e8201b3759a055c1d0.webp?v=1762223974"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43812027629667,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-POS02","requires_shipping":true,"taxable":true,"featured_image":{"id":34729151135843,"product_id":7911219167331,"position":5,"created_at":"2025-11-04T10:39:32+08:00","updated_at":"2025-11-04T10:39:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7cf60f92453ff03c64ccf9e8201b3759a055c1d0.webp?v=1762223974","variant_ids":[43812027629667]},"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-POS02","featured_media":{"alt":null,"id":26297019531363,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7cf60f92453ff03c64ccf9e8201b3759a055c1d0.webp?v=1762223974"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $brand_handle = null; $type = ""; var sellingStatus // 只有設計款(SKU 含 '-')才需要合圖 if ($isMerge && $defaultVariant.sku.includes('-')) { $(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: "停產" }