$product = {"id":7888465985635,"title":"iPhone 12 mini Mod NX (MagSafe 兼容) 布朗尼 annnbrownie 油畫熊熊","handle":"iphone-12-mini-mod-nx-magsafe-printable-es03","description":null,"published_at":"2025-09-23T09:16:04+08:00","created_at":"2025-09-22T15:50:19+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-annnbrownie","device-iPhone 12 Mini","merge","reseller-annnbrownie"],"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":43743224365155,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-ES03","requires_shipping":true,"taxable":true,"featured_image":{"id":34514530599011,"product_id":7888465985635,"position":3,"created_at":"2025-09-22T15:50:24+08:00","updated_at":"2025-09-22T15:50:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19a465df08d73a766cd9fcfd298c5ec8b6254006.webp?v=1758527426","variant_ids":[43743224365155]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) 布朗尼 annnbrownie 油畫熊熊 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118424-ES03","featured_media":{"alt":null,"id":26084973084771,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19a465df08d73a766cd9fcfd298c5ec8b6254006.webp?v=1758527426"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7920dcc959095c40ac26cd4b78869a4369cc6484.webp?v=1758527425","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bdc2d2be6c4fb29aa2287130a0b5308382e9b0d8.webp?v=1758527426","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19a465df08d73a766cd9fcfd298c5ec8b6254006.webp?v=1758527426","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5d8b6512dca0148a663059ebd1e8369c3ebd54f.webp?v=1758527427","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5dbd9f15c8ab4f94b364b0d828606aacd7529f74.webp?v=1758527427","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1c22ca3916733258b14e3d2f8de57f6852fbdf0.webp?v=1758527428","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fecd462553eda435d41c365d2eae650c1a1a92f4.webp?v=1758527428","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef01cdac9b607704ab4b743b5b5af502a4dc2732.webp?v=1758527429","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4eedebc56ae032d4c3a608a3a076d91efec80c64.webp?v=1758527429","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e0933f3e6b4fcd5f004f46efcd08f57512c3237.webp?v=1758527430","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3e7df82eefb3a2b60ef107060e3185fa9640511.webp?v=1758527430"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7920dcc959095c40ac26cd4b78869a4369cc6484.webp?v=1758527425","options":["color"],"media":[{"alt":null,"id":26084972560483,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7920dcc959095c40ac26cd4b78869a4369cc6484.webp?v=1758527425"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7920dcc959095c40ac26cd4b78869a4369cc6484.webp?v=1758527425","width":2000},{"alt":null,"id":26084972724323,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bdc2d2be6c4fb29aa2287130a0b5308382e9b0d8.webp?v=1758527426"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bdc2d2be6c4fb29aa2287130a0b5308382e9b0d8.webp?v=1758527426","width":2000},{"alt":null,"id":26084973084771,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19a465df08d73a766cd9fcfd298c5ec8b6254006.webp?v=1758527426"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19a465df08d73a766cd9fcfd298c5ec8b6254006.webp?v=1758527426","width":2000},{"alt":null,"id":26084973248611,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5d8b6512dca0148a663059ebd1e8369c3ebd54f.webp?v=1758527427"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5d8b6512dca0148a663059ebd1e8369c3ebd54f.webp?v=1758527427","width":2000},{"alt":null,"id":26084973477987,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5dbd9f15c8ab4f94b364b0d828606aacd7529f74.webp?v=1758527427"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5dbd9f15c8ab4f94b364b0d828606aacd7529f74.webp?v=1758527427","width":2000},{"alt":null,"id":26084973641827,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1c22ca3916733258b14e3d2f8de57f6852fbdf0.webp?v=1758527428"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1c22ca3916733258b14e3d2f8de57f6852fbdf0.webp?v=1758527428","width":2000},{"alt":null,"id":26084973969507,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fecd462553eda435d41c365d2eae650c1a1a92f4.webp?v=1758527428"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fecd462553eda435d41c365d2eae650c1a1a92f4.webp?v=1758527428","width":2000},{"alt":null,"id":26084974395491,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef01cdac9b607704ab4b743b5b5af502a4dc2732.webp?v=1758527429"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef01cdac9b607704ab4b743b5b5af502a4dc2732.webp?v=1758527429","width":2000},{"alt":null,"id":26084974690403,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4eedebc56ae032d4c3a608a3a076d91efec80c64.webp?v=1758527429"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4eedebc56ae032d4c3a608a3a076d91efec80c64.webp?v=1758527429","width":2000},{"alt":null,"id":26084974854243,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e0933f3e6b4fcd5f004f46efcd08f57512c3237.webp?v=1758527430"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e0933f3e6b4fcd5f004f46efcd08f57512c3237.webp?v=1758527430","width":2000},{"alt":null,"id":26084975050851,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3e7df82eefb3a2b60ef107060e3185fa9640511.webp?v=1758527430"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3e7df82eefb3a2b60ef107060e3185fa9640511.webp?v=1758527430","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43743224365155,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-ES03","requires_shipping":true,"taxable":true,"featured_image":{"id":34514530599011,"product_id":7888465985635,"position":3,"created_at":"2025-09-22T15:50:24+08:00","updated_at":"2025-09-22T15:50:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19a465df08d73a766cd9fcfd298c5ec8b6254006.webp?v=1758527426","variant_ids":[43743224365155]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) 布朗尼 annnbrownie 油畫熊熊 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118424-ES03","featured_media":{"alt":null,"id":26084973084771,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19a465df08d73a766cd9fcfd298c5ec8b6254006.webp?v=1758527426"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43743224365155,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-ES03","requires_shipping":true,"taxable":true,"featured_image":{"id":34514530599011,"product_id":7888465985635,"position":3,"created_at":"2025-09-22T15:50:24+08:00","updated_at":"2025-09-22T15:50:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19a465df08d73a766cd9fcfd298c5ec8b6254006.webp?v=1758527426","variant_ids":[43743224365155]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) 布朗尼 annnbrownie 油畫熊熊 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118424-ES03","featured_media":{"alt":null,"id":26084973084771,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19a465df08d73a766cd9fcfd298c5ec8b6254006.webp?v=1758527426"}},"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: "停產" }