$product = {"id":7892675887203,"title":"iPhone 15 Plus Clear (MagSafe 兼容) Aaron Chang Yin\u0026Yang","handle":"iphone-15-plus-jellytint-magsafe-aar04","description":null,"published_at":"2025-10-03T09:41:49+08:00","created_at":"2025-10-02T10:08:26+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-aaronchang","device-iPhone 15 Plus","merge","reseller-aaronchang"],"price":135000,"price_min":135000,"price_max":135000,"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":43756729565283,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"MCN012960J-AAR04","requires_shipping":true,"taxable":true,"featured_image":{"id":34543784525923,"product_id":7892675887203,"position":4,"created_at":"2025-10-02T10:08:29+08:00","updated_at":"2025-10-02T10:08:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f56965edfc869f9f76f3a92096ad90f657a630db.webp?v=1759370912","variant_ids":[43756729565283]},"available":true,"name":"iPhone 15 Plus Clear (MagSafe 兼容) Aaron Chang Yin\u0026Yang - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":135000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012960J-AAR04","featured_media":{"alt":null,"id":26113539407971,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f56965edfc869f9f76f3a92096ad90f657a630db.webp?v=1759370912"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43756731433059,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"MCN012960I-AAR04","requires_shipping":true,"taxable":true,"featured_image":{"id":34543784362083,"product_id":7892675887203,"position":3,"created_at":"2025-10-02T10:08:28+08:00","updated_at":"2025-10-02T10:08:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95c7987a94a439ddeb96c8218754f166a47f5faf.webp?v=1759370911","variant_ids":[43756731433059]},"available":true,"name":"iPhone 15 Plus Clear (MagSafe 兼容) Aaron Chang Yin\u0026Yang - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":135000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012960I-AAR04","featured_media":{"alt":null,"id":26113539244131,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95c7987a94a439ddeb96c8218754f166a47f5faf.webp?v=1759370911"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43756731465827,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MCN012960G-AAR04","requires_shipping":true,"taxable":true,"featured_image":{"id":34543784231011,"product_id":7892675887203,"position":2,"created_at":"2025-10-02T10:08:28+08:00","updated_at":"2025-10-02T10:08:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3e74c3bb0c0899fa68fc35bf33412698ad059ae.webp?v=1759370910","variant_ids":[43756731465827]},"available":true,"name":"iPhone 15 Plus Clear (MagSafe 兼容) Aaron Chang Yin\u0026Yang - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":135000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012960G-AAR04","featured_media":{"alt":null,"id":26113539113059,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3e74c3bb0c0899fa68fc35bf33412698ad059ae.webp?v=1759370910"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43756731498595,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"MCN012960H-AAR04","requires_shipping":true,"taxable":true,"featured_image":{"id":34543784099939,"product_id":7892675887203,"position":1,"created_at":"2025-10-02T10:08:27+08:00","updated_at":"2025-10-02T10:08:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbc2267f5e29d02cfcc54a3b103d36f666905e76.webp?v=1759370909","variant_ids":[43756731498595]},"available":true,"name":"iPhone 15 Plus Clear (MagSafe 兼容) Aaron Chang Yin\u0026Yang - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":135000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012960H-AAR04","featured_media":{"alt":null,"id":26113538981987,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbc2267f5e29d02cfcc54a3b103d36f666905e76.webp?v=1759370909"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbc2267f5e29d02cfcc54a3b103d36f666905e76.webp?v=1759370909","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3e74c3bb0c0899fa68fc35bf33412698ad059ae.webp?v=1759370910","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95c7987a94a439ddeb96c8218754f166a47f5faf.webp?v=1759370911","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f56965edfc869f9f76f3a92096ad90f657a630db.webp?v=1759370912"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbc2267f5e29d02cfcc54a3b103d36f666905e76.webp?v=1759370909","options":["color"],"media":[{"alt":null,"id":26113538981987,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbc2267f5e29d02cfcc54a3b103d36f666905e76.webp?v=1759370909"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbc2267f5e29d02cfcc54a3b103d36f666905e76.webp?v=1759370909","width":2000},{"alt":null,"id":26113539113059,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3e74c3bb0c0899fa68fc35bf33412698ad059ae.webp?v=1759370910"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3e74c3bb0c0899fa68fc35bf33412698ad059ae.webp?v=1759370910","width":2000},{"alt":null,"id":26113539244131,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95c7987a94a439ddeb96c8218754f166a47f5faf.webp?v=1759370911"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95c7987a94a439ddeb96c8218754f166a47f5faf.webp?v=1759370911","width":2000},{"alt":null,"id":26113539407971,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f56965edfc869f9f76f3a92096ad90f657a630db.webp?v=1759370912"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f56965edfc869f9f76f3a92096ad90f657a630db.webp?v=1759370912","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43756729565283,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"MCN012960J-AAR04","requires_shipping":true,"taxable":true,"featured_image":{"id":34543784525923,"product_id":7892675887203,"position":4,"created_at":"2025-10-02T10:08:29+08:00","updated_at":"2025-10-02T10:08:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f56965edfc869f9f76f3a92096ad90f657a630db.webp?v=1759370912","variant_ids":[43756729565283]},"available":true,"name":"iPhone 15 Plus Clear (MagSafe 兼容) Aaron Chang Yin\u0026Yang - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":135000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012960J-AAR04","featured_media":{"alt":null,"id":26113539407971,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f56965edfc869f9f76f3a92096ad90f657a630db.webp?v=1759370912"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43756731433059,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"MCN012960I-AAR04","requires_shipping":true,"taxable":true,"featured_image":{"id":34543784362083,"product_id":7892675887203,"position":3,"created_at":"2025-10-02T10:08:28+08:00","updated_at":"2025-10-02T10:08:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95c7987a94a439ddeb96c8218754f166a47f5faf.webp?v=1759370911","variant_ids":[43756731433059]},"available":true,"name":"iPhone 15 Plus Clear (MagSafe 兼容) Aaron Chang Yin\u0026Yang - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":135000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012960I-AAR04","featured_media":{"alt":null,"id":26113539244131,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95c7987a94a439ddeb96c8218754f166a47f5faf.webp?v=1759370911"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43756731465827,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MCN012960G-AAR04","requires_shipping":true,"taxable":true,"featured_image":{"id":34543784231011,"product_id":7892675887203,"position":2,"created_at":"2025-10-02T10:08:28+08:00","updated_at":"2025-10-02T10:08:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3e74c3bb0c0899fa68fc35bf33412698ad059ae.webp?v=1759370910","variant_ids":[43756731465827]},"available":true,"name":"iPhone 15 Plus Clear (MagSafe 兼容) Aaron Chang Yin\u0026Yang - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":135000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012960G-AAR04","featured_media":{"alt":null,"id":26113539113059,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3e74c3bb0c0899fa68fc35bf33412698ad059ae.webp?v=1759370910"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43756731498595,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"MCN012960H-AAR04","requires_shipping":true,"taxable":true,"featured_image":{"id":34543784099939,"product_id":7892675887203,"position":1,"created_at":"2025-10-02T10:08:27+08:00","updated_at":"2025-10-02T10:08:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbc2267f5e29d02cfcc54a3b103d36f666905e76.webp?v=1759370909","variant_ids":[43756731498595]},"available":true,"name":"iPhone 15 Plus Clear (MagSafe 兼容) Aaron Chang Yin\u0026Yang - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":135000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012960H-AAR04","featured_media":{"alt":null,"id":26113538981987,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbc2267f5e29d02cfcc54a3b103d36f666905e76.webp?v=1759370909"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43756729565283,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"MCN012960J-AAR04","requires_shipping":true,"taxable":true,"featured_image":{"id":34543784525923,"product_id":7892675887203,"position":4,"created_at":"2025-10-02T10:08:29+08:00","updated_at":"2025-10-02T10:08:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f56965edfc869f9f76f3a92096ad90f657a630db.webp?v=1759370912","variant_ids":[43756729565283]},"available":true,"name":"iPhone 15 Plus Clear (MagSafe 兼容) Aaron Chang Yin\u0026Yang - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":135000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012960J-AAR04","featured_media":{"alt":null,"id":26113539407971,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f56965edfc869f9f76f3a92096ad90f657a630db.webp?v=1759370912"}},"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: "停產" }