$product = {"id":7159057580131,"title":"iPhone 15 Pro Max Clear (MagSafe 兼容) 涼丰 海邊的喫茶店","handle":"iphone-15-pro-max-jellytint-magsafe-gd41","description":null,"published_at":"2024-02-01T16:55:04+08:00","created_at":"2024-01-26T17:25:50+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-liang-feng","device-iPhone 15 Pro Max","merge","reseller-liang-feng"],"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":41213000613987,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MCN012980G-GD41","requires_shipping":true,"taxable":true,"featured_image":{"id":36257936539747,"product_id":7159057580131,"position":6,"created_at":"2026-07-14T15:52:14+08:00","updated_at":"2026-07-14T15:52:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfdb18e863bd1c10fd5d35e9b05a35e1207cfa53_9f0d8d2d-a1de-49de-94c2-432553f91b75.webp?v=1784015536","variant_ids":[41213000613987]},"available":true,"name":"iPhone 15 Pro Max Clear (MagSafe 兼容) 涼丰 海邊的喫茶店 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":148000,"weight":1350,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012980G-GD41","featured_media":{"alt":null,"id":27762043715683,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfdb18e863bd1c10fd5d35e9b05a35e1207cfa53_9f0d8d2d-a1de-49de-94c2-432553f91b75.webp?v=1784015536"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41213000777827,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"MCN012980J-GD41","requires_shipping":true,"taxable":true,"featured_image":{"id":36257937391715,"product_id":7159057580131,"position":7,"created_at":"2026-07-14T15:52:14+08:00","updated_at":"2026-07-14T15:52:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a81ef883344a13da31a67a22b37ce018fb740ef2_fca5918c-54bc-4a74-9682-3629690e1583.webp?v=1784015536","variant_ids":[41213000777827]},"available":true,"name":"iPhone 15 Pro Max Clear (MagSafe 兼容) 涼丰 海邊的喫茶店 - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":148000,"weight":1350,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012980J-GD41","featured_media":{"alt":null,"id":27762044567651,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a81ef883344a13da31a67a22b37ce018fb740ef2_fca5918c-54bc-4a74-9682-3629690e1583.webp?v=1784015536"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/Clear-F5-298-GD41_9f65ded5-bd9a-489c-9b15-40de7bd5b941.png?v=1706261153","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05e1f39648e97e4b38980df6b473184a7a09ac36.webp?v=1772692635","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a81ef883344a13da31a67a22b37ce018fb740ef2.webp?v=1772692636","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b46c07f6fba5d057220b7afda2233a6930655b60.webp?v=1772692636","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfdb18e863bd1c10fd5d35e9b05a35e1207cfa53.webp?v=1772692637","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfdb18e863bd1c10fd5d35e9b05a35e1207cfa53_9f0d8d2d-a1de-49de-94c2-432553f91b75.webp?v=1784015536","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a81ef883344a13da31a67a22b37ce018fb740ef2_fca5918c-54bc-4a74-9682-3629690e1583.webp?v=1784015536"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/Clear-F5-298-GD41_9f65ded5-bd9a-489c-9b15-40de7bd5b941.png?v=1706261153","options":["color"],"media":[{"alt":null,"id":23219225362531,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/Clear-F5-298-GD41_9f65ded5-bd9a-489c-9b15-40de7bd5b941.png?v=1706261153"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/Clear-F5-298-GD41_9f65ded5-bd9a-489c-9b15-40de7bd5b941.png?v=1706261153","width":2000},{"alt":null,"id":26938104316003,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05e1f39648e97e4b38980df6b473184a7a09ac36.webp?v=1772692635"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05e1f39648e97e4b38980df6b473184a7a09ac36.webp?v=1772692635","width":2000},{"alt":null,"id":26938104512611,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a81ef883344a13da31a67a22b37ce018fb740ef2.webp?v=1772692636"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a81ef883344a13da31a67a22b37ce018fb740ef2.webp?v=1772692636","width":2000},{"alt":null,"id":26938104643683,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b46c07f6fba5d057220b7afda2233a6930655b60.webp?v=1772692636"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b46c07f6fba5d057220b7afda2233a6930655b60.webp?v=1772692636","width":2000},{"alt":null,"id":26938104709219,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfdb18e863bd1c10fd5d35e9b05a35e1207cfa53.webp?v=1772692637"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfdb18e863bd1c10fd5d35e9b05a35e1207cfa53.webp?v=1772692637","width":2000},{"alt":null,"id":27762043715683,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfdb18e863bd1c10fd5d35e9b05a35e1207cfa53_9f0d8d2d-a1de-49de-94c2-432553f91b75.webp?v=1784015536"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfdb18e863bd1c10fd5d35e9b05a35e1207cfa53_9f0d8d2d-a1de-49de-94c2-432553f91b75.webp?v=1784015536","width":2000},{"alt":null,"id":27762044567651,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a81ef883344a13da31a67a22b37ce018fb740ef2_fca5918c-54bc-4a74-9682-3629690e1583.webp?v=1784015536"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a81ef883344a13da31a67a22b37ce018fb740ef2_fca5918c-54bc-4a74-9682-3629690e1583.webp?v=1784015536","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41213000613987,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MCN012980G-GD41","requires_shipping":true,"taxable":true,"featured_image":{"id":36257936539747,"product_id":7159057580131,"position":6,"created_at":"2026-07-14T15:52:14+08:00","updated_at":"2026-07-14T15:52:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfdb18e863bd1c10fd5d35e9b05a35e1207cfa53_9f0d8d2d-a1de-49de-94c2-432553f91b75.webp?v=1784015536","variant_ids":[41213000613987]},"available":true,"name":"iPhone 15 Pro Max Clear (MagSafe 兼容) 涼丰 海邊的喫茶店 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":148000,"weight":1350,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012980G-GD41","featured_media":{"alt":null,"id":27762043715683,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfdb18e863bd1c10fd5d35e9b05a35e1207cfa53_9f0d8d2d-a1de-49de-94c2-432553f91b75.webp?v=1784015536"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41213000777827,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"MCN012980J-GD41","requires_shipping":true,"taxable":true,"featured_image":{"id":36257937391715,"product_id":7159057580131,"position":7,"created_at":"2026-07-14T15:52:14+08:00","updated_at":"2026-07-14T15:52:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a81ef883344a13da31a67a22b37ce018fb740ef2_fca5918c-54bc-4a74-9682-3629690e1583.webp?v=1784015536","variant_ids":[41213000777827]},"available":true,"name":"iPhone 15 Pro Max Clear (MagSafe 兼容) 涼丰 海邊的喫茶店 - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":148000,"weight":1350,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012980J-GD41","featured_media":{"alt":null,"id":27762044567651,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a81ef883344a13da31a67a22b37ce018fb740ef2_fca5918c-54bc-4a74-9682-3629690e1583.webp?v=1784015536"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41213000613987,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MCN012980G-GD41","requires_shipping":true,"taxable":true,"featured_image":{"id":36257936539747,"product_id":7159057580131,"position":6,"created_at":"2026-07-14T15:52:14+08:00","updated_at":"2026-07-14T15:52:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfdb18e863bd1c10fd5d35e9b05a35e1207cfa53_9f0d8d2d-a1de-49de-94c2-432553f91b75.webp?v=1784015536","variant_ids":[41213000613987]},"available":true,"name":"iPhone 15 Pro Max Clear (MagSafe 兼容) 涼丰 海邊的喫茶店 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":148000,"weight":1350,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012980G-GD41","featured_media":{"alt":null,"id":27762043715683,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfdb18e863bd1c10fd5d35e9b05a35e1207cfa53_9f0d8d2d-a1de-49de-94c2-432553f91b75.webp?v=1784015536"}},"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: "停產" }