$product = {"id":7892650623075,"title":"iPhone 12 mini Mod NX Aaron Chang Ivy Girl","handle":"iphone-12-mini-mod-nx-printable-aar02","description":null,"published_at":"2025-10-03T09:45:55+08:00","created_at":"2025-10-02T10:01:33+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-aaronchang","device-iPhone 12 Mini","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":43756635095139,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118424-AAR02","requires_shipping":true,"taxable":true,"featured_image":{"id":34543686582371,"product_id":7892650623075,"position":10,"created_at":"2025-10-02T10:01:45+08:00","updated_at":"2025-10-02T10:01:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93c999ea3b5152615b580ee9f8af6727f9675f59.webp?v=1759370507","variant_ids":[43756635095139]},"available":true,"name":"iPhone 12 mini Mod NX Aaron Chang Ivy Girl - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118424-AAR02","featured_media":{"alt":null,"id":26113441497187,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93c999ea3b5152615b580ee9f8af6727f9675f59.webp?v=1759370507"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37e29067ad018dbb71f060a2700eee1a179546e4.webp?v=1759370501","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/635c8a39dfc64278ea033888c6bdca45c9d80eaf.webp?v=1759370501","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/135a7452af396df2f81be48128608d4be142aadb.webp?v=1759370502","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51cd66a61cad2101de52ef9dc094d47be529df6b.webp?v=1759370503","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12a9f19464dc963d8bfe0c76905effca00c6a689.webp?v=1759370503","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc27adccff4fb11cae9d4eb153fc2179c284e181.webp?v=1759370504","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f64854be4393c1e19404e7a2e4c4a70bc78f4e8c.webp?v=1759370505","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bfa78058c86ce510efacbe135ace123f76c29a5.webp?v=1759370506","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/822263908d3dd266281dcd176e2eb16c127efe13.webp?v=1759370507","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93c999ea3b5152615b580ee9f8af6727f9675f59.webp?v=1759370507","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c914af421bd07fa274d7cbc5a0db74bd6a83336.webp?v=1759370508"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37e29067ad018dbb71f060a2700eee1a179546e4.webp?v=1759370501","options":["color"],"media":[{"alt":null,"id":26113439498339,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37e29067ad018dbb71f060a2700eee1a179546e4.webp?v=1759370501"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37e29067ad018dbb71f060a2700eee1a179546e4.webp?v=1759370501","width":2000},{"alt":null,"id":26113439727715,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/635c8a39dfc64278ea033888c6bdca45c9d80eaf.webp?v=1759370501"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/635c8a39dfc64278ea033888c6bdca45c9d80eaf.webp?v=1759370501","width":2000},{"alt":null,"id":26113439891555,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/135a7452af396df2f81be48128608d4be142aadb.webp?v=1759370502"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/135a7452af396df2f81be48128608d4be142aadb.webp?v=1759370502","width":2000},{"alt":null,"id":26113440120931,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51cd66a61cad2101de52ef9dc094d47be529df6b.webp?v=1759370503"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51cd66a61cad2101de52ef9dc094d47be529df6b.webp?v=1759370503","width":2000},{"alt":null,"id":26113440252003,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12a9f19464dc963d8bfe0c76905effca00c6a689.webp?v=1759370503"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12a9f19464dc963d8bfe0c76905effca00c6a689.webp?v=1759370503","width":2000},{"alt":null,"id":26113440415843,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc27adccff4fb11cae9d4eb153fc2179c284e181.webp?v=1759370504"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc27adccff4fb11cae9d4eb153fc2179c284e181.webp?v=1759370504","width":2000},{"alt":null,"id":26113440677987,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f64854be4393c1e19404e7a2e4c4a70bc78f4e8c.webp?v=1759370505"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f64854be4393c1e19404e7a2e4c4a70bc78f4e8c.webp?v=1759370505","width":2000},{"alt":null,"id":26113440907363,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bfa78058c86ce510efacbe135ace123f76c29a5.webp?v=1759370506"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bfa78058c86ce510efacbe135ace123f76c29a5.webp?v=1759370506","width":2000},{"alt":null,"id":26113441202275,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/822263908d3dd266281dcd176e2eb16c127efe13.webp?v=1759370507"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/822263908d3dd266281dcd176e2eb16c127efe13.webp?v=1759370507","width":2000},{"alt":null,"id":26113441497187,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93c999ea3b5152615b580ee9f8af6727f9675f59.webp?v=1759370507"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93c999ea3b5152615b580ee9f8af6727f9675f59.webp?v=1759370507","width":2000},{"alt":null,"id":26113441628259,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c914af421bd07fa274d7cbc5a0db74bd6a83336.webp?v=1759370508"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c914af421bd07fa274d7cbc5a0db74bd6a83336.webp?v=1759370508","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43756635095139,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118424-AAR02","requires_shipping":true,"taxable":true,"featured_image":{"id":34543686582371,"product_id":7892650623075,"position":10,"created_at":"2025-10-02T10:01:45+08:00","updated_at":"2025-10-02T10:01:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93c999ea3b5152615b580ee9f8af6727f9675f59.webp?v=1759370507","variant_ids":[43756635095139]},"available":true,"name":"iPhone 12 mini Mod NX Aaron Chang Ivy Girl - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118424-AAR02","featured_media":{"alt":null,"id":26113441497187,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93c999ea3b5152615b580ee9f8af6727f9675f59.webp?v=1759370507"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43756635095139,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118424-AAR02","requires_shipping":true,"taxable":true,"featured_image":{"id":34543686582371,"product_id":7892650623075,"position":10,"created_at":"2025-10-02T10:01:45+08:00","updated_at":"2025-10-02T10:01:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93c999ea3b5152615b580ee9f8af6727f9675f59.webp?v=1759370507","variant_ids":[43756635095139]},"available":true,"name":"iPhone 12 mini Mod NX Aaron Chang Ivy Girl - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118424-AAR02","featured_media":{"alt":null,"id":26113441497187,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93c999ea3b5152615b580ee9f8af6727f9675f59.webp?v=1759370507"}},"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: "停產" }