$product = {"id":7892713537635,"title":"iPhone 15 Pro Max Clear Aaron Chang Take Ivy","handle":"iphone-15-pro-max-jellytint-aar09","description":null,"published_at":"2025-10-03T09:35:32+08:00","created_at":"2025-10-02T10:18:11+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-aaronchang","device-iPhone 15 Pro Max","merge","reseller-aaronchang"],"price":128000,"price_min":128000,"price_max":128000,"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":43756870238307,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012980J-AAR09","requires_shipping":true,"taxable":true,"featured_image":{"id":36321404223587,"product_id":7892713537635,"position":7,"created_at":"2026-07-20T15:41:30+08:00","updated_at":"2026-07-20T15:41:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8faaaf3d410524f55580f0382dcbcc79e19f90fd_3990526d-569c-4efd-9119-783421dc8f22.webp?v=1784533292","variant_ids":[43756870238307]},"available":true,"name":"iPhone 15 Pro Max Clear Aaron Chang Take Ivy - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012980J-AAR09","featured_media":{"alt":null,"id":27825351360611,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8faaaf3d410524f55580f0382dcbcc79e19f90fd_3990526d-569c-4efd-9119-783421dc8f22.webp?v=1784533292"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43756871614563,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012980I-AAR09","requires_shipping":true,"taxable":true,"featured_image":{"id":36321403830371,"product_id":7892713537635,"position":6,"created_at":"2026-07-20T15:41:29+08:00","updated_at":"2026-07-20T15:41:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88a79d01d686d90ac0ac31c40f76ef8a4de0312a_d49d51f6-65e1-41e8-84d0-1b36b535bead.webp?v=1784533291","variant_ids":[43756871614563]},"available":true,"name":"iPhone 15 Pro Max Clear Aaron Chang Take Ivy - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012980I-AAR09","featured_media":{"alt":null,"id":27825351000163,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88a79d01d686d90ac0ac31c40f76ef8a4de0312a_d49d51f6-65e1-41e8-84d0-1b36b535bead.webp?v=1784533291"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43756871647331,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012980G-AAR09","requires_shipping":true,"taxable":true,"featured_image":{"id":36321403207779,"product_id":7892713537635,"position":5,"created_at":"2026-07-20T15:41:28+08:00","updated_at":"2026-07-20T15:41:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99bd5e5cba376b394a2e67e2e90e73be2570292a_4e94a17a-3398-45d9-baa7-4d85b39c2171.webp?v=1784533291","variant_ids":[43756871647331]},"available":true,"name":"iPhone 15 Pro Max Clear Aaron Chang Take Ivy - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012980G-AAR09","featured_media":{"alt":null,"id":27825350377571,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99bd5e5cba376b394a2e67e2e90e73be2570292a_4e94a17a-3398-45d9-baa7-4d85b39c2171.webp?v=1784533291"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8faaaf3d410524f55580f0382dcbcc79e19f90fd.webp?v=1759371497","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99bd5e5cba376b394a2e67e2e90e73be2570292a.webp?v=1759371498","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aac4916e8a2223cdf393d88d241c3ff99f2bf980.webp?v=1759371499","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88a79d01d686d90ac0ac31c40f76ef8a4de0312a.webp?v=1759371500","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99bd5e5cba376b394a2e67e2e90e73be2570292a_4e94a17a-3398-45d9-baa7-4d85b39c2171.webp?v=1784533291","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88a79d01d686d90ac0ac31c40f76ef8a4de0312a_d49d51f6-65e1-41e8-84d0-1b36b535bead.webp?v=1784533291","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8faaaf3d410524f55580f0382dcbcc79e19f90fd_3990526d-569c-4efd-9119-783421dc8f22.webp?v=1784533292"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8faaaf3d410524f55580f0382dcbcc79e19f90fd.webp?v=1759371497","options":["color"],"media":[{"alt":null,"id":26113679196259,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8faaaf3d410524f55580f0382dcbcc79e19f90fd.webp?v=1759371497"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8faaaf3d410524f55580f0382dcbcc79e19f90fd.webp?v=1759371497","width":2000},{"alt":null,"id":26113679360099,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99bd5e5cba376b394a2e67e2e90e73be2570292a.webp?v=1759371498"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99bd5e5cba376b394a2e67e2e90e73be2570292a.webp?v=1759371498","width":2000},{"alt":null,"id":26113679491171,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aac4916e8a2223cdf393d88d241c3ff99f2bf980.webp?v=1759371499"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aac4916e8a2223cdf393d88d241c3ff99f2bf980.webp?v=1759371499","width":2000},{"alt":null,"id":26113679720547,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88a79d01d686d90ac0ac31c40f76ef8a4de0312a.webp?v=1759371500"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88a79d01d686d90ac0ac31c40f76ef8a4de0312a.webp?v=1759371500","width":2000},{"alt":null,"id":27825350377571,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99bd5e5cba376b394a2e67e2e90e73be2570292a_4e94a17a-3398-45d9-baa7-4d85b39c2171.webp?v=1784533291"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99bd5e5cba376b394a2e67e2e90e73be2570292a_4e94a17a-3398-45d9-baa7-4d85b39c2171.webp?v=1784533291","width":2000},{"alt":null,"id":27825351000163,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88a79d01d686d90ac0ac31c40f76ef8a4de0312a_d49d51f6-65e1-41e8-84d0-1b36b535bead.webp?v=1784533291"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88a79d01d686d90ac0ac31c40f76ef8a4de0312a_d49d51f6-65e1-41e8-84d0-1b36b535bead.webp?v=1784533291","width":2000},{"alt":null,"id":27825351360611,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8faaaf3d410524f55580f0382dcbcc79e19f90fd_3990526d-569c-4efd-9119-783421dc8f22.webp?v=1784533292"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8faaaf3d410524f55580f0382dcbcc79e19f90fd_3990526d-569c-4efd-9119-783421dc8f22.webp?v=1784533292","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43756870238307,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012980J-AAR09","requires_shipping":true,"taxable":true,"featured_image":{"id":36321404223587,"product_id":7892713537635,"position":7,"created_at":"2026-07-20T15:41:30+08:00","updated_at":"2026-07-20T15:41:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8faaaf3d410524f55580f0382dcbcc79e19f90fd_3990526d-569c-4efd-9119-783421dc8f22.webp?v=1784533292","variant_ids":[43756870238307]},"available":true,"name":"iPhone 15 Pro Max Clear Aaron Chang Take Ivy - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012980J-AAR09","featured_media":{"alt":null,"id":27825351360611,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8faaaf3d410524f55580f0382dcbcc79e19f90fd_3990526d-569c-4efd-9119-783421dc8f22.webp?v=1784533292"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43756871614563,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012980I-AAR09","requires_shipping":true,"taxable":true,"featured_image":{"id":36321403830371,"product_id":7892713537635,"position":6,"created_at":"2026-07-20T15:41:29+08:00","updated_at":"2026-07-20T15:41:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88a79d01d686d90ac0ac31c40f76ef8a4de0312a_d49d51f6-65e1-41e8-84d0-1b36b535bead.webp?v=1784533291","variant_ids":[43756871614563]},"available":true,"name":"iPhone 15 Pro Max Clear Aaron Chang Take Ivy - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012980I-AAR09","featured_media":{"alt":null,"id":27825351000163,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88a79d01d686d90ac0ac31c40f76ef8a4de0312a_d49d51f6-65e1-41e8-84d0-1b36b535bead.webp?v=1784533291"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43756871647331,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012980G-AAR09","requires_shipping":true,"taxable":true,"featured_image":{"id":36321403207779,"product_id":7892713537635,"position":5,"created_at":"2026-07-20T15:41:28+08:00","updated_at":"2026-07-20T15:41:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99bd5e5cba376b394a2e67e2e90e73be2570292a_4e94a17a-3398-45d9-baa7-4d85b39c2171.webp?v=1784533291","variant_ids":[43756871647331]},"available":true,"name":"iPhone 15 Pro Max Clear Aaron Chang Take Ivy - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012980G-AAR09","featured_media":{"alt":null,"id":27825350377571,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99bd5e5cba376b394a2e67e2e90e73be2570292a_4e94a17a-3398-45d9-baa7-4d85b39c2171.webp?v=1784533291"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43756870238307,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012980J-AAR09","requires_shipping":true,"taxable":true,"featured_image":{"id":36321404223587,"product_id":7892713537635,"position":7,"created_at":"2026-07-20T15:41:30+08:00","updated_at":"2026-07-20T15:41:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8faaaf3d410524f55580f0382dcbcc79e19f90fd_3990526d-569c-4efd-9119-783421dc8f22.webp?v=1784533292","variant_ids":[43756870238307]},"available":true,"name":"iPhone 15 Pro Max Clear Aaron Chang Take Ivy - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012980J-AAR09","featured_media":{"alt":null,"id":27825351360611,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8faaaf3d410524f55580f0382dcbcc79e19f90fd_3990526d-569c-4efd-9119-783421dc8f22.webp?v=1784533292"}},"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: "停產" }