$product = {"id":7911282573411,"title":"iPhone 13 mini Mod NX (MagSafe 兼容) PosterLad 樹","handle":"iphone-13-mini-mod-nx-magsafe-printable-pos09","description":null,"published_at":"2025-11-05T10:34:36+08:00","created_at":"2025-11-04T10:50:20+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-posterlad","device-iPhone 13 Mini","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":43812198285411,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0122824-POS09","requires_shipping":true,"taxable":true,"featured_image":{"id":34729313894499,"product_id":7911282573411,"position":10,"created_at":"2025-11-04T10:50:31+08:00","updated_at":"2025-11-04T10:50:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18743268490d156975458074f36bb25199114a09.webp?v=1762224633","variant_ids":[43812198285411]},"available":true,"name":"iPhone 13 mini 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":"MPB0122824-POS09","featured_media":{"alt":null,"id":26297182027875,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18743268490d156975458074f36bb25199114a09.webp?v=1762224633"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43812198318179,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01228J5-POS09","requires_shipping":true,"taxable":true,"featured_image":{"id":34729313697891,"product_id":7911282573411,"position":9,"created_at":"2025-11-04T10:50:30+08:00","updated_at":"2025-11-04T10:50:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fc5686cafe265a755b149df6ccfb3f8cbcb7048.webp?v=1762224632","variant_ids":[43812198318179]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) PosterLad 樹 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01228J5-POS09","featured_media":{"alt":null,"id":26297181732963,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fc5686cafe265a755b149df6ccfb3f8cbcb7048.webp?v=1762224632"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43812198482019,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0122804-POS09","requires_shipping":true,"taxable":true,"featured_image":{"id":34729313108067,"product_id":7911282573411,"position":6,"created_at":"2025-11-04T10:50:28+08:00","updated_at":"2025-11-04T10:50:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af47fdddc67b15a699b99c410e104eedf346be9d.webp?v=1762224629","variant_ids":[43812198482019]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) PosterLad 樹 - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122804-POS09","featured_media":{"alt":null,"id":26297181143139,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af47fdddc67b15a699b99c410e104eedf346be9d.webp?v=1762224629"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0975eff9d075dfef2668ee2a82a3b8832c3ff86e.webp?v=1762224625","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/923cb5d5aa99bda9bacfc5fbdc626739080cb245.webp?v=1762224626","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4e7d8c90443d59582339267e2353892e075ac4f.webp?v=1762224627","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c8d31620263f4717b81658deaff96db3f968375.webp?v=1762224628","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42062285fa49cd0fb0914a367f17595f219ed45f.webp?v=1762224629","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af47fdddc67b15a699b99c410e104eedf346be9d.webp?v=1762224629","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bae32d50686b5b52f4d662da50dcdb7356988ebf.webp?v=1762224630","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92ec7ea388985e75bb6199d8877fd8eb65fc6b51.webp?v=1762224631","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fc5686cafe265a755b149df6ccfb3f8cbcb7048.webp?v=1762224632","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18743268490d156975458074f36bb25199114a09.webp?v=1762224633"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0975eff9d075dfef2668ee2a82a3b8832c3ff86e.webp?v=1762224625","options":["color"],"media":[{"alt":null,"id":26297179897955,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0975eff9d075dfef2668ee2a82a3b8832c3ff86e.webp?v=1762224625"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0975eff9d075dfef2668ee2a82a3b8832c3ff86e.webp?v=1762224625","width":2000},{"alt":null,"id":26297180127331,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/923cb5d5aa99bda9bacfc5fbdc626739080cb245.webp?v=1762224626"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/923cb5d5aa99bda9bacfc5fbdc626739080cb245.webp?v=1762224626","width":2000},{"alt":null,"id":26297180455011,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4e7d8c90443d59582339267e2353892e075ac4f.webp?v=1762224627"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4e7d8c90443d59582339267e2353892e075ac4f.webp?v=1762224627","width":2000},{"alt":null,"id":26297180618851,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c8d31620263f4717b81658deaff96db3f968375.webp?v=1762224628"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c8d31620263f4717b81658deaff96db3f968375.webp?v=1762224628","width":2000},{"alt":null,"id":26297180913763,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42062285fa49cd0fb0914a367f17595f219ed45f.webp?v=1762224629"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42062285fa49cd0fb0914a367f17595f219ed45f.webp?v=1762224629","width":2000},{"alt":null,"id":26297181143139,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af47fdddc67b15a699b99c410e104eedf346be9d.webp?v=1762224629"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af47fdddc67b15a699b99c410e104eedf346be9d.webp?v=1762224629","width":2000},{"alt":null,"id":26297181306979,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bae32d50686b5b52f4d662da50dcdb7356988ebf.webp?v=1762224630"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bae32d50686b5b52f4d662da50dcdb7356988ebf.webp?v=1762224630","width":2000},{"alt":null,"id":26297181503587,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92ec7ea388985e75bb6199d8877fd8eb65fc6b51.webp?v=1762224631"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92ec7ea388985e75bb6199d8877fd8eb65fc6b51.webp?v=1762224631","width":2000},{"alt":null,"id":26297181732963,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fc5686cafe265a755b149df6ccfb3f8cbcb7048.webp?v=1762224632"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fc5686cafe265a755b149df6ccfb3f8cbcb7048.webp?v=1762224632","width":2000},{"alt":null,"id":26297182027875,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18743268490d156975458074f36bb25199114a09.webp?v=1762224633"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18743268490d156975458074f36bb25199114a09.webp?v=1762224633","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43812198285411,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0122824-POS09","requires_shipping":true,"taxable":true,"featured_image":{"id":34729313894499,"product_id":7911282573411,"position":10,"created_at":"2025-11-04T10:50:31+08:00","updated_at":"2025-11-04T10:50:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18743268490d156975458074f36bb25199114a09.webp?v=1762224633","variant_ids":[43812198285411]},"available":true,"name":"iPhone 13 mini 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":"MPB0122824-POS09","featured_media":{"alt":null,"id":26297182027875,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18743268490d156975458074f36bb25199114a09.webp?v=1762224633"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43812198318179,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01228J5-POS09","requires_shipping":true,"taxable":true,"featured_image":{"id":34729313697891,"product_id":7911282573411,"position":9,"created_at":"2025-11-04T10:50:30+08:00","updated_at":"2025-11-04T10:50:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fc5686cafe265a755b149df6ccfb3f8cbcb7048.webp?v=1762224632","variant_ids":[43812198318179]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) PosterLad 樹 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01228J5-POS09","featured_media":{"alt":null,"id":26297181732963,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fc5686cafe265a755b149df6ccfb3f8cbcb7048.webp?v=1762224632"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43812198482019,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0122804-POS09","requires_shipping":true,"taxable":true,"featured_image":{"id":34729313108067,"product_id":7911282573411,"position":6,"created_at":"2025-11-04T10:50:28+08:00","updated_at":"2025-11-04T10:50:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af47fdddc67b15a699b99c410e104eedf346be9d.webp?v=1762224629","variant_ids":[43812198482019]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) PosterLad 樹 - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122804-POS09","featured_media":{"alt":null,"id":26297181143139,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af47fdddc67b15a699b99c410e104eedf346be9d.webp?v=1762224629"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43812198285411,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0122824-POS09","requires_shipping":true,"taxable":true,"featured_image":{"id":34729313894499,"product_id":7911282573411,"position":10,"created_at":"2025-11-04T10:50:31+08:00","updated_at":"2025-11-04T10:50:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18743268490d156975458074f36bb25199114a09.webp?v=1762224633","variant_ids":[43812198285411]},"available":true,"name":"iPhone 13 mini 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":"MPB0122824-POS09","featured_media":{"alt":null,"id":26297182027875,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18743268490d156975458074f36bb25199114a09.webp?v=1762224633"}},"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: "停產" }