$product = {"id":7873236959331,"title":"iPhone 13 mini Mod NX (MagSafe 兼容) Keigo Barber","handle":"iphone-13-mini-mod-nx-magsafe-printable-kei01","description":null,"published_at":"2025-09-01T11:07:19+08:00","created_at":"2025-09-01T09:31:31+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-keigo","device-iPhone 13 Mini","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":43658426515555,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0122804-KEI01","requires_shipping":true,"taxable":true,"featured_image":{"id":34409780314211,"product_id":7873236959331,"position":1,"created_at":"2025-09-01T09:31:35+08:00","updated_at":"2025-09-01T09:31:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4243d03da2cfcf14e2352b1359c861704dcb61a6.webp?v=1756690297","variant_ids":[43658426515555]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) Keigo Barber - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122804-KEI01","featured_media":{"alt":null,"id":25982095491171,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4243d03da2cfcf14e2352b1359c861704dcb61a6.webp?v=1756690297"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43658426613859,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0122824-KEI01","requires_shipping":true,"taxable":true,"featured_image":{"id":34409780576355,"product_id":7873236959331,"position":3,"created_at":"2025-09-01T09:31:36+08:00","updated_at":"2025-09-01T09:31:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d19573dd75508a8f97221778af51831ab89d3653.webp?v=1756690298","variant_ids":[43658426613859]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) Keigo Barber - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122824-KEI01","featured_media":{"alt":null,"id":25982095753315,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d19573dd75508a8f97221778af51831ab89d3653.webp?v=1756690298"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43658426646627,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01228J5-KEI01","requires_shipping":true,"taxable":true,"featured_image":{"id":34409781952611,"product_id":7873236959331,"position":9,"created_at":"2025-09-01T09:31:41+08:00","updated_at":"2025-09-01T09:31:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33138bc26bfe5e6dc7f752aefb9335eac3c3a687.webp?v=1756690303","variant_ids":[43658426646627]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) Keigo Barber - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01228J5-KEI01","featured_media":{"alt":null,"id":25982097129571,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33138bc26bfe5e6dc7f752aefb9335eac3c3a687.webp?v=1756690303"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4243d03da2cfcf14e2352b1359c861704dcb61a6.webp?v=1756690297","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fbb7a940ebc28a6662bb938d900e7e023b9848a.webp?v=1756690298","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d19573dd75508a8f97221778af51831ab89d3653.webp?v=1756690298","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91e9eb0a1afd70eda02d40533df09522ab82dd80.webp?v=1756690299","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5461a239e238b4f483e8e216dd36a413f614803e.webp?v=1756690300","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/914c1b9d6dc92a9a1bd489578305696a709c6931.webp?v=1756690301","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/164200accf143e5831492844561afaef6a682341.webp?v=1756690301","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e53ae7bd8beeea2199003ebe9f6a53070be741cf.webp?v=1756690302","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33138bc26bfe5e6dc7f752aefb9335eac3c3a687.webp?v=1756690303","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cde2d862791f8501743a34a62d7b4bdca8b73d48.webp?v=1756690303"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4243d03da2cfcf14e2352b1359c861704dcb61a6.webp?v=1756690297","options":["color"],"media":[{"alt":null,"id":25982095491171,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4243d03da2cfcf14e2352b1359c861704dcb61a6.webp?v=1756690297"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4243d03da2cfcf14e2352b1359c861704dcb61a6.webp?v=1756690297","width":2000},{"alt":null,"id":25982095622243,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fbb7a940ebc28a6662bb938d900e7e023b9848a.webp?v=1756690298"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fbb7a940ebc28a6662bb938d900e7e023b9848a.webp?v=1756690298","width":2000},{"alt":null,"id":25982095753315,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d19573dd75508a8f97221778af51831ab89d3653.webp?v=1756690298"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d19573dd75508a8f97221778af51831ab89d3653.webp?v=1756690298","width":2000},{"alt":null,"id":25982095917155,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91e9eb0a1afd70eda02d40533df09522ab82dd80.webp?v=1756690299"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91e9eb0a1afd70eda02d40533df09522ab82dd80.webp?v=1756690299","width":2000},{"alt":null,"id":25982096113763,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5461a239e238b4f483e8e216dd36a413f614803e.webp?v=1756690300"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5461a239e238b4f483e8e216dd36a413f614803e.webp?v=1756690300","width":2000},{"alt":null,"id":25982096310371,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/914c1b9d6dc92a9a1bd489578305696a709c6931.webp?v=1756690301"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/914c1b9d6dc92a9a1bd489578305696a709c6931.webp?v=1756690301","width":2000},{"alt":null,"id":25982096572515,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/164200accf143e5831492844561afaef6a682341.webp?v=1756690301"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/164200accf143e5831492844561afaef6a682341.webp?v=1756690301","width":2000},{"alt":null,"id":25982096867427,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e53ae7bd8beeea2199003ebe9f6a53070be741cf.webp?v=1756690302"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e53ae7bd8beeea2199003ebe9f6a53070be741cf.webp?v=1756690302","width":2000},{"alt":null,"id":25982097129571,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33138bc26bfe5e6dc7f752aefb9335eac3c3a687.webp?v=1756690303"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33138bc26bfe5e6dc7f752aefb9335eac3c3a687.webp?v=1756690303","width":2000},{"alt":null,"id":25982097457251,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cde2d862791f8501743a34a62d7b4bdca8b73d48.webp?v=1756690303"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cde2d862791f8501743a34a62d7b4bdca8b73d48.webp?v=1756690303","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43658426515555,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0122804-KEI01","requires_shipping":true,"taxable":true,"featured_image":{"id":34409780314211,"product_id":7873236959331,"position":1,"created_at":"2025-09-01T09:31:35+08:00","updated_at":"2025-09-01T09:31:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4243d03da2cfcf14e2352b1359c861704dcb61a6.webp?v=1756690297","variant_ids":[43658426515555]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) Keigo Barber - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122804-KEI01","featured_media":{"alt":null,"id":25982095491171,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4243d03da2cfcf14e2352b1359c861704dcb61a6.webp?v=1756690297"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43658426613859,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0122824-KEI01","requires_shipping":true,"taxable":true,"featured_image":{"id":34409780576355,"product_id":7873236959331,"position":3,"created_at":"2025-09-01T09:31:36+08:00","updated_at":"2025-09-01T09:31:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d19573dd75508a8f97221778af51831ab89d3653.webp?v=1756690298","variant_ids":[43658426613859]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) Keigo Barber - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122824-KEI01","featured_media":{"alt":null,"id":25982095753315,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d19573dd75508a8f97221778af51831ab89d3653.webp?v=1756690298"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43658426646627,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01228J5-KEI01","requires_shipping":true,"taxable":true,"featured_image":{"id":34409781952611,"product_id":7873236959331,"position":9,"created_at":"2025-09-01T09:31:41+08:00","updated_at":"2025-09-01T09:31:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33138bc26bfe5e6dc7f752aefb9335eac3c3a687.webp?v=1756690303","variant_ids":[43658426646627]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) Keigo Barber - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01228J5-KEI01","featured_media":{"alt":null,"id":25982097129571,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33138bc26bfe5e6dc7f752aefb9335eac3c3a687.webp?v=1756690303"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43658426515555,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0122804-KEI01","requires_shipping":true,"taxable":true,"featured_image":{"id":34409780314211,"product_id":7873236959331,"position":1,"created_at":"2025-09-01T09:31:35+08:00","updated_at":"2025-09-01T09:31:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4243d03da2cfcf14e2352b1359c861704dcb61a6.webp?v=1756690297","variant_ids":[43658426515555]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) Keigo Barber - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122804-KEI01","featured_media":{"alt":null,"id":25982095491171,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4243d03da2cfcf14e2352b1359c861704dcb61a6.webp?v=1756690297"}},"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: "停產" }