$product = {"id":7815655063651,"title":"iPhone 13 Clear (MagSafe 兼容) 小玉米花 新年恐龍","handle":"iphone-13-jellytint-magsafe-bumper-crossover-design-eg10","description":null,"published_at":"2025-06-11T15:11:34+08:00","created_at":"2025-06-11T14:32:35+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-littlepopcorn","device-iPhone 13","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":43444977434723,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MCN012600G-EG10","requires_shipping":true,"taxable":true,"featured_image":{"id":34011989246051,"product_id":7815655063651,"position":16,"created_at":"2025-06-12T10:04:47+08:00","updated_at":"2025-06-12T10:04:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b03e31e03c26dbc450be63c15588ce9a52ce80ef_55681db1-fd14-49ef-84f6-68aca6edac88.webp?v=1749693889","variant_ids":[43444977434723]},"available":true,"name":"iPhone 13 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":"MCN012600G-EG10","featured_media":{"alt":null,"id":25692713386083,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b03e31e03c26dbc450be63c15588ce9a52ce80ef_55681db1-fd14-49ef-84f6-68aca6edac88.webp?v=1749693889"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b03e31e03c26dbc450be63c15588ce9a52ce80ef_9decaa59-a1d7-411c-ae1b-120afa24f2de.webp?v=1749623560","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0f63319ee692a25990410a2f85c2c895ce13b98_cf740b90-ee83-4597-b3c6-d15db5a5c43b.webp?v=1749623561","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c08ce942017ad34c3668c9094a0dc7a28e04939_19d0ebf0-e3be-4cf7-b5a4-fa260bd9e11b.webp?v=1749623561","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e2018c41e3f99bf842012ff710def572140471a_cb81d72b-19ea-4e13-8ea7-37ae4af826d2.webp?v=1749623562","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b03e31e03c26dbc450be63c15588ce9a52ce80ef_4989e837-8b04-487e-9dab-71969ca14db8.webp?v=1749624803","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0f63319ee692a25990410a2f85c2c895ce13b98_fc7bc412-c416-4df3-9cf6-7c5588d50de3.webp?v=1749624803","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c08ce942017ad34c3668c9094a0dc7a28e04939_7da4ada0-694c-40ac-870e-7f28310a9ae6.webp?v=1749624804","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e2018c41e3f99bf842012ff710def572140471a_5e1fa114-bb32-447b-8b72-81dbab72c56b.webp?v=1749624804","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e2018c41e3f99bf842012ff710def572140471a_50661f6a-f864-4f73-b057-7c9db03dbd5d.webp?v=1749625494","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c08ce942017ad34c3668c9094a0dc7a28e04939_244c0c12-9bc3-4106-85d7-44efb172db06.webp?v=1749625494","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b03e31e03c26dbc450be63c15588ce9a52ce80ef_8dd9b67e-293d-4765-b57b-0d1874471af1.webp?v=1749625495","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0f63319ee692a25990410a2f85c2c895ce13b98_349f08b3-8ff6-49b1-ad91-e53957eab7fd.webp?v=1749625495","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e2018c41e3f99bf842012ff710def572140471a_3108c329-22da-45fe-befe-4d9b42ac1cf2.webp?v=1749693887","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c08ce942017ad34c3668c9094a0dc7a28e04939_21afa827-0589-460b-9d61-fc7e47ab88fc.webp?v=1749693888","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0f63319ee692a25990410a2f85c2c895ce13b98_3cd01ce9-c9fa-4b14-8476-b9e01289c46b.webp?v=1749693888","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b03e31e03c26dbc450be63c15588ce9a52ce80ef_55681db1-fd14-49ef-84f6-68aca6edac88.webp?v=1749693889"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b03e31e03c26dbc450be63c15588ce9a52ce80ef_9decaa59-a1d7-411c-ae1b-120afa24f2de.webp?v=1749623560","options":["color"],"media":[{"alt":null,"id":25689649021027,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b03e31e03c26dbc450be63c15588ce9a52ce80ef_9decaa59-a1d7-411c-ae1b-120afa24f2de.webp?v=1749623560"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b03e31e03c26dbc450be63c15588ce9a52ce80ef_9decaa59-a1d7-411c-ae1b-120afa24f2de.webp?v=1749623560","width":2000},{"alt":null,"id":25689649119331,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0f63319ee692a25990410a2f85c2c895ce13b98_cf740b90-ee83-4597-b3c6-d15db5a5c43b.webp?v=1749623561"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0f63319ee692a25990410a2f85c2c895ce13b98_cf740b90-ee83-4597-b3c6-d15db5a5c43b.webp?v=1749623561","width":2000},{"alt":null,"id":25689649283171,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c08ce942017ad34c3668c9094a0dc7a28e04939_19d0ebf0-e3be-4cf7-b5a4-fa260bd9e11b.webp?v=1749623561"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c08ce942017ad34c3668c9094a0dc7a28e04939_19d0ebf0-e3be-4cf7-b5a4-fa260bd9e11b.webp?v=1749623561","width":2000},{"alt":null,"id":25689649643619,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e2018c41e3f99bf842012ff710def572140471a_cb81d72b-19ea-4e13-8ea7-37ae4af826d2.webp?v=1749623562"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e2018c41e3f99bf842012ff710def572140471a_cb81d72b-19ea-4e13-8ea7-37ae4af826d2.webp?v=1749623562","width":2000},{"alt":null,"id":25689857982563,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b03e31e03c26dbc450be63c15588ce9a52ce80ef_4989e837-8b04-487e-9dab-71969ca14db8.webp?v=1749624803"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b03e31e03c26dbc450be63c15588ce9a52ce80ef_4989e837-8b04-487e-9dab-71969ca14db8.webp?v=1749624803","width":2000},{"alt":null,"id":25689858146403,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0f63319ee692a25990410a2f85c2c895ce13b98_fc7bc412-c416-4df3-9cf6-7c5588d50de3.webp?v=1749624803"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0f63319ee692a25990410a2f85c2c895ce13b98_fc7bc412-c416-4df3-9cf6-7c5588d50de3.webp?v=1749624803","width":2000},{"alt":null,"id":25689858375779,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c08ce942017ad34c3668c9094a0dc7a28e04939_7da4ada0-694c-40ac-870e-7f28310a9ae6.webp?v=1749624804"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c08ce942017ad34c3668c9094a0dc7a28e04939_7da4ada0-694c-40ac-870e-7f28310a9ae6.webp?v=1749624804","width":2000},{"alt":null,"id":25689858572387,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e2018c41e3f99bf842012ff710def572140471a_5e1fa114-bb32-447b-8b72-81dbab72c56b.webp?v=1749624804"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e2018c41e3f99bf842012ff710def572140471a_5e1fa114-bb32-447b-8b72-81dbab72c56b.webp?v=1749624804","width":2000},{"alt":null,"id":25690001670243,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e2018c41e3f99bf842012ff710def572140471a_50661f6a-f864-4f73-b057-7c9db03dbd5d.webp?v=1749625494"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e2018c41e3f99bf842012ff710def572140471a_50661f6a-f864-4f73-b057-7c9db03dbd5d.webp?v=1749625494","width":2000},{"alt":null,"id":25690001866851,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c08ce942017ad34c3668c9094a0dc7a28e04939_244c0c12-9bc3-4106-85d7-44efb172db06.webp?v=1749625494"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c08ce942017ad34c3668c9094a0dc7a28e04939_244c0c12-9bc3-4106-85d7-44efb172db06.webp?v=1749625494","width":2000},{"alt":null,"id":25690001997923,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b03e31e03c26dbc450be63c15588ce9a52ce80ef_8dd9b67e-293d-4765-b57b-0d1874471af1.webp?v=1749625495"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b03e31e03c26dbc450be63c15588ce9a52ce80ef_8dd9b67e-293d-4765-b57b-0d1874471af1.webp?v=1749625495","width":2000},{"alt":null,"id":25690002227299,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0f63319ee692a25990410a2f85c2c895ce13b98_349f08b3-8ff6-49b1-ad91-e53957eab7fd.webp?v=1749625495"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0f63319ee692a25990410a2f85c2c895ce13b98_349f08b3-8ff6-49b1-ad91-e53957eab7fd.webp?v=1749625495","width":2000},{"alt":null,"id":25692712009827,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e2018c41e3f99bf842012ff710def572140471a_3108c329-22da-45fe-befe-4d9b42ac1cf2.webp?v=1749693887"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e2018c41e3f99bf842012ff710def572140471a_3108c329-22da-45fe-befe-4d9b42ac1cf2.webp?v=1749693887","width":2000},{"alt":null,"id":25692712370275,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c08ce942017ad34c3668c9094a0dc7a28e04939_21afa827-0589-460b-9d61-fc7e47ab88fc.webp?v=1749693888"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c08ce942017ad34c3668c9094a0dc7a28e04939_21afa827-0589-460b-9d61-fc7e47ab88fc.webp?v=1749693888","width":2000},{"alt":null,"id":25692712894563,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0f63319ee692a25990410a2f85c2c895ce13b98_3cd01ce9-c9fa-4b14-8476-b9e01289c46b.webp?v=1749693888"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0f63319ee692a25990410a2f85c2c895ce13b98_3cd01ce9-c9fa-4b14-8476-b9e01289c46b.webp?v=1749693888","width":2000},{"alt":null,"id":25692713386083,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b03e31e03c26dbc450be63c15588ce9a52ce80ef_55681db1-fd14-49ef-84f6-68aca6edac88.webp?v=1749693889"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b03e31e03c26dbc450be63c15588ce9a52ce80ef_55681db1-fd14-49ef-84f6-68aca6edac88.webp?v=1749693889","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43444977434723,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MCN012600G-EG10","requires_shipping":true,"taxable":true,"featured_image":{"id":34011989246051,"product_id":7815655063651,"position":16,"created_at":"2025-06-12T10:04:47+08:00","updated_at":"2025-06-12T10:04:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b03e31e03c26dbc450be63c15588ce9a52ce80ef_55681db1-fd14-49ef-84f6-68aca6edac88.webp?v=1749693889","variant_ids":[43444977434723]},"available":true,"name":"iPhone 13 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":"MCN012600G-EG10","featured_media":{"alt":null,"id":25692713386083,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b03e31e03c26dbc450be63c15588ce9a52ce80ef_55681db1-fd14-49ef-84f6-68aca6edac88.webp?v=1749693889"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43444977434723,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MCN012600G-EG10","requires_shipping":true,"taxable":true,"featured_image":{"id":34011989246051,"product_id":7815655063651,"position":16,"created_at":"2025-06-12T10:04:47+08:00","updated_at":"2025-06-12T10:04:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b03e31e03c26dbc450be63c15588ce9a52ce80ef_55681db1-fd14-49ef-84f6-68aca6edac88.webp?v=1749693889","variant_ids":[43444977434723]},"available":true,"name":"iPhone 13 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":"MCN012600G-EG10","featured_media":{"alt":null,"id":25692713386083,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b03e31e03c26dbc450be63c15588ce9a52ce80ef_55681db1-fd14-49ef-84f6-68aca6edac88.webp?v=1749693889"}},"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: "停產" }