$product = {"id":7815623835747,"title":"iPhone 16 Pro Max Clear (MagSafe 兼容) 小玉米花 新年恐龍","handle":"iphone-16-pro-max-jellytint-magsafe-bumper-crossover-design-eg10","description":null,"published_at":"2025-06-11T15:28:43+08:00","created_at":"2025-06-11T14:25:36+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-littlepopcorn","device-iPhone 16 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":43444843970659,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"MCN013280J-EG10","requires_shipping":true,"taxable":true,"featured_image":{"id":34008130224227,"product_id":7815623835747,"position":9,"created_at":"2025-06-11T15:02:27+08:00","updated_at":"2025-06-11T15:02:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ada3a4652d53560f7cfe7858215854154e2c88b2_06efb2fd-9c91-42d4-8d5c-8983023b5b3f.webp?v=1749625349","variant_ids":[43444843970659]},"available":true,"name":"iPhone 16 Pro Max Clear (MagSafe 兼容) 小玉米花 新年恐龍 - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN013280J-EG10","featured_media":{"alt":null,"id":25689949765731,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ada3a4652d53560f7cfe7858215854154e2c88b2_06efb2fd-9c91-42d4-8d5c-8983023b5b3f.webp?v=1749625349"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b828b1e3c0881568ea86d00713292e4eed5eeee8.webp?v=1749623141","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c53337bd4671830a6adf5216a4e0dde625198506.webp?v=1749623141","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ada3a4652d53560f7cfe7858215854154e2c88b2.webp?v=1749623142","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/224d076d86316bcc30e64cf24aefa8d5d5732367.webp?v=1749623142","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b828b1e3c0881568ea86d00713292e4eed5eeee8_bff0e37c-68b2-4e29-8b3a-4f4be78cebce.webp?v=1749624417","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c53337bd4671830a6adf5216a4e0dde625198506_ad01c0d0-c0aa-4cc7-82aa-8b0a74f4e4a3.webp?v=1749624418","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ada3a4652d53560f7cfe7858215854154e2c88b2_6769add9-b01c-41f8-ade2-577acee8c217.webp?v=1749624419","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/224d076d86316bcc30e64cf24aefa8d5d5732367_41a74d2d-2de6-4f24-94b5-8a20ec0a7e60.webp?v=1749624419","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ada3a4652d53560f7cfe7858215854154e2c88b2_06efb2fd-9c91-42d4-8d5c-8983023b5b3f.webp?v=1749625349","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b828b1e3c0881568ea86d00713292e4eed5eeee8_e2b81ae7-dee3-4fe0-8ce0-c5a79cf3416e.webp?v=1749625350","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/224d076d86316bcc30e64cf24aefa8d5d5732367_5501b2c9-3a83-48fc-8f75-77b84eb6820b.webp?v=1749625350","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c53337bd4671830a6adf5216a4e0dde625198506_50575f60-8348-4f90-9fe6-046666deed18.webp?v=1749625351","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c53337bd4671830a6adf5216a4e0dde625198506_a03faee0-bba8-418d-b359-59298a401056.webp?v=1749694205","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b828b1e3c0881568ea86d00713292e4eed5eeee8_751e7005-b994-4275-b7ad-0b5ad5a15d6e.webp?v=1749694206","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ada3a4652d53560f7cfe7858215854154e2c88b2_684c5688-65d9-40fc-8707-bd942c1546a0.webp?v=1749694206","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/224d076d86316bcc30e64cf24aefa8d5d5732367_5a4fe44d-f75a-4e7b-a5da-691a129f350a.webp?v=1749694207"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b828b1e3c0881568ea86d00713292e4eed5eeee8.webp?v=1749623141","options":["color"],"media":[{"alt":null,"id":25689501368419,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b828b1e3c0881568ea86d00713292e4eed5eeee8.webp?v=1749623141"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b828b1e3c0881568ea86d00713292e4eed5eeee8.webp?v=1749623141","width":2000},{"alt":null,"id":25689501499491,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c53337bd4671830a6adf5216a4e0dde625198506.webp?v=1749623141"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c53337bd4671830a6adf5216a4e0dde625198506.webp?v=1749623141","width":2000},{"alt":null,"id":25689501696099,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ada3a4652d53560f7cfe7858215854154e2c88b2.webp?v=1749623142"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ada3a4652d53560f7cfe7858215854154e2c88b2.webp?v=1749623142","width":2000},{"alt":null,"id":25689501892707,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/224d076d86316bcc30e64cf24aefa8d5d5732367.webp?v=1749623142"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/224d076d86316bcc30e64cf24aefa8d5d5732367.webp?v=1749623142","width":2000},{"alt":null,"id":25689714589795,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b828b1e3c0881568ea86d00713292e4eed5eeee8_bff0e37c-68b2-4e29-8b3a-4f4be78cebce.webp?v=1749624417"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b828b1e3c0881568ea86d00713292e4eed5eeee8_bff0e37c-68b2-4e29-8b3a-4f4be78cebce.webp?v=1749624417","width":2000},{"alt":null,"id":25689714819171,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c53337bd4671830a6adf5216a4e0dde625198506_ad01c0d0-c0aa-4cc7-82aa-8b0a74f4e4a3.webp?v=1749624418"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c53337bd4671830a6adf5216a4e0dde625198506_ad01c0d0-c0aa-4cc7-82aa-8b0a74f4e4a3.webp?v=1749624418","width":2000},{"alt":null,"id":25689715048547,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ada3a4652d53560f7cfe7858215854154e2c88b2_6769add9-b01c-41f8-ade2-577acee8c217.webp?v=1749624419"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ada3a4652d53560f7cfe7858215854154e2c88b2_6769add9-b01c-41f8-ade2-577acee8c217.webp?v=1749624419","width":2000},{"alt":null,"id":25689715277923,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/224d076d86316bcc30e64cf24aefa8d5d5732367_41a74d2d-2de6-4f24-94b5-8a20ec0a7e60.webp?v=1749624419"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/224d076d86316bcc30e64cf24aefa8d5d5732367_41a74d2d-2de6-4f24-94b5-8a20ec0a7e60.webp?v=1749624419","width":2000},{"alt":null,"id":25689949765731,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ada3a4652d53560f7cfe7858215854154e2c88b2_06efb2fd-9c91-42d4-8d5c-8983023b5b3f.webp?v=1749625349"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ada3a4652d53560f7cfe7858215854154e2c88b2_06efb2fd-9c91-42d4-8d5c-8983023b5b3f.webp?v=1749625349","width":2000},{"alt":null,"id":25689949929571,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b828b1e3c0881568ea86d00713292e4eed5eeee8_e2b81ae7-dee3-4fe0-8ce0-c5a79cf3416e.webp?v=1749625350"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b828b1e3c0881568ea86d00713292e4eed5eeee8_e2b81ae7-dee3-4fe0-8ce0-c5a79cf3416e.webp?v=1749625350","width":2000},{"alt":null,"id":25689950126179,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/224d076d86316bcc30e64cf24aefa8d5d5732367_5501b2c9-3a83-48fc-8f75-77b84eb6820b.webp?v=1749625350"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/224d076d86316bcc30e64cf24aefa8d5d5732367_5501b2c9-3a83-48fc-8f75-77b84eb6820b.webp?v=1749625350","width":2000},{"alt":null,"id":25689950257251,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c53337bd4671830a6adf5216a4e0dde625198506_50575f60-8348-4f90-9fe6-046666deed18.webp?v=1749625351"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c53337bd4671830a6adf5216a4e0dde625198506_50575f60-8348-4f90-9fe6-046666deed18.webp?v=1749625351","width":2000},{"alt":null,"id":25692900327523,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c53337bd4671830a6adf5216a4e0dde625198506_a03faee0-bba8-418d-b359-59298a401056.webp?v=1749694205"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c53337bd4671830a6adf5216a4e0dde625198506_a03faee0-bba8-418d-b359-59298a401056.webp?v=1749694205","width":2000},{"alt":null,"id":25692900524131,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b828b1e3c0881568ea86d00713292e4eed5eeee8_751e7005-b994-4275-b7ad-0b5ad5a15d6e.webp?v=1749694206"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b828b1e3c0881568ea86d00713292e4eed5eeee8_751e7005-b994-4275-b7ad-0b5ad5a15d6e.webp?v=1749694206","width":2000},{"alt":null,"id":25692900687971,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ada3a4652d53560f7cfe7858215854154e2c88b2_684c5688-65d9-40fc-8707-bd942c1546a0.webp?v=1749694206"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ada3a4652d53560f7cfe7858215854154e2c88b2_684c5688-65d9-40fc-8707-bd942c1546a0.webp?v=1749694206","width":2000},{"alt":null,"id":25692900884579,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/224d076d86316bcc30e64cf24aefa8d5d5732367_5a4fe44d-f75a-4e7b-a5da-691a129f350a.webp?v=1749694207"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/224d076d86316bcc30e64cf24aefa8d5d5732367_5a4fe44d-f75a-4e7b-a5da-691a129f350a.webp?v=1749694207","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43444843970659,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"MCN013280J-EG10","requires_shipping":true,"taxable":true,"featured_image":{"id":34008130224227,"product_id":7815623835747,"position":9,"created_at":"2025-06-11T15:02:27+08:00","updated_at":"2025-06-11T15:02:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ada3a4652d53560f7cfe7858215854154e2c88b2_06efb2fd-9c91-42d4-8d5c-8983023b5b3f.webp?v=1749625349","variant_ids":[43444843970659]},"available":true,"name":"iPhone 16 Pro Max Clear (MagSafe 兼容) 小玉米花 新年恐龍 - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN013280J-EG10","featured_media":{"alt":null,"id":25689949765731,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ada3a4652d53560f7cfe7858215854154e2c88b2_06efb2fd-9c91-42d4-8d5c-8983023b5b3f.webp?v=1749625349"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43444843970659,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"MCN013280J-EG10","requires_shipping":true,"taxable":true,"featured_image":{"id":34008130224227,"product_id":7815623835747,"position":9,"created_at":"2025-06-11T15:02:27+08:00","updated_at":"2025-06-11T15:02:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ada3a4652d53560f7cfe7858215854154e2c88b2_06efb2fd-9c91-42d4-8d5c-8983023b5b3f.webp?v=1749625349","variant_ids":[43444843970659]},"available":true,"name":"iPhone 16 Pro Max Clear (MagSafe 兼容) 小玉米花 新年恐龍 - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN013280J-EG10","featured_media":{"alt":null,"id":25689949765731,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ada3a4652d53560f7cfe7858215854154e2c88b2_06efb2fd-9c91-42d4-8d5c-8983023b5b3f.webp?v=1749625349"}},"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: "停產" }