$product = {"id":7911211401315,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) PosterLad 樹林","handle":"iphone-14-plus-mod-nx-magsafe-printable-pos10","description":null,"published_at":"2025-11-05T10:44:53+08:00","created_at":"2025-11-04T10:38:02+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":43812003512419,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-POS10","requires_shipping":true,"taxable":true,"featured_image":{"id":34729129541731,"product_id":7911211401315,"position":3,"created_at":"2025-11-04T10:38:07+08:00","updated_at":"2025-11-04T10:38:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/688bf4602dfe75ff770237ccae8e9dd0668ea5ab.webp?v=1762223889","variant_ids":[43812003512419]},"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-POS10","featured_media":{"alt":null,"id":26296997904483,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/688bf4602dfe75ff770237ccae8e9dd0668ea5ab.webp?v=1762223889"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90f5097289c2c13ff994a79a0cd1456df76e0c62.webp?v=1762223888","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9926981c7157dc3f37baee3e3d8295918dd04166.webp?v=1762223889","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/688bf4602dfe75ff770237ccae8e9dd0668ea5ab.webp?v=1762223889","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2b3fbc74826af06ce959f0bbd8b5120677f640b.webp?v=1762223890","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e6f61aff355fccbaae3dcc966d41a98a73409f7.webp?v=1762223891","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0244f143df6c3b8515f1dc82f63dcc90e56f954.webp?v=1762223892","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe23b8ba3ec4fb1134539d08a3bb7de036b35ef6.webp?v=1762223892","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dac1406c504765283bebe6544e8aa355cc5cde4d.webp?v=1762223893","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c459a20ce1c63658e67547a2a21750dc115cf49a.webp?v=1762223894","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fd3bda35ef6073c66801e7cb0cd3a84283269c9.webp?v=1762223894","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2928c4f4fc7c8ea0dd38c93d86b6062bb41b5dd4.webp?v=1762223896","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/955d7df08d66f3af2ba3169732d1a12e7de97f42.webp?v=1762223896","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3e049e32ab81dd2cef051e73be4728d9ac2e99c.webp?v=1762223897"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90f5097289c2c13ff994a79a0cd1456df76e0c62.webp?v=1762223888","options":["color"],"media":[{"alt":null,"id":26296997544035,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90f5097289c2c13ff994a79a0cd1456df76e0c62.webp?v=1762223888"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90f5097289c2c13ff994a79a0cd1456df76e0c62.webp?v=1762223888","width":2000},{"alt":null,"id":26296997740643,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9926981c7157dc3f37baee3e3d8295918dd04166.webp?v=1762223889"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9926981c7157dc3f37baee3e3d8295918dd04166.webp?v=1762223889","width":2000},{"alt":null,"id":26296997904483,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/688bf4602dfe75ff770237ccae8e9dd0668ea5ab.webp?v=1762223889"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/688bf4602dfe75ff770237ccae8e9dd0668ea5ab.webp?v=1762223889","width":2000},{"alt":null,"id":26296998199395,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2b3fbc74826af06ce959f0bbd8b5120677f640b.webp?v=1762223890"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2b3fbc74826af06ce959f0bbd8b5120677f640b.webp?v=1762223890","width":2000},{"alt":null,"id":26296998330467,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e6f61aff355fccbaae3dcc966d41a98a73409f7.webp?v=1762223891"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e6f61aff355fccbaae3dcc966d41a98a73409f7.webp?v=1762223891","width":2000},{"alt":null,"id":26296998428771,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0244f143df6c3b8515f1dc82f63dcc90e56f954.webp?v=1762223892"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0244f143df6c3b8515f1dc82f63dcc90e56f954.webp?v=1762223892","width":2000},{"alt":null,"id":26296998527075,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe23b8ba3ec4fb1134539d08a3bb7de036b35ef6.webp?v=1762223892"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe23b8ba3ec4fb1134539d08a3bb7de036b35ef6.webp?v=1762223892","width":2000},{"alt":null,"id":26296998690915,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dac1406c504765283bebe6544e8aa355cc5cde4d.webp?v=1762223893"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dac1406c504765283bebe6544e8aa355cc5cde4d.webp?v=1762223893","width":2000},{"alt":null,"id":26296998821987,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c459a20ce1c63658e67547a2a21750dc115cf49a.webp?v=1762223894"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c459a20ce1c63658e67547a2a21750dc115cf49a.webp?v=1762223894","width":2000},{"alt":null,"id":26296998953059,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fd3bda35ef6073c66801e7cb0cd3a84283269c9.webp?v=1762223894"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fd3bda35ef6073c66801e7cb0cd3a84283269c9.webp?v=1762223894","width":2000},{"alt":null,"id":26296999149667,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2928c4f4fc7c8ea0dd38c93d86b6062bb41b5dd4.webp?v=1762223896"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2928c4f4fc7c8ea0dd38c93d86b6062bb41b5dd4.webp?v=1762223896","width":2000},{"alt":null,"id":26296999346275,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/955d7df08d66f3af2ba3169732d1a12e7de97f42.webp?v=1762223896"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/955d7df08d66f3af2ba3169732d1a12e7de97f42.webp?v=1762223896","width":2000},{"alt":null,"id":26296999608419,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3e049e32ab81dd2cef051e73be4728d9ac2e99c.webp?v=1762223897"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3e049e32ab81dd2cef051e73be4728d9ac2e99c.webp?v=1762223897","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43812003512419,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-POS10","requires_shipping":true,"taxable":true,"featured_image":{"id":34729129541731,"product_id":7911211401315,"position":3,"created_at":"2025-11-04T10:38:07+08:00","updated_at":"2025-11-04T10:38:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/688bf4602dfe75ff770237ccae8e9dd0668ea5ab.webp?v=1762223889","variant_ids":[43812003512419]},"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-POS10","featured_media":{"alt":null,"id":26296997904483,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/688bf4602dfe75ff770237ccae8e9dd0668ea5ab.webp?v=1762223889"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43812003512419,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-POS10","requires_shipping":true,"taxable":true,"featured_image":{"id":34729129541731,"product_id":7911211401315,"position":3,"created_at":"2025-11-04T10:38:07+08:00","updated_at":"2025-11-04T10:38:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/688bf4602dfe75ff770237ccae8e9dd0668ea5ab.webp?v=1762223889","variant_ids":[43812003512419]},"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-POS10","featured_media":{"alt":null,"id":26296997904483,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/688bf4602dfe75ff770237ccae8e9dd0668ea5ab.webp?v=1762223889"}},"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: "停產" }