$product = {"id":7824426893411,"title":"iPhone 15 Plus SolidX noiinoii Happy總匯","handle":"iphone-15-plus-solidx-mw05","description":null,"published_at":"2025-07-01T17:51:15+08:00","created_at":"2025-06-20T17:55:44+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-noiinoii","device-iPhone 15 Plus","merge","reseller-noiinoii"],"price":125000,"price_min":125000,"price_max":125000,"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":43479073488995,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-MW05","requires_shipping":true,"taxable":true,"featured_image":{"id":34515192610915,"product_id":7824426893411,"position":11,"created_at":"2025-09-22T16:23:59+08:00","updated_at":"2025-09-22T16:24:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccb52824ea8b919b9a50c82df215d0e590205f9c.webp?v=1758529441","variant_ids":[43479073488995]},"available":true,"name":"iPhone 15 Plus SolidX noiinoii Happy總匯 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129652-MW05","featured_media":{"alt":null,"id":26085633523811,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccb52824ea8b919b9a50c82df215d0e590205f9c.webp?v=1758529441"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43479076831331,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"NST01296O8-MW05","requires_shipping":true,"taxable":true,"featured_image":{"id":34515193102435,"product_id":7824426893411,"position":12,"created_at":"2025-09-22T16:23:59+08:00","updated_at":"2025-09-22T16:24:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d47fa873f9d7da14fc021f9130eb5ab3d5c0a275.webp?v=1758529441","variant_ids":[43479076831331]},"available":true,"name":"iPhone 15 Plus SolidX noiinoii Happy總匯 - Ash Grey","public_title":"Ash Grey","options":["Ash Grey"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01296O8-MW05","featured_media":{"alt":null,"id":26085634015331,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d47fa873f9d7da14fc021f9130eb5ab3d5c0a275.webp?v=1758529441"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43479077027939,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-MW05","requires_shipping":true,"taxable":true,"featured_image":{"id":34515191103587,"product_id":7824426893411,"position":5,"created_at":"2025-09-22T16:23:55+08:00","updated_at":"2025-09-22T16:23:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/974089ea6f5a484393e8cfee604a51f41c9c13ea.webp?v=1758529438","variant_ids":[43479077027939]},"available":true,"name":"iPhone 15 Plus SolidX noiinoii Happy總匯 - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST012960B-MW05","featured_media":{"alt":null,"id":26085631787107,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/974089ea6f5a484393e8cfee604a51f41c9c13ea.webp?v=1758529438"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-296-MW05.png?v=1750413347","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-MW05_a63c0e15-4f4d-4922-9c9e-28edbfa42fe8.png?v=1750820907","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c3fcd7ba02dd21cddf422b47e110e08b40ae62f.webp?v=1758529436","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a238ad586e7049d07e469800ab28416acf574554.webp?v=1758529437","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/974089ea6f5a484393e8cfee604a51f41c9c13ea.webp?v=1758529438","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7190c974fc9ce62e8cda59816fcbfb0d5b390dc1.webp?v=1758529438","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7989b00c62d9859503598cc1dc1df2b606b5a1fb.webp?v=1758529439","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30ef5eb80a60bd9c8462417b88d18f7cc9a6cc21.webp?v=1758529439","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c49e18dc1e6d293f406a5a3aef8138fc112a8ac.webp?v=1758529439","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bc29cdcbb4c2d05915f47340eb2c3d81d4c40f8.webp?v=1758529440","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccb52824ea8b919b9a50c82df215d0e590205f9c.webp?v=1758529441","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d47fa873f9d7da14fc021f9130eb5ab3d5c0a275.webp?v=1758529441"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-296-MW05.png?v=1750413347","options":["color"],"media":[{"alt":null,"id":25722067648611,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-296-MW05.png?v=1750413347"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-296-MW05.png?v=1750413347","width":2000},{"alt":null,"id":25735192903779,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-MW05_a63c0e15-4f4d-4922-9c9e-28edbfa42fe8.png?v=1750820907"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-MW05_a63c0e15-4f4d-4922-9c9e-28edbfa42fe8.png?v=1750820907","width":2000},{"alt":null,"id":26085631426659,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c3fcd7ba02dd21cddf422b47e110e08b40ae62f.webp?v=1758529436"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c3fcd7ba02dd21cddf422b47e110e08b40ae62f.webp?v=1758529436","width":2000},{"alt":null,"id":26085631524963,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a238ad586e7049d07e469800ab28416acf574554.webp?v=1758529437"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a238ad586e7049d07e469800ab28416acf574554.webp?v=1758529437","width":2000},{"alt":null,"id":26085631787107,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/974089ea6f5a484393e8cfee604a51f41c9c13ea.webp?v=1758529438"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/974089ea6f5a484393e8cfee604a51f41c9c13ea.webp?v=1758529438","width":2000},{"alt":null,"id":26085632278627,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7190c974fc9ce62e8cda59816fcbfb0d5b390dc1.webp?v=1758529438"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7190c974fc9ce62e8cda59816fcbfb0d5b390dc1.webp?v=1758529438","width":2000},{"alt":null,"id":26085632475235,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7989b00c62d9859503598cc1dc1df2b606b5a1fb.webp?v=1758529439"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7989b00c62d9859503598cc1dc1df2b606b5a1fb.webp?v=1758529439","width":2000},{"alt":null,"id":26085632606307,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30ef5eb80a60bd9c8462417b88d18f7cc9a6cc21.webp?v=1758529439"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30ef5eb80a60bd9c8462417b88d18f7cc9a6cc21.webp?v=1758529439","width":2000},{"alt":null,"id":26085633032291,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c49e18dc1e6d293f406a5a3aef8138fc112a8ac.webp?v=1758529439"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c49e18dc1e6d293f406a5a3aef8138fc112a8ac.webp?v=1758529439","width":2000},{"alt":null,"id":26085633261667,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bc29cdcbb4c2d05915f47340eb2c3d81d4c40f8.webp?v=1758529440"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bc29cdcbb4c2d05915f47340eb2c3d81d4c40f8.webp?v=1758529440","width":2000},{"alt":null,"id":26085633523811,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccb52824ea8b919b9a50c82df215d0e590205f9c.webp?v=1758529441"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccb52824ea8b919b9a50c82df215d0e590205f9c.webp?v=1758529441","width":2000},{"alt":null,"id":26085634015331,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d47fa873f9d7da14fc021f9130eb5ab3d5c0a275.webp?v=1758529441"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d47fa873f9d7da14fc021f9130eb5ab3d5c0a275.webp?v=1758529441","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43479073488995,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-MW05","requires_shipping":true,"taxable":true,"featured_image":{"id":34515192610915,"product_id":7824426893411,"position":11,"created_at":"2025-09-22T16:23:59+08:00","updated_at":"2025-09-22T16:24:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccb52824ea8b919b9a50c82df215d0e590205f9c.webp?v=1758529441","variant_ids":[43479073488995]},"available":true,"name":"iPhone 15 Plus SolidX noiinoii Happy總匯 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129652-MW05","featured_media":{"alt":null,"id":26085633523811,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccb52824ea8b919b9a50c82df215d0e590205f9c.webp?v=1758529441"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43479076831331,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"NST01296O8-MW05","requires_shipping":true,"taxable":true,"featured_image":{"id":34515193102435,"product_id":7824426893411,"position":12,"created_at":"2025-09-22T16:23:59+08:00","updated_at":"2025-09-22T16:24:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d47fa873f9d7da14fc021f9130eb5ab3d5c0a275.webp?v=1758529441","variant_ids":[43479076831331]},"available":true,"name":"iPhone 15 Plus SolidX noiinoii Happy總匯 - Ash Grey","public_title":"Ash Grey","options":["Ash Grey"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01296O8-MW05","featured_media":{"alt":null,"id":26085634015331,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d47fa873f9d7da14fc021f9130eb5ab3d5c0a275.webp?v=1758529441"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43479077027939,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-MW05","requires_shipping":true,"taxable":true,"featured_image":{"id":34515191103587,"product_id":7824426893411,"position":5,"created_at":"2025-09-22T16:23:55+08:00","updated_at":"2025-09-22T16:23:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/974089ea6f5a484393e8cfee604a51f41c9c13ea.webp?v=1758529438","variant_ids":[43479077027939]},"available":true,"name":"iPhone 15 Plus SolidX noiinoii Happy總匯 - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST012960B-MW05","featured_media":{"alt":null,"id":26085631787107,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/974089ea6f5a484393e8cfee604a51f41c9c13ea.webp?v=1758529438"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43479073488995,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-MW05","requires_shipping":true,"taxable":true,"featured_image":{"id":34515192610915,"product_id":7824426893411,"position":11,"created_at":"2025-09-22T16:23:59+08:00","updated_at":"2025-09-22T16:24:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccb52824ea8b919b9a50c82df215d0e590205f9c.webp?v=1758529441","variant_ids":[43479073488995]},"available":true,"name":"iPhone 15 Plus SolidX noiinoii Happy總匯 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129652-MW05","featured_media":{"alt":null,"id":26085633523811,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccb52824ea8b919b9a50c82df215d0e590205f9c.webp?v=1758529441"}},"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: "停產" }