$product = {"id":7815657029731,"title":"iPhone 14 Pro Max Clear (MagSafe 兼容) 小玉米花 新年恐龍","handle":"iphone-14-pro-max-jellytint-magsafe-bumper-crossover-design-eg10","description":null,"published_at":"2025-06-11T15:10:27+08:00","created_at":"2025-06-11T14:33:02+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-littlepopcorn","device-iPhone 14 Pro Max","merge","reseller-littlepopcorn"],"price":148000,"price_min":148000,"price_max":148000,"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":43444983693411,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MCN012630G-EG10","requires_shipping":true,"taxable":true,"featured_image":{"id":34012364701795,"product_id":7815657029731,"position":11,"created_at":"2025-06-12T10:10:18+08:00","updated_at":"2025-06-12T10:10:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/603db0564cedc0d5a7159a31689224b95a7b3833_f9f957c7-a34c-4d43-b5e9-e48119a1a0a7.webp?v=1749694220","variant_ids":[43444983693411]},"available":true,"name":"iPhone 14 Pro Max Clear (MagSafe 兼容) 小玉米花 新年恐龍 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012630G-EG10","featured_media":{"alt":null,"id":25692906520675,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/603db0564cedc0d5a7159a31689224b95a7b3833_f9f957c7-a34c-4d43-b5e9-e48119a1a0a7.webp?v=1749694220"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43444986576995,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"MCN012630I-EG10","requires_shipping":true,"taxable":true,"featured_image":{"id":34012365160547,"product_id":7815657029731,"position":12,"created_at":"2025-06-12T10:10:18+08:00","updated_at":"2025-06-12T10:10:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed81e044d163309fde531fe14d89dca2e03ebf67_c8300c0c-aee1-422a-b771-1bf99e37eca5.webp?v=1749694220","variant_ids":[43444986576995]},"available":true,"name":"iPhone 14 Pro Max Clear (MagSafe 兼容) 小玉米花 新年恐龍 - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012630I-EG10","featured_media":{"alt":null,"id":25692906717283,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed81e044d163309fde531fe14d89dca2e03ebf67_c8300c0c-aee1-422a-b771-1bf99e37eca5.webp?v=1749694220"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad649d4f67690e3004a6146f6c9fc2f19ac042b3.webp?v=1749623587","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed81e044d163309fde531fe14d89dca2e03ebf67.webp?v=1749623588","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/603db0564cedc0d5a7159a31689224b95a7b3833.webp?v=1749623588","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d42b9310ff7e60f9d466f7cd4791a5320c761f4.webp?v=1749623589","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d42b9310ff7e60f9d466f7cd4791a5320c761f4_3cfb5ce9-ae8f-4ab1-8a57-aa10a8dcd448.webp?v=1749625544","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad649d4f67690e3004a6146f6c9fc2f19ac042b3_22e354f6-3238-436d-8b8d-54c00a5e71dc.webp?v=1749625545","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed81e044d163309fde531fe14d89dca2e03ebf67_2e605049-5cf7-4f34-9806-a1f8976eb447.webp?v=1749625545","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/603db0564cedc0d5a7159a31689224b95a7b3833_c60895cd-a849-449e-8e85-2dd56dfdabdb.webp?v=1749625546","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad649d4f67690e3004a6146f6c9fc2f19ac042b3_c53679ba-45ff-44bb-a3ed-b9d9d31eda05.webp?v=1749694218","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d42b9310ff7e60f9d466f7cd4791a5320c761f4_757896d4-25ee-4199-bbb9-41b998cd4c89.webp?v=1749694219","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/603db0564cedc0d5a7159a31689224b95a7b3833_f9f957c7-a34c-4d43-b5e9-e48119a1a0a7.webp?v=1749694220","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed81e044d163309fde531fe14d89dca2e03ebf67_c8300c0c-aee1-422a-b771-1bf99e37eca5.webp?v=1749694220"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad649d4f67690e3004a6146f6c9fc2f19ac042b3.webp?v=1749623587","options":["color"],"media":[{"alt":null,"id":25689657213027,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad649d4f67690e3004a6146f6c9fc2f19ac042b3.webp?v=1749623587"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad649d4f67690e3004a6146f6c9fc2f19ac042b3.webp?v=1749623587","width":2000},{"alt":null,"id":25689657409635,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed81e044d163309fde531fe14d89dca2e03ebf67.webp?v=1749623588"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed81e044d163309fde531fe14d89dca2e03ebf67.webp?v=1749623588","width":2000},{"alt":null,"id":25689657606243,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/603db0564cedc0d5a7159a31689224b95a7b3833.webp?v=1749623588"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/603db0564cedc0d5a7159a31689224b95a7b3833.webp?v=1749623588","width":2000},{"alt":null,"id":25689657802851,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d42b9310ff7e60f9d466f7cd4791a5320c761f4.webp?v=1749623589"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d42b9310ff7e60f9d466f7cd4791a5320c761f4.webp?v=1749623589","width":2000},{"alt":null,"id":25690018578531,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d42b9310ff7e60f9d466f7cd4791a5320c761f4_3cfb5ce9-ae8f-4ab1-8a57-aa10a8dcd448.webp?v=1749625544"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d42b9310ff7e60f9d466f7cd4791a5320c761f4_3cfb5ce9-ae8f-4ab1-8a57-aa10a8dcd448.webp?v=1749625544","width":2000},{"alt":null,"id":25690018742371,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad649d4f67690e3004a6146f6c9fc2f19ac042b3_22e354f6-3238-436d-8b8d-54c00a5e71dc.webp?v=1749625545"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad649d4f67690e3004a6146f6c9fc2f19ac042b3_22e354f6-3238-436d-8b8d-54c00a5e71dc.webp?v=1749625545","width":2000},{"alt":null,"id":25690019102819,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed81e044d163309fde531fe14d89dca2e03ebf67_2e605049-5cf7-4f34-9806-a1f8976eb447.webp?v=1749625545"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed81e044d163309fde531fe14d89dca2e03ebf67_2e605049-5cf7-4f34-9806-a1f8976eb447.webp?v=1749625545","width":2000},{"alt":null,"id":25690019430499,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/603db0564cedc0d5a7159a31689224b95a7b3833_c60895cd-a849-449e-8e85-2dd56dfdabdb.webp?v=1749625546"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/603db0564cedc0d5a7159a31689224b95a7b3833_c60895cd-a849-449e-8e85-2dd56dfdabdb.webp?v=1749625546","width":2000},{"alt":null,"id":25692905832547,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad649d4f67690e3004a6146f6c9fc2f19ac042b3_c53679ba-45ff-44bb-a3ed-b9d9d31eda05.webp?v=1749694218"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad649d4f67690e3004a6146f6c9fc2f19ac042b3_c53679ba-45ff-44bb-a3ed-b9d9d31eda05.webp?v=1749694218","width":2000},{"alt":null,"id":25692906061923,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d42b9310ff7e60f9d466f7cd4791a5320c761f4_757896d4-25ee-4199-bbb9-41b998cd4c89.webp?v=1749694219"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d42b9310ff7e60f9d466f7cd4791a5320c761f4_757896d4-25ee-4199-bbb9-41b998cd4c89.webp?v=1749694219","width":2000},{"alt":null,"id":25692906520675,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/603db0564cedc0d5a7159a31689224b95a7b3833_f9f957c7-a34c-4d43-b5e9-e48119a1a0a7.webp?v=1749694220"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/603db0564cedc0d5a7159a31689224b95a7b3833_f9f957c7-a34c-4d43-b5e9-e48119a1a0a7.webp?v=1749694220","width":2000},{"alt":null,"id":25692906717283,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed81e044d163309fde531fe14d89dca2e03ebf67_c8300c0c-aee1-422a-b771-1bf99e37eca5.webp?v=1749694220"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed81e044d163309fde531fe14d89dca2e03ebf67_c8300c0c-aee1-422a-b771-1bf99e37eca5.webp?v=1749694220","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43444983693411,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MCN012630G-EG10","requires_shipping":true,"taxable":true,"featured_image":{"id":34012364701795,"product_id":7815657029731,"position":11,"created_at":"2025-06-12T10:10:18+08:00","updated_at":"2025-06-12T10:10:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/603db0564cedc0d5a7159a31689224b95a7b3833_f9f957c7-a34c-4d43-b5e9-e48119a1a0a7.webp?v=1749694220","variant_ids":[43444983693411]},"available":true,"name":"iPhone 14 Pro Max Clear (MagSafe 兼容) 小玉米花 新年恐龍 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012630G-EG10","featured_media":{"alt":null,"id":25692906520675,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/603db0564cedc0d5a7159a31689224b95a7b3833_f9f957c7-a34c-4d43-b5e9-e48119a1a0a7.webp?v=1749694220"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43444986576995,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"MCN012630I-EG10","requires_shipping":true,"taxable":true,"featured_image":{"id":34012365160547,"product_id":7815657029731,"position":12,"created_at":"2025-06-12T10:10:18+08:00","updated_at":"2025-06-12T10:10:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed81e044d163309fde531fe14d89dca2e03ebf67_c8300c0c-aee1-422a-b771-1bf99e37eca5.webp?v=1749694220","variant_ids":[43444986576995]},"available":true,"name":"iPhone 14 Pro Max Clear (MagSafe 兼容) 小玉米花 新年恐龍 - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012630I-EG10","featured_media":{"alt":null,"id":25692906717283,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed81e044d163309fde531fe14d89dca2e03ebf67_c8300c0c-aee1-422a-b771-1bf99e37eca5.webp?v=1749694220"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43444983693411,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MCN012630G-EG10","requires_shipping":true,"taxable":true,"featured_image":{"id":34012364701795,"product_id":7815657029731,"position":11,"created_at":"2025-06-12T10:10:18+08:00","updated_at":"2025-06-12T10:10:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/603db0564cedc0d5a7159a31689224b95a7b3833_f9f957c7-a34c-4d43-b5e9-e48119a1a0a7.webp?v=1749694220","variant_ids":[43444983693411]},"available":true,"name":"iPhone 14 Pro Max Clear (MagSafe 兼容) 小玉米花 新年恐龍 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012630G-EG10","featured_media":{"alt":null,"id":25692906520675,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/603db0564cedc0d5a7159a31689224b95a7b3833_f9f957c7-a34c-4d43-b5e9-e48119a1a0a7.webp?v=1749694220"}},"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: "停產" }