$product = {"id":7876175495267,"title":"iPhone 12 mini Mod NX (MagSafe 兼容) 奧樂雞 OLOGY 每一天啊","handle":"iphone-12-mini-mod-nx-magsafe-printable-eb74","description":null,"published_at":"2025-09-04T09:13:17+08:00","created_at":"2025-09-03T12:21:17+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-byebyechuchu","device-iPhone 12 Mini","merge","reseller-byebyechuchu"],"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":43675722219619,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-EB74","requires_shipping":true,"taxable":true,"featured_image":{"id":34416688365667,"product_id":7876175495267,"position":6,"created_at":"2025-09-03T12:21:24+08:00","updated_at":"2025-09-03T12:21:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc34a54d32016d66f3390640a7f877f7bf2cee9f.webp?v=1756873286","variant_ids":[43675722219619]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) 奧樂雞 OLOGY 每一天啊 - 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-EB74","featured_media":{"alt":null,"id":25988962975843,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc34a54d32016d66f3390640a7f877f7bf2cee9f.webp?v=1756873286"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e59fcffc2392f72ff5310021a848d2ac11fcdd0.webp?v=1756873282","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c32b3f34086af100a3e7ecb6eb2b11aa6b765e83.webp?v=1756873283","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1744b0ea137ae084e00e990227ebc3579b0edc4b.webp?v=1756873284","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a76b889e43b7ab2c91b1cadb9aa5b0998e732314.webp?v=1756873284","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88943ee20471fca43c64186a106dac7980fd32fb.webp?v=1756873285","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc34a54d32016d66f3390640a7f877f7bf2cee9f.webp?v=1756873286","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68e8050c63bd241740bb1635d8f8143f09ad3152.webp?v=1756873287","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/434ea09ef394df2c9eae03023f1422f726b45dee.webp?v=1756873288","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b170e2bac83f04d28fc2b78d985f90c84a82555c.webp?v=1756873289","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e042accc84c2ab10fab1444943be76b1e0d93a85.webp?v=1756873289","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41ed0c0a459ac5d40d1f42ef432385ac93e3b11b.webp?v=1756873290"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e59fcffc2392f72ff5310021a848d2ac11fcdd0.webp?v=1756873282","options":["color"],"media":[{"alt":null,"id":25988961665123,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e59fcffc2392f72ff5310021a848d2ac11fcdd0.webp?v=1756873282"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e59fcffc2392f72ff5310021a848d2ac11fcdd0.webp?v=1756873282","width":2000},{"alt":null,"id":25988962025571,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c32b3f34086af100a3e7ecb6eb2b11aa6b765e83.webp?v=1756873283"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c32b3f34086af100a3e7ecb6eb2b11aa6b765e83.webp?v=1756873283","width":2000},{"alt":null,"id":25988962254947,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1744b0ea137ae084e00e990227ebc3579b0edc4b.webp?v=1756873284"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1744b0ea137ae084e00e990227ebc3579b0edc4b.webp?v=1756873284","width":2000},{"alt":null,"id":25988962484323,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a76b889e43b7ab2c91b1cadb9aa5b0998e732314.webp?v=1756873284"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a76b889e43b7ab2c91b1cadb9aa5b0998e732314.webp?v=1756873284","width":2000},{"alt":null,"id":25988962746467,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88943ee20471fca43c64186a106dac7980fd32fb.webp?v=1756873285"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88943ee20471fca43c64186a106dac7980fd32fb.webp?v=1756873285","width":2000},{"alt":null,"id":25988962975843,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc34a54d32016d66f3390640a7f877f7bf2cee9f.webp?v=1756873286"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc34a54d32016d66f3390640a7f877f7bf2cee9f.webp?v=1756873286","width":2000},{"alt":null,"id":25988963106915,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68e8050c63bd241740bb1635d8f8143f09ad3152.webp?v=1756873287"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68e8050c63bd241740bb1635d8f8143f09ad3152.webp?v=1756873287","width":2000},{"alt":null,"id":25988963303523,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/434ea09ef394df2c9eae03023f1422f726b45dee.webp?v=1756873288"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/434ea09ef394df2c9eae03023f1422f726b45dee.webp?v=1756873288","width":2000},{"alt":null,"id":25988963500131,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b170e2bac83f04d28fc2b78d985f90c84a82555c.webp?v=1756873289"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b170e2bac83f04d28fc2b78d985f90c84a82555c.webp?v=1756873289","width":2000},{"alt":null,"id":25988963696739,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e042accc84c2ab10fab1444943be76b1e0d93a85.webp?v=1756873289"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e042accc84c2ab10fab1444943be76b1e0d93a85.webp?v=1756873289","width":2000},{"alt":null,"id":25988964024419,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41ed0c0a459ac5d40d1f42ef432385ac93e3b11b.webp?v=1756873290"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41ed0c0a459ac5d40d1f42ef432385ac93e3b11b.webp?v=1756873290","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43675722219619,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-EB74","requires_shipping":true,"taxable":true,"featured_image":{"id":34416688365667,"product_id":7876175495267,"position":6,"created_at":"2025-09-03T12:21:24+08:00","updated_at":"2025-09-03T12:21:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc34a54d32016d66f3390640a7f877f7bf2cee9f.webp?v=1756873286","variant_ids":[43675722219619]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) 奧樂雞 OLOGY 每一天啊 - 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-EB74","featured_media":{"alt":null,"id":25988962975843,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc34a54d32016d66f3390640a7f877f7bf2cee9f.webp?v=1756873286"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43675722219619,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-EB74","requires_shipping":true,"taxable":true,"featured_image":{"id":34416688365667,"product_id":7876175495267,"position":6,"created_at":"2025-09-03T12:21:24+08:00","updated_at":"2025-09-03T12:21:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc34a54d32016d66f3390640a7f877f7bf2cee9f.webp?v=1756873286","variant_ids":[43675722219619]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) 奧樂雞 OLOGY 每一天啊 - 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-EB74","featured_media":{"alt":null,"id":25988962975843,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc34a54d32016d66f3390640a7f877f7bf2cee9f.webp?v=1756873286"}},"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: "停產" }