$product = {"id":7888399040611,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) KINGJUN 外太空世界","handle":"iphone-14-plus-mod-nx-magsafe-printable-iq05","description":null,"published_at":"2025-09-23T09:21:18+08:00","created_at":"2025-09-22T15:20:00+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-kingjun","device-iPhone 14 Plus","merge","reseller-kingjun"],"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":43742965629027,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-IQ05","requires_shipping":true,"taxable":true,"featured_image":{"id":34514256986211,"product_id":7888399040611,"position":7,"created_at":"2025-09-22T15:20:07+08:00","updated_at":"2025-09-22T15:20:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ea09dff0262eadcacc1b3ce08e6a4f5ee42a904.webp?v=1758525609","variant_ids":[43742965629027]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) KINGJUN 外太空世界 - 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-IQ05","featured_media":{"alt":null,"id":26084699504739,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ea09dff0262eadcacc1b3ce08e6a4f5ee42a904.webp?v=1758525609"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6d8a9eacfce783e8c5faef580d1e39f74d33535.webp?v=1758525606","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46e4b4cba6b02a016a2838cfa5e4b1713435182f.webp?v=1758525607","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d3204c492c53c09c8e7ea910aa4efc99991dd8e.webp?v=1758525607","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07030e219787b35dc3d2b219ff2f9b5617414526.webp?v=1758525607","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a039c7f9739230ea297ef03ad8b46de29e1fafb4.webp?v=1758525608","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c01f74cd2e837c4371bcc191cf830d814b9c86ca.webp?v=1758525608","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ea09dff0262eadcacc1b3ce08e6a4f5ee42a904.webp?v=1758525609","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3658895312155a2d24172b7853ee1a86a8bf9896.webp?v=1758525609","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed9482e0e961bc0bc26b15ec19ae03ba30f9b1f8.webp?v=1758525610","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e8876030786e9bf74334937b92408a7788a17e2.webp?v=1758525610","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4658aa1e0d288600dca3452844317d82d4ec1e15.webp?v=1758525611","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/393995e98f4f7c24e3ce2bdd5c89b79864b08fb4.webp?v=1758525612","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44a7ce4b345c4ce67ed12302425577eac82d7613.webp?v=1758525612"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6d8a9eacfce783e8c5faef580d1e39f74d33535.webp?v=1758525606","options":["color"],"media":[{"alt":null,"id":26084698718307,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6d8a9eacfce783e8c5faef580d1e39f74d33535.webp?v=1758525606"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6d8a9eacfce783e8c5faef580d1e39f74d33535.webp?v=1758525606","width":2000},{"alt":null,"id":26084698882147,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46e4b4cba6b02a016a2838cfa5e4b1713435182f.webp?v=1758525607"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46e4b4cba6b02a016a2838cfa5e4b1713435182f.webp?v=1758525607","width":2000},{"alt":null,"id":26084699078755,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d3204c492c53c09c8e7ea910aa4efc99991dd8e.webp?v=1758525607"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d3204c492c53c09c8e7ea910aa4efc99991dd8e.webp?v=1758525607","width":2000},{"alt":null,"id":26084699242595,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07030e219787b35dc3d2b219ff2f9b5617414526.webp?v=1758525607"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07030e219787b35dc3d2b219ff2f9b5617414526.webp?v=1758525607","width":2000},{"alt":null,"id":26084699340899,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a039c7f9739230ea297ef03ad8b46de29e1fafb4.webp?v=1758525608"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a039c7f9739230ea297ef03ad8b46de29e1fafb4.webp?v=1758525608","width":2000},{"alt":null,"id":26084699406435,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c01f74cd2e837c4371bcc191cf830d814b9c86ca.webp?v=1758525608"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c01f74cd2e837c4371bcc191cf830d814b9c86ca.webp?v=1758525608","width":2000},{"alt":null,"id":26084699504739,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ea09dff0262eadcacc1b3ce08e6a4f5ee42a904.webp?v=1758525609"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ea09dff0262eadcacc1b3ce08e6a4f5ee42a904.webp?v=1758525609","width":2000},{"alt":null,"id":26084699537507,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3658895312155a2d24172b7853ee1a86a8bf9896.webp?v=1758525609"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3658895312155a2d24172b7853ee1a86a8bf9896.webp?v=1758525609","width":2000},{"alt":null,"id":26084699603043,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed9482e0e961bc0bc26b15ec19ae03ba30f9b1f8.webp?v=1758525610"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed9482e0e961bc0bc26b15ec19ae03ba30f9b1f8.webp?v=1758525610","width":2000},{"alt":null,"id":26084699701347,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e8876030786e9bf74334937b92408a7788a17e2.webp?v=1758525610"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e8876030786e9bf74334937b92408a7788a17e2.webp?v=1758525610","width":2000},{"alt":null,"id":26084699799651,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4658aa1e0d288600dca3452844317d82d4ec1e15.webp?v=1758525611"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4658aa1e0d288600dca3452844317d82d4ec1e15.webp?v=1758525611","width":2000},{"alt":null,"id":26084699963491,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/393995e98f4f7c24e3ce2bdd5c89b79864b08fb4.webp?v=1758525612"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/393995e98f4f7c24e3ce2bdd5c89b79864b08fb4.webp?v=1758525612","width":2000},{"alt":null,"id":26084700127331,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44a7ce4b345c4ce67ed12302425577eac82d7613.webp?v=1758525612"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44a7ce4b345c4ce67ed12302425577eac82d7613.webp?v=1758525612","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43742965629027,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-IQ05","requires_shipping":true,"taxable":true,"featured_image":{"id":34514256986211,"product_id":7888399040611,"position":7,"created_at":"2025-09-22T15:20:07+08:00","updated_at":"2025-09-22T15:20:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ea09dff0262eadcacc1b3ce08e6a4f5ee42a904.webp?v=1758525609","variant_ids":[43742965629027]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) KINGJUN 外太空世界 - 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-IQ05","featured_media":{"alt":null,"id":26084699504739,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ea09dff0262eadcacc1b3ce08e6a4f5ee42a904.webp?v=1758525609"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43742965629027,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-IQ05","requires_shipping":true,"taxable":true,"featured_image":{"id":34514256986211,"product_id":7888399040611,"position":7,"created_at":"2025-09-22T15:20:07+08:00","updated_at":"2025-09-22T15:20:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ea09dff0262eadcacc1b3ce08e6a4f5ee42a904.webp?v=1758525609","variant_ids":[43742965629027]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) KINGJUN 外太空世界 - 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-IQ05","featured_media":{"alt":null,"id":26084699504739,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ea09dff0262eadcacc1b3ce08e6a4f5ee42a904.webp?v=1758525609"}},"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: "停產" }