$product = {"id":7911324549219,"title":"iPhone 14 Plus Mod NX PosterLad Arial","handle":"iphone-14-plus-mod-nx-printable-pos01","description":null,"published_at":"2025-11-05T10:28:42+08:00","created_at":"2025-11-04T10:57:27+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":90000,"price_min":90000,"price_max":90000,"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":43812322738275,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-POS01","requires_shipping":true,"taxable":true,"featured_image":{"id":34729426190435,"product_id":7911324549219,"position":1,"created_at":"2025-11-04T10:57:29+08:00","updated_at":"2025-11-04T10:57:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2404910c07adfb616aa53d3814d5411bed6e4ee.webp?v=1762225051","variant_ids":[43812322738275]},"available":true,"name":"iPhone 14 Plus Mod NX PosterLad Arial - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-POS01","featured_media":{"alt":null,"id":26297293766755,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2404910c07adfb616aa53d3814d5411bed6e4ee.webp?v=1762225051"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2404910c07adfb616aa53d3814d5411bed6e4ee.webp?v=1762225051","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bec880c7dcfb5fe1b526ae2caa896ac3aa57e91e.webp?v=1762225052","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4038fb0c7ca860f0b0ff405045283ed6e5674971.webp?v=1762225053","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1411e59256460b1e044a1bbfc98dc3080fb80c0e.webp?v=1762225055","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa0f081d3fba24e18c4f2674f2250427eb5f8eca.webp?v=1762225056","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22305dca374b9dd47a41f6bebf4bf377a6bea96d.webp?v=1762225056","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/063eb70134d9f0eb0c3a3dbfaa9655507abadebb.webp?v=1762225057","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64809036dcee6b8f44723e107fb5a3903ba3dc9e.webp?v=1762225058","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5e43119d5cfc081ce2e0d2e5a6cb7d27b7b3446.webp?v=1762225058","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b869560b8df6dd41ab53d0651ef8a46db8c4fef.webp?v=1762225059","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14eb75e389f1ab20bf7894693f7a2e02e9452f48.webp?v=1762225060","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57a0b399e3284ba9df3fa33fad3babbe56db6bda.webp?v=1762225061","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d1b09b0afbe8c146e8aec7c8d9d80d370d495b9.webp?v=1762225062"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2404910c07adfb616aa53d3814d5411bed6e4ee.webp?v=1762225051","options":["color"],"media":[{"alt":null,"id":26297293766755,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2404910c07adfb616aa53d3814d5411bed6e4ee.webp?v=1762225051"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2404910c07adfb616aa53d3814d5411bed6e4ee.webp?v=1762225051","width":2000},{"alt":null,"id":26297293996131,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bec880c7dcfb5fe1b526ae2caa896ac3aa57e91e.webp?v=1762225052"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bec880c7dcfb5fe1b526ae2caa896ac3aa57e91e.webp?v=1762225052","width":2000},{"alt":null,"id":26297294323811,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4038fb0c7ca860f0b0ff405045283ed6e5674971.webp?v=1762225053"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4038fb0c7ca860f0b0ff405045283ed6e5674971.webp?v=1762225053","width":2000},{"alt":null,"id":26297294717027,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1411e59256460b1e044a1bbfc98dc3080fb80c0e.webp?v=1762225055"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1411e59256460b1e044a1bbfc98dc3080fb80c0e.webp?v=1762225055","width":2000},{"alt":null,"id":26297294946403,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa0f081d3fba24e18c4f2674f2250427eb5f8eca.webp?v=1762225056"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa0f081d3fba24e18c4f2674f2250427eb5f8eca.webp?v=1762225056","width":2000},{"alt":null,"id":26297295175779,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22305dca374b9dd47a41f6bebf4bf377a6bea96d.webp?v=1762225056"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22305dca374b9dd47a41f6bebf4bf377a6bea96d.webp?v=1762225056","width":2000},{"alt":null,"id":26297295437923,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/063eb70134d9f0eb0c3a3dbfaa9655507abadebb.webp?v=1762225057"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/063eb70134d9f0eb0c3a3dbfaa9655507abadebb.webp?v=1762225057","width":2000},{"alt":null,"id":26297295634531,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64809036dcee6b8f44723e107fb5a3903ba3dc9e.webp?v=1762225058"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64809036dcee6b8f44723e107fb5a3903ba3dc9e.webp?v=1762225058","width":2000},{"alt":null,"id":26297295863907,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5e43119d5cfc081ce2e0d2e5a6cb7d27b7b3446.webp?v=1762225058"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5e43119d5cfc081ce2e0d2e5a6cb7d27b7b3446.webp?v=1762225058","width":2000},{"alt":null,"id":26297296126051,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b869560b8df6dd41ab53d0651ef8a46db8c4fef.webp?v=1762225059"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b869560b8df6dd41ab53d0651ef8a46db8c4fef.webp?v=1762225059","width":2000},{"alt":null,"id":26297296289891,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14eb75e389f1ab20bf7894693f7a2e02e9452f48.webp?v=1762225060"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14eb75e389f1ab20bf7894693f7a2e02e9452f48.webp?v=1762225060","width":2000},{"alt":null,"id":26297296486499,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57a0b399e3284ba9df3fa33fad3babbe56db6bda.webp?v=1762225061"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57a0b399e3284ba9df3fa33fad3babbe56db6bda.webp?v=1762225061","width":2000},{"alt":null,"id":26297296715875,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d1b09b0afbe8c146e8aec7c8d9d80d370d495b9.webp?v=1762225062"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d1b09b0afbe8c146e8aec7c8d9d80d370d495b9.webp?v=1762225062","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43812322738275,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-POS01","requires_shipping":true,"taxable":true,"featured_image":{"id":34729426190435,"product_id":7911324549219,"position":1,"created_at":"2025-11-04T10:57:29+08:00","updated_at":"2025-11-04T10:57:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2404910c07adfb616aa53d3814d5411bed6e4ee.webp?v=1762225051","variant_ids":[43812322738275]},"available":true,"name":"iPhone 14 Plus Mod NX PosterLad Arial - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-POS01","featured_media":{"alt":null,"id":26297293766755,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2404910c07adfb616aa53d3814d5411bed6e4ee.webp?v=1762225051"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43812322738275,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-POS01","requires_shipping":true,"taxable":true,"featured_image":{"id":34729426190435,"product_id":7911324549219,"position":1,"created_at":"2025-11-04T10:57:29+08:00","updated_at":"2025-11-04T10:57:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2404910c07adfb616aa53d3814d5411bed6e4ee.webp?v=1762225051","variant_ids":[43812322738275]},"available":true,"name":"iPhone 14 Plus Mod NX PosterLad Arial - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-POS01","featured_media":{"alt":null,"id":26297293766755,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2404910c07adfb616aa53d3814d5411bed6e4ee.webp?v=1762225051"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null var sellingStatus if ($bumper) { $(document).ready(function() { var productImg = $product.images[0] var bumperVariants = $bumper.variants; var bumperColors = new Object(); var currentVariant = ''; var productType = ''; bumperVariants.forEach(variant => { bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src; }); if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') { mergeImages( [productImg, bumperColors[currentVariant]], { crossOrigin: 'anonymous' } ).then(mergedImg => { $('.merged-img').attr('src', mergedImg); }); } else { mergeImages( [bumperColors[currentVariant], productImg], { crossOrigin: 'anonymous' } ).then(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: "停產" }