$product = {"id":7892651704419,"title":"iPhone 14 Plus Mod NX Aaron Chang Take Ivy","handle":"iphone-14-plus-mod-nx-printable-aar09","description":null,"published_at":"2025-10-03T09:45:45+08:00","created_at":"2025-10-02T10:01:52+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-aaronchang","device-iPhone 14 Plus","merge","reseller-aaronchang"],"price":90000,"price_min":90000,"price_max":90000,"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":43756639617123,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-AAR09","requires_shipping":true,"taxable":true,"featured_image":{"id":34543689433187,"product_id":7892651704419,"position":4,"created_at":"2025-10-02T10:01:58+08:00","updated_at":"2025-10-02T10:02:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/368e42a6f027d9e2a2b9d4ad1532e927c94ce787.webp?v=1759370520","variant_ids":[43756639617123]},"available":true,"name":"iPhone 14 Plus Mod NX Aaron Chang Take Ivy - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-AAR09","featured_media":{"alt":null,"id":26113444315235,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/368e42a6f027d9e2a2b9d4ad1532e927c94ce787.webp?v=1759370520"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35bc16d19e23987ac6baee0766c241dec3167a40.webp?v=1759370519","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/464fd44f41c3249542619ddd9a1e1fee52e67685.webp?v=1759370519","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49831ed20c1c927bb7df7858d381e3e79b2a065b.webp?v=1759370520","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/368e42a6f027d9e2a2b9d4ad1532e927c94ce787.webp?v=1759370520","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49d2245b1dabd9f29716bd9c1cb2e68f23867087.webp?v=1759370522","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c944315e1ad078f67ef8be0a1fc5f07a67ffde7a.webp?v=1759370523","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e6ff2057c7e53d7e5430904a51537846120161e.webp?v=1759370524","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edb7f6590d3fb32a9ac5b1149baabb59ab7938ba.webp?v=1759370524","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af6415e01c7883a3736960df741ebfb9400a79ef.webp?v=1759370525","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5562d543603453367811be6502201b545e916298.webp?v=1759370526","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c7280d8a6ddccd75bb7e728d3bbb9f5cd04cfc9.webp?v=1759370526","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62110e1440d3fbfc9cc24567cc969d33cc25bf06.webp?v=1759370527","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d86aebb5646fc3f5966c284e4673c9bce24d37e.webp?v=1759370528"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35bc16d19e23987ac6baee0766c241dec3167a40.webp?v=1759370519","options":["color"],"media":[{"alt":null,"id":26113443758179,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35bc16d19e23987ac6baee0766c241dec3167a40.webp?v=1759370519"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35bc16d19e23987ac6baee0766c241dec3167a40.webp?v=1759370519","width":2000},{"alt":null,"id":26113443987555,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/464fd44f41c3249542619ddd9a1e1fee52e67685.webp?v=1759370519"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/464fd44f41c3249542619ddd9a1e1fee52e67685.webp?v=1759370519","width":2000},{"alt":null,"id":26113444151395,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49831ed20c1c927bb7df7858d381e3e79b2a065b.webp?v=1759370520"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49831ed20c1c927bb7df7858d381e3e79b2a065b.webp?v=1759370520","width":2000},{"alt":null,"id":26113444315235,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/368e42a6f027d9e2a2b9d4ad1532e927c94ce787.webp?v=1759370520"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/368e42a6f027d9e2a2b9d4ad1532e927c94ce787.webp?v=1759370520","width":2000},{"alt":null,"id":26113444479075,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49d2245b1dabd9f29716bd9c1cb2e68f23867087.webp?v=1759370522"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49d2245b1dabd9f29716bd9c1cb2e68f23867087.webp?v=1759370522","width":2000},{"alt":null,"id":26113444642915,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c944315e1ad078f67ef8be0a1fc5f07a67ffde7a.webp?v=1759370523"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c944315e1ad078f67ef8be0a1fc5f07a67ffde7a.webp?v=1759370523","width":2000},{"alt":null,"id":26113444741219,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e6ff2057c7e53d7e5430904a51537846120161e.webp?v=1759370524"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e6ff2057c7e53d7e5430904a51537846120161e.webp?v=1759370524","width":2000},{"alt":null,"id":26113444937827,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edb7f6590d3fb32a9ac5b1149baabb59ab7938ba.webp?v=1759370524"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edb7f6590d3fb32a9ac5b1149baabb59ab7938ba.webp?v=1759370524","width":2000},{"alt":null,"id":26113445101667,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af6415e01c7883a3736960df741ebfb9400a79ef.webp?v=1759370525"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af6415e01c7883a3736960df741ebfb9400a79ef.webp?v=1759370525","width":2000},{"alt":null,"id":26113445199971,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5562d543603453367811be6502201b545e916298.webp?v=1759370526"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5562d543603453367811be6502201b545e916298.webp?v=1759370526","width":2000},{"alt":null,"id":26113445331043,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c7280d8a6ddccd75bb7e728d3bbb9f5cd04cfc9.webp?v=1759370526"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c7280d8a6ddccd75bb7e728d3bbb9f5cd04cfc9.webp?v=1759370526","width":2000},{"alt":null,"id":26113445429347,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62110e1440d3fbfc9cc24567cc969d33cc25bf06.webp?v=1759370527"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62110e1440d3fbfc9cc24567cc969d33cc25bf06.webp?v=1759370527","width":2000},{"alt":null,"id":26113445593187,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d86aebb5646fc3f5966c284e4673c9bce24d37e.webp?v=1759370528"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d86aebb5646fc3f5966c284e4673c9bce24d37e.webp?v=1759370528","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43756639617123,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-AAR09","requires_shipping":true,"taxable":true,"featured_image":{"id":34543689433187,"product_id":7892651704419,"position":4,"created_at":"2025-10-02T10:01:58+08:00","updated_at":"2025-10-02T10:02:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/368e42a6f027d9e2a2b9d4ad1532e927c94ce787.webp?v=1759370520","variant_ids":[43756639617123]},"available":true,"name":"iPhone 14 Plus Mod NX Aaron Chang Take Ivy - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-AAR09","featured_media":{"alt":null,"id":26113444315235,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/368e42a6f027d9e2a2b9d4ad1532e927c94ce787.webp?v=1759370520"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43756639617123,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-AAR09","requires_shipping":true,"taxable":true,"featured_image":{"id":34543689433187,"product_id":7892651704419,"position":4,"created_at":"2025-10-02T10:01:58+08:00","updated_at":"2025-10-02T10:02:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/368e42a6f027d9e2a2b9d4ad1532e927c94ce787.webp?v=1759370520","variant_ids":[43756639617123]},"available":true,"name":"iPhone 14 Plus Mod NX Aaron Chang Take Ivy - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-AAR09","featured_media":{"alt":null,"id":26113444315235,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/368e42a6f027d9e2a2b9d4ad1532e927c94ce787.webp?v=1759370520"}},"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: "停產" }