$product = {"id":7893816803427,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) Chubbynida 紫野花語","handle":"iphone-14-plus-mod-nx-magsafe-printable-chu01","description":null,"published_at":"2025-10-09T09:32:12+08:00","created_at":"2025-10-07T10:18:40+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-chubbynida","device-iPhone 14 Plus","merge","reseller-chubbynida"],"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":43763378815075,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-CHU01","requires_shipping":true,"taxable":true,"featured_image":{"id":34553109774435,"product_id":7893816803427,"position":12,"created_at":"2025-10-07T10:18:52+08:00","updated_at":"2025-10-07T10:18:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b05a2256b149b8c75716c492eafc247894be25b.webp?v=1759803534","variant_ids":[43763378815075]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) Chubbynida 紫野花語 - 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-CHU01","featured_media":{"alt":null,"id":26122757472355,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b05a2256b149b8c75716c492eafc247894be25b.webp?v=1759803534"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70be1935c73cb8126fd5f182fd956ec945d2774a.webp?v=1759803527","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a629927fb3c0386f2b3560d539dd9051f9b146e6.webp?v=1759803528","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7612c7ec3b05872b17ece8d7224ab748e612864b.webp?v=1759803528","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cf2f79a476d4b677a4c4da7c4c4c7d82a4026b3.webp?v=1759803529","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ca7b16a2272bb0de3f5cee531886f3aaede1004.webp?v=1759803530","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2b9b554ff2ba884ae8eaff360b105e3505f4ab2.webp?v=1759803530","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb6521228ac1cec134c8d9808e58628ee09510d7.webp?v=1759803531","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8f81bb2ed86878588a391aab4c3c8ff0344118d.webp?v=1759803532","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/953ace7480393485ad40e4f18c79b2e107a23578.webp?v=1759803532","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd8e268401abb255b0cb392314ee2910df83cfe3.webp?v=1759803533","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b13ff99bf5ab3b6ce8915e55552376c7169f6fd5.webp?v=1759803534","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b05a2256b149b8c75716c492eafc247894be25b.webp?v=1759803534","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5338f1e1e74c40f43e1b6347aa3f08f635461ac1.webp?v=1759803536"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70be1935c73cb8126fd5f182fd956ec945d2774a.webp?v=1759803527","options":["color"],"media":[{"alt":null,"id":26122755539043,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70be1935c73cb8126fd5f182fd956ec945d2774a.webp?v=1759803527"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70be1935c73cb8126fd5f182fd956ec945d2774a.webp?v=1759803527","width":2000},{"alt":null,"id":26122755670115,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a629927fb3c0386f2b3560d539dd9051f9b146e6.webp?v=1759803528"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a629927fb3c0386f2b3560d539dd9051f9b146e6.webp?v=1759803528","width":2000},{"alt":null,"id":26122755801187,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7612c7ec3b05872b17ece8d7224ab748e612864b.webp?v=1759803528"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7612c7ec3b05872b17ece8d7224ab748e612864b.webp?v=1759803528","width":2000},{"alt":null,"id":26122755965027,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cf2f79a476d4b677a4c4da7c4c4c7d82a4026b3.webp?v=1759803529"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cf2f79a476d4b677a4c4da7c4c4c7d82a4026b3.webp?v=1759803529","width":2000},{"alt":null,"id":26122756128867,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ca7b16a2272bb0de3f5cee531886f3aaede1004.webp?v=1759803530"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ca7b16a2272bb0de3f5cee531886f3aaede1004.webp?v=1759803530","width":2000},{"alt":null,"id":26122756325475,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2b9b554ff2ba884ae8eaff360b105e3505f4ab2.webp?v=1759803530"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2b9b554ff2ba884ae8eaff360b105e3505f4ab2.webp?v=1759803530","width":2000},{"alt":null,"id":26122756489315,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb6521228ac1cec134c8d9808e58628ee09510d7.webp?v=1759803531"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb6521228ac1cec134c8d9808e58628ee09510d7.webp?v=1759803531","width":2000},{"alt":null,"id":26122756620387,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8f81bb2ed86878588a391aab4c3c8ff0344118d.webp?v=1759803532"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8f81bb2ed86878588a391aab4c3c8ff0344118d.webp?v=1759803532","width":2000},{"alt":null,"id":26122756849763,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/953ace7480393485ad40e4f18c79b2e107a23578.webp?v=1759803532"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/953ace7480393485ad40e4f18c79b2e107a23578.webp?v=1759803532","width":2000},{"alt":null,"id":26122757079139,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd8e268401abb255b0cb392314ee2910df83cfe3.webp?v=1759803533"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd8e268401abb255b0cb392314ee2910df83cfe3.webp?v=1759803533","width":2000},{"alt":null,"id":26122757275747,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b13ff99bf5ab3b6ce8915e55552376c7169f6fd5.webp?v=1759803534"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b13ff99bf5ab3b6ce8915e55552376c7169f6fd5.webp?v=1759803534","width":2000},{"alt":null,"id":26122757472355,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b05a2256b149b8c75716c492eafc247894be25b.webp?v=1759803534"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b05a2256b149b8c75716c492eafc247894be25b.webp?v=1759803534","width":2000},{"alt":null,"id":26122757734499,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5338f1e1e74c40f43e1b6347aa3f08f635461ac1.webp?v=1759803536"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5338f1e1e74c40f43e1b6347aa3f08f635461ac1.webp?v=1759803536","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43763378815075,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-CHU01","requires_shipping":true,"taxable":true,"featured_image":{"id":34553109774435,"product_id":7893816803427,"position":12,"created_at":"2025-10-07T10:18:52+08:00","updated_at":"2025-10-07T10:18:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b05a2256b149b8c75716c492eafc247894be25b.webp?v=1759803534","variant_ids":[43763378815075]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) Chubbynida 紫野花語 - 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-CHU01","featured_media":{"alt":null,"id":26122757472355,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b05a2256b149b8c75716c492eafc247894be25b.webp?v=1759803534"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43763378815075,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-CHU01","requires_shipping":true,"taxable":true,"featured_image":{"id":34553109774435,"product_id":7893816803427,"position":12,"created_at":"2025-10-07T10:18:52+08:00","updated_at":"2025-10-07T10:18:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b05a2256b149b8c75716c492eafc247894be25b.webp?v=1759803534","variant_ids":[43763378815075]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) Chubbynida 紫野花語 - 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-CHU01","featured_media":{"alt":null,"id":26122757472355,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b05a2256b149b8c75716c492eafc247894be25b.webp?v=1759803534"}},"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: "停產" }