$product = {"id":7873228931171,"title":"iPhone 15 Plus Mod NX (MagSafe 兼容) Keigo Loudspeaker","handle":"iphone-15-plus-mod-nx-magsafe-printable-kei03","description":null,"published_at":"2025-09-01T11:10:56+08:00","created_at":"2025-09-01T09:29:25+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-keigo","device-iPhone 15 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":43658396696675,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0129624-KEI03","requires_shipping":true,"taxable":true,"featured_image":{"id":34409752035427,"product_id":7873228931171,"position":6,"created_at":"2025-09-01T09:29:33+08:00","updated_at":"2025-09-01T09:29:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57aca35f1b9113b114b02afa8cbf9088d479aa3f.webp?v=1756690175","variant_ids":[43658396696675]},"available":true,"name":"iPhone 15 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":"MPB0129624-KEI03","featured_media":{"alt":null,"id":25982067212387,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57aca35f1b9113b114b02afa8cbf9088d479aa3f.webp?v=1756690175"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43658396860515,"title":"Blush Pink","option1":"Blush Pink","option2":null,"option3":null,"sku":"MPB0129657-KEI03","requires_shipping":true,"taxable":true,"featured_image":{"id":34409750855779,"product_id":7873228931171,"position":1,"created_at":"2025-09-01T09:29:29+08:00","updated_at":"2025-09-01T09:29:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5d6640f3023933de08e2b00d4678b6f84e0cfd4.webp?v=1756690171","variant_ids":[43658396860515]},"available":true,"name":"iPhone 15 Plus Mod NX (MagSafe 兼容) Keigo Loudspeaker - Blush Pink","public_title":"Blush Pink","options":["Blush Pink"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129657-KEI03","featured_media":{"alt":null,"id":25982066032739,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5d6640f3023933de08e2b00d4678b6f84e0cfd4.webp?v=1756690171"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5d6640f3023933de08e2b00d4678b6f84e0cfd4.webp?v=1756690171","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9f22249771bb0f393e65dda7b77e2d131c8788d.webp?v=1756690172","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1ab5ff8bcce791b475759706a57bce5bcf7bd6c.webp?v=1756690172","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfaed17e7f43aaaf3375f50562550b4967034714.webp?v=1756690174","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efb1a8cfab85cdb959107d3bb1793e789c95a08d.webp?v=1756690174","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57aca35f1b9113b114b02afa8cbf9088d479aa3f.webp?v=1756690175","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4abe44436186c50e73c6122146cdde53e8f41ad7.webp?v=1756690176","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62321c9a27aa955e6d963ac871d84306bbbe2749.webp?v=1756690176","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c98a3f5c819b145de9364d6ad06627a67aaf93cc.webp?v=1756690177"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5d6640f3023933de08e2b00d4678b6f84e0cfd4.webp?v=1756690171","options":["color"],"media":[{"alt":null,"id":25982066032739,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5d6640f3023933de08e2b00d4678b6f84e0cfd4.webp?v=1756690171"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5d6640f3023933de08e2b00d4678b6f84e0cfd4.webp?v=1756690171","width":2000},{"alt":null,"id":25982066196579,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9f22249771bb0f393e65dda7b77e2d131c8788d.webp?v=1756690172"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9f22249771bb0f393e65dda7b77e2d131c8788d.webp?v=1756690172","width":2000},{"alt":null,"id":25982066294883,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1ab5ff8bcce791b475759706a57bce5bcf7bd6c.webp?v=1756690172"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1ab5ff8bcce791b475759706a57bce5bcf7bd6c.webp?v=1756690172","width":2000},{"alt":null,"id":25982066655331,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfaed17e7f43aaaf3375f50562550b4967034714.webp?v=1756690174"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfaed17e7f43aaaf3375f50562550b4967034714.webp?v=1756690174","width":2000},{"alt":null,"id":25982066983011,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efb1a8cfab85cdb959107d3bb1793e789c95a08d.webp?v=1756690174"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efb1a8cfab85cdb959107d3bb1793e789c95a08d.webp?v=1756690174","width":2000},{"alt":null,"id":25982067212387,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57aca35f1b9113b114b02afa8cbf9088d479aa3f.webp?v=1756690175"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57aca35f1b9113b114b02afa8cbf9088d479aa3f.webp?v=1756690175","width":2000},{"alt":null,"id":25982067441763,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4abe44436186c50e73c6122146cdde53e8f41ad7.webp?v=1756690176"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4abe44436186c50e73c6122146cdde53e8f41ad7.webp?v=1756690176","width":2000},{"alt":null,"id":25982067703907,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62321c9a27aa955e6d963ac871d84306bbbe2749.webp?v=1756690176"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62321c9a27aa955e6d963ac871d84306bbbe2749.webp?v=1756690176","width":2000},{"alt":null,"id":25982067834979,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c98a3f5c819b145de9364d6ad06627a67aaf93cc.webp?v=1756690177"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c98a3f5c819b145de9364d6ad06627a67aaf93cc.webp?v=1756690177","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43658396696675,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0129624-KEI03","requires_shipping":true,"taxable":true,"featured_image":{"id":34409752035427,"product_id":7873228931171,"position":6,"created_at":"2025-09-01T09:29:33+08:00","updated_at":"2025-09-01T09:29:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57aca35f1b9113b114b02afa8cbf9088d479aa3f.webp?v=1756690175","variant_ids":[43658396696675]},"available":true,"name":"iPhone 15 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":"MPB0129624-KEI03","featured_media":{"alt":null,"id":25982067212387,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57aca35f1b9113b114b02afa8cbf9088d479aa3f.webp?v=1756690175"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43658396860515,"title":"Blush Pink","option1":"Blush Pink","option2":null,"option3":null,"sku":"MPB0129657-KEI03","requires_shipping":true,"taxable":true,"featured_image":{"id":34409750855779,"product_id":7873228931171,"position":1,"created_at":"2025-09-01T09:29:29+08:00","updated_at":"2025-09-01T09:29:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5d6640f3023933de08e2b00d4678b6f84e0cfd4.webp?v=1756690171","variant_ids":[43658396860515]},"available":true,"name":"iPhone 15 Plus Mod NX (MagSafe 兼容) Keigo Loudspeaker - Blush Pink","public_title":"Blush Pink","options":["Blush Pink"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129657-KEI03","featured_media":{"alt":null,"id":25982066032739,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5d6640f3023933de08e2b00d4678b6f84e0cfd4.webp?v=1756690171"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43658396696675,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0129624-KEI03","requires_shipping":true,"taxable":true,"featured_image":{"id":34409752035427,"product_id":7873228931171,"position":6,"created_at":"2025-09-01T09:29:33+08:00","updated_at":"2025-09-01T09:29:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57aca35f1b9113b114b02afa8cbf9088d479aa3f.webp?v=1756690175","variant_ids":[43658396696675]},"available":true,"name":"iPhone 15 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":"MPB0129624-KEI03","featured_media":{"alt":null,"id":25982067212387,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57aca35f1b9113b114b02afa8cbf9088d479aa3f.webp?v=1756690175"}},"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: "停產" }