$product = {"id":7911303479395,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) PosterLad 樹","handle":"iphone-14-plus-mod-nx-magsafe-printable-pos09","description":null,"published_at":"2025-11-05T10:31:45+08:00","created_at":"2025-11-04T10:53:58+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":43812262346851,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-POS09","requires_shipping":true,"taxable":true,"featured_image":{"id":34729373270115,"product_id":7911303479395,"position":5,"created_at":"2025-11-04T10:54:04+08:00","updated_at":"2025-11-04T10:54:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c874187e246c0d5d4196e5c3e76ff91ed18e8bae.webp?v=1762224846","variant_ids":[43812262346851]},"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-POS09","featured_media":{"alt":null,"id":26297240846435,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c874187e246c0d5d4196e5c3e76ff91ed18e8bae.webp?v=1762224846"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b588ddb548b47e1db34da629725548ad5efb5696.webp?v=1762224843","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9029c12dc1ac22b21b1e0e92de65828fd5da25d2.webp?v=1762224843","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f4be51aac201ec4a369c3d4f03bd914049af19e.webp?v=1762224844","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86e6b1c8cc1ce9398572a9cd3ed3c2db893b6b45.webp?v=1762224845","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c874187e246c0d5d4196e5c3e76ff91ed18e8bae.webp?v=1762224846","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/577e2e68d0efe9f1dbeeb08ff8552bf00294d3c0.webp?v=1762224847","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7aa0ac39482e0a71fd2bb65d27cfdfe5b3d4c445.webp?v=1762224847","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1d9f92387ff8821b13450c646917bb2ae2e4493.webp?v=1762224848","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c6ae08bb876e28886a8d284036cd534a5a0f45c.webp?v=1762224849","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ed76e5ffaa3fe416fea6ce66706a198fadafcbf.webp?v=1762224850","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb57c08a2cbd5e3532e9f33774fd9a91797034b8.webp?v=1762224850","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f790733a303906545e46bd3b864fdefe23a0d23.webp?v=1762224851","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f2f38a00c9367ee75f58d5a79a0a18406c35715.webp?v=1762224852"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b588ddb548b47e1db34da629725548ad5efb5696.webp?v=1762224843","options":["color"],"media":[{"alt":null,"id":26297240027235,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b588ddb548b47e1db34da629725548ad5efb5696.webp?v=1762224843"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b588ddb548b47e1db34da629725548ad5efb5696.webp?v=1762224843","width":2000},{"alt":null,"id":26297240223843,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9029c12dc1ac22b21b1e0e92de65828fd5da25d2.webp?v=1762224843"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9029c12dc1ac22b21b1e0e92de65828fd5da25d2.webp?v=1762224843","width":2000},{"alt":null,"id":26297240518755,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f4be51aac201ec4a369c3d4f03bd914049af19e.webp?v=1762224844"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f4be51aac201ec4a369c3d4f03bd914049af19e.webp?v=1762224844","width":2000},{"alt":null,"id":26297240715363,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86e6b1c8cc1ce9398572a9cd3ed3c2db893b6b45.webp?v=1762224845"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86e6b1c8cc1ce9398572a9cd3ed3c2db893b6b45.webp?v=1762224845","width":2000},{"alt":null,"id":26297240846435,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c874187e246c0d5d4196e5c3e76ff91ed18e8bae.webp?v=1762224846"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c874187e246c0d5d4196e5c3e76ff91ed18e8bae.webp?v=1762224846","width":2000},{"alt":null,"id":26297240977507,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/577e2e68d0efe9f1dbeeb08ff8552bf00294d3c0.webp?v=1762224847"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/577e2e68d0efe9f1dbeeb08ff8552bf00294d3c0.webp?v=1762224847","width":2000},{"alt":null,"id":26297241174115,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7aa0ac39482e0a71fd2bb65d27cfdfe5b3d4c445.webp?v=1762224847"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7aa0ac39482e0a71fd2bb65d27cfdfe5b3d4c445.webp?v=1762224847","width":2000},{"alt":null,"id":26297241403491,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1d9f92387ff8821b13450c646917bb2ae2e4493.webp?v=1762224848"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1d9f92387ff8821b13450c646917bb2ae2e4493.webp?v=1762224848","width":2000},{"alt":null,"id":26297241501795,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c6ae08bb876e28886a8d284036cd534a5a0f45c.webp?v=1762224849"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c6ae08bb876e28886a8d284036cd534a5a0f45c.webp?v=1762224849","width":2000},{"alt":null,"id":26297241698403,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ed76e5ffaa3fe416fea6ce66706a198fadafcbf.webp?v=1762224850"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ed76e5ffaa3fe416fea6ce66706a198fadafcbf.webp?v=1762224850","width":2000},{"alt":null,"id":26297241927779,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb57c08a2cbd5e3532e9f33774fd9a91797034b8.webp?v=1762224850"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb57c08a2cbd5e3532e9f33774fd9a91797034b8.webp?v=1762224850","width":2000},{"alt":null,"id":26297242157155,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f790733a303906545e46bd3b864fdefe23a0d23.webp?v=1762224851"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f790733a303906545e46bd3b864fdefe23a0d23.webp?v=1762224851","width":2000},{"alt":null,"id":26297242353763,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f2f38a00c9367ee75f58d5a79a0a18406c35715.webp?v=1762224852"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f2f38a00c9367ee75f58d5a79a0a18406c35715.webp?v=1762224852","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43812262346851,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-POS09","requires_shipping":true,"taxable":true,"featured_image":{"id":34729373270115,"product_id":7911303479395,"position":5,"created_at":"2025-11-04T10:54:04+08:00","updated_at":"2025-11-04T10:54:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c874187e246c0d5d4196e5c3e76ff91ed18e8bae.webp?v=1762224846","variant_ids":[43812262346851]},"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-POS09","featured_media":{"alt":null,"id":26297240846435,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c874187e246c0d5d4196e5c3e76ff91ed18e8bae.webp?v=1762224846"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43812262346851,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-POS09","requires_shipping":true,"taxable":true,"featured_image":{"id":34729373270115,"product_id":7911303479395,"position":5,"created_at":"2025-11-04T10:54:04+08:00","updated_at":"2025-11-04T10:54:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c874187e246c0d5d4196e5c3e76ff91ed18e8bae.webp?v=1762224846","variant_ids":[43812262346851]},"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-POS09","featured_media":{"alt":null,"id":26297240846435,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c874187e246c0d5d4196e5c3e76ff91ed18e8bae.webp?v=1762224846"}},"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: "停產" }