$product = {"id":7873306951779,"title":"iPhone 14 Pro Clear (MagSafe 兼容) Keigo Cotton Swab","handle":"iphone-14-pro-jellytint-magsafe-kei07","description":null,"published_at":"2025-09-01T10:39:45+08:00","created_at":"2025-09-01T09:49:14+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-keigo","device-iPhone 14 Pro","merge","reseller-keigo"],"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":43658693148771,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MCN012620G-KEI07","requires_shipping":true,"taxable":true,"featured_image":{"id":36319236227171,"product_id":7873306951779,"position":12,"created_at":"2026-07-20T12:49:25+08:00","updated_at":"2026-07-20T12:49:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/641a967671846a22b3d92568e03e7abd4f933e54_b236f88a-d44d-4ea7-902c-4f980717a81d.webp?v=1784522967","variant_ids":[43658693148771]},"available":true,"name":"iPhone 14 Pro Clear (MagSafe 兼容) Keigo Cotton Swab - 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":"MCN012620G-KEI07","featured_media":{"alt":null,"id":27823188574307,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/641a967671846a22b3d92568e03e7abd4f933e54_b236f88a-d44d-4ea7-902c-4f980717a81d.webp?v=1784522967"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54eaa8138dcc9946bcde7b05176b7d206fd291a2.webp?v=1756691360","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/641a967671846a22b3d92568e03e7abd4f933e54.webp?v=1756691360","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd13d63b8b02775cfbd57f64941ce1554fd7da21.webp?v=1756691361","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8531988af46b177e3c6236c7f17445b23279faf8.webp?v=1756691362","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54eaa8138dcc9946bcde7b05176b7d206fd291a2_1bd9a48c-2f20-4778-977c-65d5de713edd.webp?v=1784107109","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd13d63b8b02775cfbd57f64941ce1554fd7da21_39cb654d-df3e-43bc-8859-1ba2de1767f0.webp?v=1784107110","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/641a967671846a22b3d92568e03e7abd4f933e54_12077d97-360c-4bb7-83a4-e7fc11d68681.webp?v=1784107111","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8531988af46b177e3c6236c7f17445b23279faf8_e548f4c7-fcf4-42da-8342-79b5ddf0e8c3.webp?v=1784107113","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8531988af46b177e3c6236c7f17445b23279faf8_8eddbad7-945b-4801-8a6a-256dc9cc872e.webp?v=1784522963","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54eaa8138dcc9946bcde7b05176b7d206fd291a2_bac58175-73bb-43d7-ac75-970100226b3e.webp?v=1784522964","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd13d63b8b02775cfbd57f64941ce1554fd7da21_99efc1a4-5c01-4772-b47f-57564d97fa51.webp?v=1784522966","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/641a967671846a22b3d92568e03e7abd4f933e54_b236f88a-d44d-4ea7-902c-4f980717a81d.webp?v=1784522967"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54eaa8138dcc9946bcde7b05176b7d206fd291a2.webp?v=1756691360","options":["color"],"media":[{"alt":null,"id":25982359765091,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54eaa8138dcc9946bcde7b05176b7d206fd291a2.webp?v=1756691360"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54eaa8138dcc9946bcde7b05176b7d206fd291a2.webp?v=1756691360","width":2000},{"alt":null,"id":25982359961699,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/641a967671846a22b3d92568e03e7abd4f933e54.webp?v=1756691360"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/641a967671846a22b3d92568e03e7abd4f933e54.webp?v=1756691360","width":2000},{"alt":null,"id":25982360092771,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd13d63b8b02775cfbd57f64941ce1554fd7da21.webp?v=1756691361"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd13d63b8b02775cfbd57f64941ce1554fd7da21.webp?v=1756691361","width":2000},{"alt":null,"id":25982360191075,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8531988af46b177e3c6236c7f17445b23279faf8.webp?v=1756691362"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8531988af46b177e3c6236c7f17445b23279faf8.webp?v=1756691362","width":2000},{"alt":null,"id":27777121321059,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54eaa8138dcc9946bcde7b05176b7d206fd291a2_1bd9a48c-2f20-4778-977c-65d5de713edd.webp?v=1784107109"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54eaa8138dcc9946bcde7b05176b7d206fd291a2_1bd9a48c-2f20-4778-977c-65d5de713edd.webp?v=1784107109","width":2000},{"alt":null,"id":27777121976419,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd13d63b8b02775cfbd57f64941ce1554fd7da21_39cb654d-df3e-43bc-8859-1ba2de1767f0.webp?v=1784107110"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd13d63b8b02775cfbd57f64941ce1554fd7da21_39cb654d-df3e-43bc-8859-1ba2de1767f0.webp?v=1784107110","width":2000},{"alt":null,"id":27777123123299,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/641a967671846a22b3d92568e03e7abd4f933e54_12077d97-360c-4bb7-83a4-e7fc11d68681.webp?v=1784107111"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/641a967671846a22b3d92568e03e7abd4f933e54_12077d97-360c-4bb7-83a4-e7fc11d68681.webp?v=1784107111","width":2000},{"alt":null,"id":27777123450979,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8531988af46b177e3c6236c7f17445b23279faf8_e548f4c7-fcf4-42da-8342-79b5ddf0e8c3.webp?v=1784107113"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8531988af46b177e3c6236c7f17445b23279faf8_e548f4c7-fcf4-42da-8342-79b5ddf0e8c3.webp?v=1784107113","width":2000},{"alt":null,"id":27823187132515,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8531988af46b177e3c6236c7f17445b23279faf8_8eddbad7-945b-4801-8a6a-256dc9cc872e.webp?v=1784522963"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8531988af46b177e3c6236c7f17445b23279faf8_8eddbad7-945b-4801-8a6a-256dc9cc872e.webp?v=1784522963","width":2000},{"alt":null,"id":27823187427427,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54eaa8138dcc9946bcde7b05176b7d206fd291a2_bac58175-73bb-43d7-ac75-970100226b3e.webp?v=1784522964"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54eaa8138dcc9946bcde7b05176b7d206fd291a2_bac58175-73bb-43d7-ac75-970100226b3e.webp?v=1784522964","width":2000},{"alt":null,"id":27823187951715,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd13d63b8b02775cfbd57f64941ce1554fd7da21_99efc1a4-5c01-4772-b47f-57564d97fa51.webp?v=1784522966"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd13d63b8b02775cfbd57f64941ce1554fd7da21_99efc1a4-5c01-4772-b47f-57564d97fa51.webp?v=1784522966","width":2000},{"alt":null,"id":27823188574307,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/641a967671846a22b3d92568e03e7abd4f933e54_b236f88a-d44d-4ea7-902c-4f980717a81d.webp?v=1784522967"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/641a967671846a22b3d92568e03e7abd4f933e54_b236f88a-d44d-4ea7-902c-4f980717a81d.webp?v=1784522967","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43658693148771,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MCN012620G-KEI07","requires_shipping":true,"taxable":true,"featured_image":{"id":36319236227171,"product_id":7873306951779,"position":12,"created_at":"2026-07-20T12:49:25+08:00","updated_at":"2026-07-20T12:49:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/641a967671846a22b3d92568e03e7abd4f933e54_b236f88a-d44d-4ea7-902c-4f980717a81d.webp?v=1784522967","variant_ids":[43658693148771]},"available":true,"name":"iPhone 14 Pro Clear (MagSafe 兼容) Keigo Cotton Swab - 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":"MCN012620G-KEI07","featured_media":{"alt":null,"id":27823188574307,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/641a967671846a22b3d92568e03e7abd4f933e54_b236f88a-d44d-4ea7-902c-4f980717a81d.webp?v=1784522967"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43658693148771,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MCN012620G-KEI07","requires_shipping":true,"taxable":true,"featured_image":{"id":36319236227171,"product_id":7873306951779,"position":12,"created_at":"2026-07-20T12:49:25+08:00","updated_at":"2026-07-20T12:49:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/641a967671846a22b3d92568e03e7abd4f933e54_b236f88a-d44d-4ea7-902c-4f980717a81d.webp?v=1784522967","variant_ids":[43658693148771]},"available":true,"name":"iPhone 14 Pro Clear (MagSafe 兼容) Keigo Cotton Swab - 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":"MCN012620G-KEI07","featured_media":{"alt":null,"id":27823188574307,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/641a967671846a22b3d92568e03e7abd4f933e54_b236f88a-d44d-4ea7-902c-4f980717a81d.webp?v=1784522967"}},"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: "停產" }