$product = {"id":7893805269091,"title":"iPhone 14 Pro Mod NX Chubbynida 綠野花海","handle":"iphone-14-pro-mod-nx-printable-chu03","description":null,"published_at":"2025-10-09T09:34:21+08:00","created_at":"2025-10-07T10:15:26+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-chubbynida","device-iPhone 14 Pro","merge","reseller-chubbynida"],"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":43763335102563,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-CHU03","requires_shipping":true,"taxable":true,"featured_image":{"id":34553065537635,"product_id":7893805269091,"position":11,"created_at":"2025-10-07T10:15:38+08:00","updated_at":"2025-10-07T10:15:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fda736da86959b7e29b8a011007949a34cdc35d.webp?v=1759803340","variant_ids":[43763335102563]},"available":true,"name":"iPhone 14 Pro Mod NX Chubbynida 綠野花海 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126224-CHU03","featured_media":{"alt":null,"id":26122713235555,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fda736da86959b7e29b8a011007949a34cdc35d.webp?v=1759803340"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43763335168099,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-CHU03","requires_shipping":true,"taxable":true,"featured_image":{"id":34553065406563,"product_id":7893805269091,"position":10,"created_at":"2025-10-07T10:15:37+08:00","updated_at":"2025-10-07T10:15:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30b75de3cba03a28dd12576cc1add45c7c5b80c8.webp?v=1759803339","variant_ids":[43763335168099]},"available":true,"name":"iPhone 14 Pro Mod NX Chubbynida 綠野花海 - White","public_title":"White","options":["White"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126204-CHU03","featured_media":{"alt":null,"id":26122713104483,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30b75de3cba03a28dd12576cc1add45c7c5b80c8.webp?v=1759803339"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43763335233635,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-CHU03","requires_shipping":true,"taxable":true,"featured_image":{"id":34553065242723,"product_id":7893805269091,"position":9,"created_at":"2025-10-07T10:15:37+08:00","updated_at":"2025-10-07T10:15:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c99f82cf9d6df6688d74117fba7576656055b2aa.webp?v=1759803339","variant_ids":[43763335233635]},"available":true,"name":"iPhone 14 Pro Mod NX Chubbynida 綠野花海 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01262J5-CHU03","featured_media":{"alt":null,"id":26122712940643,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c99f82cf9d6df6688d74117fba7576656055b2aa.webp?v=1759803339"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b808b12084ce7fe14737c380384c604fa252c87.webp?v=1759803333","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/164d6cf3019fc21f7cbeb9bfab96b30e026963cc.webp?v=1759803334","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56b48b03d3979f313886f38ca6ee41b2fb937259.webp?v=1759803334","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03ffdc6608db6619f2baabeb10d307546a03292f.webp?v=1759803335","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87c8462d8daf19b591109bb6bf0c46bcc61d1c94.webp?v=1759803336","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78d8e93c8030eaf6d441a43f67b719e8aa1f621e.webp?v=1759803336","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b161927f1356adedeace213417163d089c7e340d.webp?v=1759803337","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ec8cf41bfb1406a837dea81a6d09065526f0d78.webp?v=1759803338","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c99f82cf9d6df6688d74117fba7576656055b2aa.webp?v=1759803339","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30b75de3cba03a28dd12576cc1add45c7c5b80c8.webp?v=1759803339","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fda736da86959b7e29b8a011007949a34cdc35d.webp?v=1759803340","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6bf0999986acc63de93ea238dbb9d251ce8110b3.webp?v=1759803341"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b808b12084ce7fe14737c380384c604fa252c87.webp?v=1759803333","options":["color"],"media":[{"alt":null,"id":26122711335011,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b808b12084ce7fe14737c380384c604fa252c87.webp?v=1759803333"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b808b12084ce7fe14737c380384c604fa252c87.webp?v=1759803333","width":2000},{"alt":null,"id":26122711466083,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/164d6cf3019fc21f7cbeb9bfab96b30e026963cc.webp?v=1759803334"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/164d6cf3019fc21f7cbeb9bfab96b30e026963cc.webp?v=1759803334","width":2000},{"alt":null,"id":26122711629923,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56b48b03d3979f313886f38ca6ee41b2fb937259.webp?v=1759803334"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56b48b03d3979f313886f38ca6ee41b2fb937259.webp?v=1759803334","width":2000},{"alt":null,"id":26122711760995,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03ffdc6608db6619f2baabeb10d307546a03292f.webp?v=1759803335"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03ffdc6608db6619f2baabeb10d307546a03292f.webp?v=1759803335","width":2000},{"alt":null,"id":26122711957603,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87c8462d8daf19b591109bb6bf0c46bcc61d1c94.webp?v=1759803336"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87c8462d8daf19b591109bb6bf0c46bcc61d1c94.webp?v=1759803336","width":2000},{"alt":null,"id":26122712154211,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78d8e93c8030eaf6d441a43f67b719e8aa1f621e.webp?v=1759803336"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78d8e93c8030eaf6d441a43f67b719e8aa1f621e.webp?v=1759803336","width":2000},{"alt":null,"id":26122712383587,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b161927f1356adedeace213417163d089c7e340d.webp?v=1759803337"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b161927f1356adedeace213417163d089c7e340d.webp?v=1759803337","width":2000},{"alt":null,"id":26122712678499,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ec8cf41bfb1406a837dea81a6d09065526f0d78.webp?v=1759803338"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ec8cf41bfb1406a837dea81a6d09065526f0d78.webp?v=1759803338","width":2000},{"alt":null,"id":26122712940643,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c99f82cf9d6df6688d74117fba7576656055b2aa.webp?v=1759803339"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c99f82cf9d6df6688d74117fba7576656055b2aa.webp?v=1759803339","width":2000},{"alt":null,"id":26122713104483,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30b75de3cba03a28dd12576cc1add45c7c5b80c8.webp?v=1759803339"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30b75de3cba03a28dd12576cc1add45c7c5b80c8.webp?v=1759803339","width":2000},{"alt":null,"id":26122713235555,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fda736da86959b7e29b8a011007949a34cdc35d.webp?v=1759803340"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fda736da86959b7e29b8a011007949a34cdc35d.webp?v=1759803340","width":2000},{"alt":null,"id":26122713464931,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6bf0999986acc63de93ea238dbb9d251ce8110b3.webp?v=1759803341"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6bf0999986acc63de93ea238dbb9d251ce8110b3.webp?v=1759803341","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43763335102563,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-CHU03","requires_shipping":true,"taxable":true,"featured_image":{"id":34553065537635,"product_id":7893805269091,"position":11,"created_at":"2025-10-07T10:15:38+08:00","updated_at":"2025-10-07T10:15:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fda736da86959b7e29b8a011007949a34cdc35d.webp?v=1759803340","variant_ids":[43763335102563]},"available":true,"name":"iPhone 14 Pro Mod NX Chubbynida 綠野花海 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126224-CHU03","featured_media":{"alt":null,"id":26122713235555,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fda736da86959b7e29b8a011007949a34cdc35d.webp?v=1759803340"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43763335168099,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-CHU03","requires_shipping":true,"taxable":true,"featured_image":{"id":34553065406563,"product_id":7893805269091,"position":10,"created_at":"2025-10-07T10:15:37+08:00","updated_at":"2025-10-07T10:15:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30b75de3cba03a28dd12576cc1add45c7c5b80c8.webp?v=1759803339","variant_ids":[43763335168099]},"available":true,"name":"iPhone 14 Pro Mod NX Chubbynida 綠野花海 - White","public_title":"White","options":["White"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126204-CHU03","featured_media":{"alt":null,"id":26122713104483,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30b75de3cba03a28dd12576cc1add45c7c5b80c8.webp?v=1759803339"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43763335233635,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-CHU03","requires_shipping":true,"taxable":true,"featured_image":{"id":34553065242723,"product_id":7893805269091,"position":9,"created_at":"2025-10-07T10:15:37+08:00","updated_at":"2025-10-07T10:15:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c99f82cf9d6df6688d74117fba7576656055b2aa.webp?v=1759803339","variant_ids":[43763335233635]},"available":true,"name":"iPhone 14 Pro Mod NX Chubbynida 綠野花海 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01262J5-CHU03","featured_media":{"alt":null,"id":26122712940643,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c99f82cf9d6df6688d74117fba7576656055b2aa.webp?v=1759803339"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43763335102563,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-CHU03","requires_shipping":true,"taxable":true,"featured_image":{"id":34553065537635,"product_id":7893805269091,"position":11,"created_at":"2025-10-07T10:15:38+08:00","updated_at":"2025-10-07T10:15:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fda736da86959b7e29b8a011007949a34cdc35d.webp?v=1759803340","variant_ids":[43763335102563]},"available":true,"name":"iPhone 14 Pro Mod NX Chubbynida 綠野花海 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126224-CHU03","featured_media":{"alt":null,"id":26122713235555,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fda736da86959b7e29b8a011007949a34cdc35d.webp?v=1759803340"}},"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: "停產" }