$product = {"id":7815638188131,"title":"iPhone 16 Clear(MagSafe 兼容 \u0026 相機按鈕) 小玉米花 花花禮服","handle":"iphone-16-jellytint-magsafe-bumper-with-capture-button-crossover-design-eg08","description":null,"published_at":"2025-06-11T15:20:57+08:00","created_at":"2025-06-11T14:28:43+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-littlepopcorn","device-iPhone 16","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":43444901838947,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MJB013250G-EG08","requires_shipping":true,"taxable":true,"featured_image":{"id":34011913388131,"product_id":7815638188131,"position":13,"created_at":"2025-06-12T10:03:23+08:00","updated_at":"2025-06-12T10:03:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad3ec5e8f75e2e649c070400d2fdde3d931bb19c_49653102-1e38-44ba-beb5-c61190a1116a.webp?v=1749693805","variant_ids":[43444901838947]},"available":true,"name":"iPhone 16 Clear(MagSafe 兼容 \u0026 相機按鈕) 小玉米花 花花禮服 - 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":"MJB013250G-EG08","featured_media":{"alt":null,"id":25692674031715,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad3ec5e8f75e2e649c070400d2fdde3d931bb19c_49653102-1e38-44ba-beb5-c61190a1116a.webp?v=1749693805"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e0ba627e2974e75a86d89233dda1c46eb534c24.webp?v=1749623328","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad3ec5e8f75e2e649c070400d2fdde3d931bb19c.webp?v=1749623329","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95aa081592108f74e6c210cefd99ab0d7f69998b.webp?v=1749623329","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e8aa6535aa2685233233950260919240f1b1f21.webp?v=1749623330","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e0ba627e2974e75a86d89233dda1c46eb534c24_b4553c7a-4df0-42f2-8d8a-4e847f40586b.webp?v=1749624590","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad3ec5e8f75e2e649c070400d2fdde3d931bb19c_2130bd77-4475-4df2-9f8b-c5c526551607.webp?v=1749624590","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95aa081592108f74e6c210cefd99ab0d7f69998b_f5d4b045-6f40-46ba-a39e-10e4a9d11e35.webp?v=1749624591","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e8aa6535aa2685233233950260919240f1b1f21_b32379f4-cfbc-447f-a41a-33528ce11e8d.webp?v=1749624591","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e8aa6535aa2685233233950260919240f1b1f21_3e63182d-97a0-4c54-9312-aed6c6f6a842.webp?v=1749625240","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad3ec5e8f75e2e649c070400d2fdde3d931bb19c_d2f3ffbe-071b-41b1-86b7-6d9df3d9926e.webp?v=1749625240","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95aa081592108f74e6c210cefd99ab0d7f69998b_1c127219-ec1c-4454-b294-2c0a682e8e78.webp?v=1749625241","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e0ba627e2974e75a86d89233dda1c46eb534c24_132e8dea-f4e5-4cba-86f4-3a8674ce60f3.webp?v=1749625241","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad3ec5e8f75e2e649c070400d2fdde3d931bb19c_49653102-1e38-44ba-beb5-c61190a1116a.webp?v=1749693805","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e0ba627e2974e75a86d89233dda1c46eb534c24_a74e91d8-9f5e-45cc-9e33-0a3e06386894.webp?v=1749693806","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e8aa6535aa2685233233950260919240f1b1f21_e84ec502-86ff-4c43-afae-016410a7431a.webp?v=1749693807","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95aa081592108f74e6c210cefd99ab0d7f69998b_39b652c6-0ef2-479e-a1e8-30effe4169ff.webp?v=1749693807"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e0ba627e2974e75a86d89233dda1c46eb534c24.webp?v=1749623328","options":["color"],"media":[{"alt":null,"id":25689567002723,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e0ba627e2974e75a86d89233dda1c46eb534c24.webp?v=1749623328"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e0ba627e2974e75a86d89233dda1c46eb534c24.webp?v=1749623328","width":2000},{"alt":null,"id":25689567166563,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad3ec5e8f75e2e649c070400d2fdde3d931bb19c.webp?v=1749623329"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad3ec5e8f75e2e649c070400d2fdde3d931bb19c.webp?v=1749623329","width":2000},{"alt":null,"id":25689567363171,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95aa081592108f74e6c210cefd99ab0d7f69998b.webp?v=1749623329"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95aa081592108f74e6c210cefd99ab0d7f69998b.webp?v=1749623329","width":2000},{"alt":null,"id":25689567527011,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e8aa6535aa2685233233950260919240f1b1f21.webp?v=1749623330"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e8aa6535aa2685233233950260919240f1b1f21.webp?v=1749623330","width":2000},{"alt":null,"id":25689777209443,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e0ba627e2974e75a86d89233dda1c46eb534c24_b4553c7a-4df0-42f2-8d8a-4e847f40586b.webp?v=1749624590"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e0ba627e2974e75a86d89233dda1c46eb534c24_b4553c7a-4df0-42f2-8d8a-4e847f40586b.webp?v=1749624590","width":2000},{"alt":null,"id":25689777438819,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad3ec5e8f75e2e649c070400d2fdde3d931bb19c_2130bd77-4475-4df2-9f8b-c5c526551607.webp?v=1749624590"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad3ec5e8f75e2e649c070400d2fdde3d931bb19c_2130bd77-4475-4df2-9f8b-c5c526551607.webp?v=1749624590","width":2000},{"alt":null,"id":25689777569891,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95aa081592108f74e6c210cefd99ab0d7f69998b_f5d4b045-6f40-46ba-a39e-10e4a9d11e35.webp?v=1749624591"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95aa081592108f74e6c210cefd99ab0d7f69998b_f5d4b045-6f40-46ba-a39e-10e4a9d11e35.webp?v=1749624591","width":2000},{"alt":null,"id":25689777864803,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e8aa6535aa2685233233950260919240f1b1f21_b32379f4-cfbc-447f-a41a-33528ce11e8d.webp?v=1749624591"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e8aa6535aa2685233233950260919240f1b1f21_b32379f4-cfbc-447f-a41a-33528ce11e8d.webp?v=1749624591","width":2000},{"alt":null,"id":25689906151523,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e8aa6535aa2685233233950260919240f1b1f21_3e63182d-97a0-4c54-9312-aed6c6f6a842.webp?v=1749625240"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e8aa6535aa2685233233950260919240f1b1f21_3e63182d-97a0-4c54-9312-aed6c6f6a842.webp?v=1749625240","width":2000},{"alt":null,"id":25689906413667,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad3ec5e8f75e2e649c070400d2fdde3d931bb19c_d2f3ffbe-071b-41b1-86b7-6d9df3d9926e.webp?v=1749625240"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad3ec5e8f75e2e649c070400d2fdde3d931bb19c_d2f3ffbe-071b-41b1-86b7-6d9df3d9926e.webp?v=1749625240","width":2000},{"alt":null,"id":25689906675811,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95aa081592108f74e6c210cefd99ab0d7f69998b_1c127219-ec1c-4454-b294-2c0a682e8e78.webp?v=1749625241"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95aa081592108f74e6c210cefd99ab0d7f69998b_1c127219-ec1c-4454-b294-2c0a682e8e78.webp?v=1749625241","width":2000},{"alt":null,"id":25689906970723,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e0ba627e2974e75a86d89233dda1c46eb534c24_132e8dea-f4e5-4cba-86f4-3a8674ce60f3.webp?v=1749625241"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e0ba627e2974e75a86d89233dda1c46eb534c24_132e8dea-f4e5-4cba-86f4-3a8674ce60f3.webp?v=1749625241","width":2000},{"alt":null,"id":25692674031715,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad3ec5e8f75e2e649c070400d2fdde3d931bb19c_49653102-1e38-44ba-beb5-c61190a1116a.webp?v=1749693805"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad3ec5e8f75e2e649c070400d2fdde3d931bb19c_49653102-1e38-44ba-beb5-c61190a1116a.webp?v=1749693805","width":2000},{"alt":null,"id":25692674523235,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e0ba627e2974e75a86d89233dda1c46eb534c24_a74e91d8-9f5e-45cc-9e33-0a3e06386894.webp?v=1749693806"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e0ba627e2974e75a86d89233dda1c46eb534c24_a74e91d8-9f5e-45cc-9e33-0a3e06386894.webp?v=1749693806","width":2000},{"alt":null,"id":25692674883683,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e8aa6535aa2685233233950260919240f1b1f21_e84ec502-86ff-4c43-afae-016410a7431a.webp?v=1749693807"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e8aa6535aa2685233233950260919240f1b1f21_e84ec502-86ff-4c43-afae-016410a7431a.webp?v=1749693807","width":2000},{"alt":null,"id":25692675178595,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95aa081592108f74e6c210cefd99ab0d7f69998b_39b652c6-0ef2-479e-a1e8-30effe4169ff.webp?v=1749693807"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95aa081592108f74e6c210cefd99ab0d7f69998b_39b652c6-0ef2-479e-a1e8-30effe4169ff.webp?v=1749693807","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43444901838947,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MJB013250G-EG08","requires_shipping":true,"taxable":true,"featured_image":{"id":34011913388131,"product_id":7815638188131,"position":13,"created_at":"2025-06-12T10:03:23+08:00","updated_at":"2025-06-12T10:03:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad3ec5e8f75e2e649c070400d2fdde3d931bb19c_49653102-1e38-44ba-beb5-c61190a1116a.webp?v=1749693805","variant_ids":[43444901838947]},"available":true,"name":"iPhone 16 Clear(MagSafe 兼容 \u0026 相機按鈕) 小玉米花 花花禮服 - 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":"MJB013250G-EG08","featured_media":{"alt":null,"id":25692674031715,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad3ec5e8f75e2e649c070400d2fdde3d931bb19c_49653102-1e38-44ba-beb5-c61190a1116a.webp?v=1749693805"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43444901838947,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MJB013250G-EG08","requires_shipping":true,"taxable":true,"featured_image":{"id":34011913388131,"product_id":7815638188131,"position":13,"created_at":"2025-06-12T10:03:23+08:00","updated_at":"2025-06-12T10:03:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad3ec5e8f75e2e649c070400d2fdde3d931bb19c_49653102-1e38-44ba-beb5-c61190a1116a.webp?v=1749693805","variant_ids":[43444901838947]},"available":true,"name":"iPhone 16 Clear(MagSafe 兼容 \u0026 相機按鈕) 小玉米花 花花禮服 - 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":"MJB013250G-EG08","featured_media":{"alt":null,"id":25692674031715,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad3ec5e8f75e2e649c070400d2fdde3d931bb19c_49653102-1e38-44ba-beb5-c61190a1116a.webp?v=1749693805"}},"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: "停產" }