$product = {"id":7911279951971,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) PosterLad 水與沙","handle":"iphone-14-plus-mod-nx-magsafe-printable-pos03","description":null,"published_at":"2025-11-05T10:35:02+08:00","created_at":"2025-11-04T10:49:54+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":43812191895651,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-POS03","requires_shipping":true,"taxable":true,"featured_image":{"id":34729307275363,"product_id":7911279951971,"position":12,"created_at":"2025-11-04T10:50:05+08:00","updated_at":"2025-11-04T10:50:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2abfd96aaa41d73d999e6d4463dbccbe6f65b219.webp?v=1762224607","variant_ids":[43812191895651]},"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-POS03","featured_media":{"alt":null,"id":26297175277667,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2abfd96aaa41d73d999e6d4463dbccbe6f65b219.webp?v=1762224607"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f84827caec49b7d00abc00917c459de6d043350e.webp?v=1762224598","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed028baa558d546dfbde2884f829dbfa195d6ad3.webp?v=1762224599","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9d9ce4345b2355dcdfad16c569e70694c53d37e.webp?v=1762224599","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf9350c62270d4cbe60ff570d64398c4254375e5.webp?v=1762224600","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9184413cc8c930ad324351f430bcecf832da3935.webp?v=1762224601","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd096ef498efd6aac84e8bd25e0f9da1dfa2a58c.webp?v=1762224602","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f606baacbd95c24399862c8b3ecb51c98c2f93e7.webp?v=1762224603","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd09495d10743c4be38da40e0547a8d5cc65542c.webp?v=1762224603","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a46cc85d47dd736159b6d79556219516f7be7af.webp?v=1762224604","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86ddf1f6e1aac55d0319e9b5c57f61071c200893.webp?v=1762224605","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cc3f6eb775bb0600413c2eb820627003d1c7d2a.webp?v=1762224606","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2abfd96aaa41d73d999e6d4463dbccbe6f65b219.webp?v=1762224607","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4b12f606e172c61d8878a972a5ecad060787317.webp?v=1762224608"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f84827caec49b7d00abc00917c459de6d043350e.webp?v=1762224598","options":["color"],"media":[{"alt":null,"id":26297172951139,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f84827caec49b7d00abc00917c459de6d043350e.webp?v=1762224598"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f84827caec49b7d00abc00917c459de6d043350e.webp?v=1762224598","width":2000},{"alt":null,"id":26297173246051,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed028baa558d546dfbde2884f829dbfa195d6ad3.webp?v=1762224599"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed028baa558d546dfbde2884f829dbfa195d6ad3.webp?v=1762224599","width":2000},{"alt":null,"id":26297173508195,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9d9ce4345b2355dcdfad16c569e70694c53d37e.webp?v=1762224599"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9d9ce4345b2355dcdfad16c569e70694c53d37e.webp?v=1762224599","width":2000},{"alt":null,"id":26297173704803,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf9350c62270d4cbe60ff570d64398c4254375e5.webp?v=1762224600"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf9350c62270d4cbe60ff570d64398c4254375e5.webp?v=1762224600","width":2000},{"alt":null,"id":26297173966947,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9184413cc8c930ad324351f430bcecf832da3935.webp?v=1762224601"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9184413cc8c930ad324351f430bcecf832da3935.webp?v=1762224601","width":2000},{"alt":null,"id":26297174196323,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd096ef498efd6aac84e8bd25e0f9da1dfa2a58c.webp?v=1762224602"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd096ef498efd6aac84e8bd25e0f9da1dfa2a58c.webp?v=1762224602","width":2000},{"alt":null,"id":26297174261859,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f606baacbd95c24399862c8b3ecb51c98c2f93e7.webp?v=1762224603"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f606baacbd95c24399862c8b3ecb51c98c2f93e7.webp?v=1762224603","width":2000},{"alt":null,"id":26297174589539,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd09495d10743c4be38da40e0547a8d5cc65542c.webp?v=1762224603"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd09495d10743c4be38da40e0547a8d5cc65542c.webp?v=1762224603","width":2000},{"alt":null,"id":26297174786147,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a46cc85d47dd736159b6d79556219516f7be7af.webp?v=1762224604"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a46cc85d47dd736159b6d79556219516f7be7af.webp?v=1762224604","width":2000},{"alt":null,"id":26297174982755,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86ddf1f6e1aac55d0319e9b5c57f61071c200893.webp?v=1762224605"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86ddf1f6e1aac55d0319e9b5c57f61071c200893.webp?v=1762224605","width":2000},{"alt":null,"id":26297175146595,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cc3f6eb775bb0600413c2eb820627003d1c7d2a.webp?v=1762224606"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cc3f6eb775bb0600413c2eb820627003d1c7d2a.webp?v=1762224606","width":2000},{"alt":null,"id":26297175277667,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2abfd96aaa41d73d999e6d4463dbccbe6f65b219.webp?v=1762224607"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2abfd96aaa41d73d999e6d4463dbccbe6f65b219.webp?v=1762224607","width":2000},{"alt":null,"id":26297175441507,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4b12f606e172c61d8878a972a5ecad060787317.webp?v=1762224608"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4b12f606e172c61d8878a972a5ecad060787317.webp?v=1762224608","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43812191895651,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-POS03","requires_shipping":true,"taxable":true,"featured_image":{"id":34729307275363,"product_id":7911279951971,"position":12,"created_at":"2025-11-04T10:50:05+08:00","updated_at":"2025-11-04T10:50:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2abfd96aaa41d73d999e6d4463dbccbe6f65b219.webp?v=1762224607","variant_ids":[43812191895651]},"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-POS03","featured_media":{"alt":null,"id":26297175277667,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2abfd96aaa41d73d999e6d4463dbccbe6f65b219.webp?v=1762224607"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43812191895651,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-POS03","requires_shipping":true,"taxable":true,"featured_image":{"id":34729307275363,"product_id":7911279951971,"position":12,"created_at":"2025-11-04T10:50:05+08:00","updated_at":"2025-11-04T10:50:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2abfd96aaa41d73d999e6d4463dbccbe6f65b219.webp?v=1762224607","variant_ids":[43812191895651]},"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-POS03","featured_media":{"alt":null,"id":26297175277667,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2abfd96aaa41d73d999e6d4463dbccbe6f65b219.webp?v=1762224607"}},"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: "停產" }