$product = {"id":7873334870115,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) Keigo Loudspeaker","handle":"iphone-14-plus-mod-nx-magsafe-printable-kei03","description":null,"published_at":"2025-09-01T10:26:54+08:00","created_at":"2025-09-01T09:56:46+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-keigo","device-iPhone 14 Plus","merge","reseller-keigo"],"price":110000,"price_min":110000,"price_max":110000,"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":43658806329443,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-KEI03","requires_shipping":true,"taxable":true,"featured_image":{"id":34410156064867,"product_id":7873334870115,"position":5,"created_at":"2025-09-01T09:56:54+08:00","updated_at":"2025-09-01T09:56:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e694cd75f7ace83713e69f85ded42314469d34e.webp?v=1756691816","variant_ids":[43658806329443]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) Keigo Loudspeaker - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-KEI03","featured_media":{"alt":null,"id":25982471045219,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e694cd75f7ace83713e69f85ded42314469d34e.webp?v=1756691816"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ca5192f070981380d90011fd16c29f42f48462f.webp?v=1756691812","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d7a7525f3553d9b6aa334bcaee4ced13418a78f.webp?v=1756691813","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b346fa04f467b753ab5002a673159d8b7b3b2a0.webp?v=1756691814","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f6363f27b05658f6554b83c949e6c059a33537b.webp?v=1756691815","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e694cd75f7ace83713e69f85ded42314469d34e.webp?v=1756691816","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ee407f26ea8a4d3916eebe9eb2086d6c40240f8.webp?v=1756691817","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbadda93fd4652458386abc317344d0a4a228bd0.webp?v=1756691818","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/188b59518950c7185347da1e8d4ab58f0c9c249b.webp?v=1756691819","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/530f2f962cb5788c9bfabd627f3ce5c2a43e0775.webp?v=1756691820","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7c95ac9ad6be945b6d507189a98eb4fced192f9.webp?v=1756691821","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74d46e1ad9e68af8d93c6b9936a5cf22e47cb2f5.webp?v=1756691822","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75dd81a937c65b0e34f1fa1c28b5fd3c866ba19e.webp?v=1756691823","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c03ea74d4dcf0acf91459ce7d9060aae4c1513bd.webp?v=1756691824"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ca5192f070981380d90011fd16c29f42f48462f.webp?v=1756691812","options":["color"],"media":[{"alt":null,"id":25982470226019,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ca5192f070981380d90011fd16c29f42f48462f.webp?v=1756691812"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ca5192f070981380d90011fd16c29f42f48462f.webp?v=1756691812","width":2000},{"alt":null,"id":25982470422627,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d7a7525f3553d9b6aa334bcaee4ced13418a78f.webp?v=1756691813"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d7a7525f3553d9b6aa334bcaee4ced13418a78f.webp?v=1756691813","width":2000},{"alt":null,"id":25982470652003,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b346fa04f467b753ab5002a673159d8b7b3b2a0.webp?v=1756691814"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b346fa04f467b753ab5002a673159d8b7b3b2a0.webp?v=1756691814","width":2000},{"alt":null,"id":25982470783075,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f6363f27b05658f6554b83c949e6c059a33537b.webp?v=1756691815"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f6363f27b05658f6554b83c949e6c059a33537b.webp?v=1756691815","width":2000},{"alt":null,"id":25982471045219,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e694cd75f7ace83713e69f85ded42314469d34e.webp?v=1756691816"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e694cd75f7ace83713e69f85ded42314469d34e.webp?v=1756691816","width":2000},{"alt":null,"id":25982471340131,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ee407f26ea8a4d3916eebe9eb2086d6c40240f8.webp?v=1756691817"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ee407f26ea8a4d3916eebe9eb2086d6c40240f8.webp?v=1756691817","width":2000},{"alt":null,"id":25982471503971,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbadda93fd4652458386abc317344d0a4a228bd0.webp?v=1756691818"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbadda93fd4652458386abc317344d0a4a228bd0.webp?v=1756691818","width":2000},{"alt":null,"id":25982471602275,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/188b59518950c7185347da1e8d4ab58f0c9c249b.webp?v=1756691819"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/188b59518950c7185347da1e8d4ab58f0c9c249b.webp?v=1756691819","width":2000},{"alt":null,"id":25982471700579,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/530f2f962cb5788c9bfabd627f3ce5c2a43e0775.webp?v=1756691820"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/530f2f962cb5788c9bfabd627f3ce5c2a43e0775.webp?v=1756691820","width":2000},{"alt":null,"id":25982471929955,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7c95ac9ad6be945b6d507189a98eb4fced192f9.webp?v=1756691821"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7c95ac9ad6be945b6d507189a98eb4fced192f9.webp?v=1756691821","width":2000},{"alt":null,"id":25982472126563,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74d46e1ad9e68af8d93c6b9936a5cf22e47cb2f5.webp?v=1756691822"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74d46e1ad9e68af8d93c6b9936a5cf22e47cb2f5.webp?v=1756691822","width":2000},{"alt":null,"id":25982472323171,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75dd81a937c65b0e34f1fa1c28b5fd3c866ba19e.webp?v=1756691823"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75dd81a937c65b0e34f1fa1c28b5fd3c866ba19e.webp?v=1756691823","width":2000},{"alt":null,"id":25982472454243,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c03ea74d4dcf0acf91459ce7d9060aae4c1513bd.webp?v=1756691824"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c03ea74d4dcf0acf91459ce7d9060aae4c1513bd.webp?v=1756691824","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43658806329443,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-KEI03","requires_shipping":true,"taxable":true,"featured_image":{"id":34410156064867,"product_id":7873334870115,"position":5,"created_at":"2025-09-01T09:56:54+08:00","updated_at":"2025-09-01T09:56:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e694cd75f7ace83713e69f85ded42314469d34e.webp?v=1756691816","variant_ids":[43658806329443]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) Keigo Loudspeaker - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-KEI03","featured_media":{"alt":null,"id":25982471045219,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e694cd75f7ace83713e69f85ded42314469d34e.webp?v=1756691816"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43658806329443,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-KEI03","requires_shipping":true,"taxable":true,"featured_image":{"id":34410156064867,"product_id":7873334870115,"position":5,"created_at":"2025-09-01T09:56:54+08:00","updated_at":"2025-09-01T09:56:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e694cd75f7ace83713e69f85ded42314469d34e.webp?v=1756691816","variant_ids":[43658806329443]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) Keigo Loudspeaker - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-KEI03","featured_media":{"alt":null,"id":25982471045219,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e694cd75f7ace83713e69f85ded42314469d34e.webp?v=1756691816"}},"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: "停產" }