$product = {"id":7847998554211,"title":"iPhone 12 mini Mod NX 嗨小強 Selfie Time","handle":"iphone-12-mini-mod-nx-bumper-crossover-design-fv66","description":null,"published_at":"2025-08-07T09:29:41+08:00","created_at":"2025-08-05T09:31:45+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-hijohnnn","device-iPhone 12 Mini","merge","reseller-hijohnnn"],"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":43562707648611,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118424-FV66","requires_shipping":true,"taxable":true,"featured_image":{"id":34287502327907,"product_id":7847998554211,"position":3,"created_at":"2025-08-05T09:31:50+08:00","updated_at":"2025-08-05T09:31:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e988b1801ccbe575e5360ca62cbed40f596d8d98.webp?v=1754357512","variant_ids":[43562707648611]},"available":true,"name":"iPhone 12 mini Mod NX 嗨小強 Selfie Time - 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-FV66","featured_media":{"alt":null,"id":25888699940963,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e988b1801ccbe575e5360ca62cbed40f596d8d98.webp?v=1754357512"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7eb6c6abd24bb28be7eedab054de0324bc4f5f4f.webp?v=1754357511","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c96b391f523f52d4db451ce8bff8bc8e3e155ecc.webp?v=1754357511","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e988b1801ccbe575e5360ca62cbed40f596d8d98.webp?v=1754357512","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34d68455680ad1440436da82c889e3ebdcb92a7f.webp?v=1754357512","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d25137cad2c6d0509b8583558a1fa676b1fa9468.webp?v=1754357513","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/952f1a122d410295582a927eaab623374abfa222.webp?v=1754357514","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4355bf11d7997bce32e0a4bde774176f31a8cd1b.webp?v=1754357514","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2ce4f6d6d2d22c093f66751e8d8b6581d3a9c93.webp?v=1754357515","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4004da4493bd0c2639a7f21a0aedbe4286004ba7.webp?v=1754357515","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1792fd9ede53f74f38035d2767c90bcce0ffc06d.webp?v=1754357516","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0de2a6caa4e57cd0863cbb1021faeb945272e169.webp?v=1754357517"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7eb6c6abd24bb28be7eedab054de0324bc4f5f4f.webp?v=1754357511","options":["color"],"media":[{"alt":null,"id":25888699482211,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7eb6c6abd24bb28be7eedab054de0324bc4f5f4f.webp?v=1754357511"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7eb6c6abd24bb28be7eedab054de0324bc4f5f4f.webp?v=1754357511","width":2000},{"alt":null,"id":25888699744355,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c96b391f523f52d4db451ce8bff8bc8e3e155ecc.webp?v=1754357511"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c96b391f523f52d4db451ce8bff8bc8e3e155ecc.webp?v=1754357511","width":2000},{"alt":null,"id":25888699940963,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e988b1801ccbe575e5360ca62cbed40f596d8d98.webp?v=1754357512"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e988b1801ccbe575e5360ca62cbed40f596d8d98.webp?v=1754357512","width":2000},{"alt":null,"id":25888700137571,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34d68455680ad1440436da82c889e3ebdcb92a7f.webp?v=1754357512"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34d68455680ad1440436da82c889e3ebdcb92a7f.webp?v=1754357512","width":2000},{"alt":null,"id":25888700334179,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d25137cad2c6d0509b8583558a1fa676b1fa9468.webp?v=1754357513"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d25137cad2c6d0509b8583558a1fa676b1fa9468.webp?v=1754357513","width":2000},{"alt":null,"id":25888700465251,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/952f1a122d410295582a927eaab623374abfa222.webp?v=1754357514"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/952f1a122d410295582a927eaab623374abfa222.webp?v=1754357514","width":2000},{"alt":null,"id":25888700596323,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4355bf11d7997bce32e0a4bde774176f31a8cd1b.webp?v=1754357514"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4355bf11d7997bce32e0a4bde774176f31a8cd1b.webp?v=1754357514","width":2000},{"alt":null,"id":25888700825699,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2ce4f6d6d2d22c093f66751e8d8b6581d3a9c93.webp?v=1754357515"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2ce4f6d6d2d22c093f66751e8d8b6581d3a9c93.webp?v=1754357515","width":2000},{"alt":null,"id":25888700989539,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4004da4493bd0c2639a7f21a0aedbe4286004ba7.webp?v=1754357515"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4004da4493bd0c2639a7f21a0aedbe4286004ba7.webp?v=1754357515","width":2000},{"alt":null,"id":25888701120611,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1792fd9ede53f74f38035d2767c90bcce0ffc06d.webp?v=1754357516"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1792fd9ede53f74f38035d2767c90bcce0ffc06d.webp?v=1754357516","width":2000},{"alt":null,"id":25888701218915,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0de2a6caa4e57cd0863cbb1021faeb945272e169.webp?v=1754357517"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0de2a6caa4e57cd0863cbb1021faeb945272e169.webp?v=1754357517","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43562707648611,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118424-FV66","requires_shipping":true,"taxable":true,"featured_image":{"id":34287502327907,"product_id":7847998554211,"position":3,"created_at":"2025-08-05T09:31:50+08:00","updated_at":"2025-08-05T09:31:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e988b1801ccbe575e5360ca62cbed40f596d8d98.webp?v=1754357512","variant_ids":[43562707648611]},"available":true,"name":"iPhone 12 mini Mod NX 嗨小強 Selfie Time - 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-FV66","featured_media":{"alt":null,"id":25888699940963,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e988b1801ccbe575e5360ca62cbed40f596d8d98.webp?v=1754357512"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43562707648611,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118424-FV66","requires_shipping":true,"taxable":true,"featured_image":{"id":34287502327907,"product_id":7847998554211,"position":3,"created_at":"2025-08-05T09:31:50+08:00","updated_at":"2025-08-05T09:31:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e988b1801ccbe575e5360ca62cbed40f596d8d98.webp?v=1754357512","variant_ids":[43562707648611]},"available":true,"name":"iPhone 12 mini Mod NX 嗨小強 Selfie Time - 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-FV66","featured_media":{"alt":null,"id":25888699940963,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e988b1801ccbe575e5360ca62cbed40f596d8d98.webp?v=1754357512"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $type = ""; var sellingStatus if ($isMerge) { $(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: "停產" }