$product = {"id":7876059955299,"title":"iPhone 13 mini Mod NX (MagSafe 兼容) 奧樂雞 OLOGY 戀愛成就","handle":"iphone-13-mini-mod-nx-magsafe-printable-eb78","description":null,"published_at":"2025-09-04T10:08:37+08:00","created_at":"2025-09-03T11:50:00+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-byebyechuchu","device-iPhone 13 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":43675211694179,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0122824-EB78","requires_shipping":true,"taxable":true,"featured_image":{"id":34416210509923,"product_id":7876059955299,"position":4,"created_at":"2025-09-03T11:50:06+08:00","updated_at":"2025-09-03T11:50:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec238a736ef4347153659261597510f950a9932a.webp?v=1756871408","variant_ids":[43675211694179]},"available":true,"name":"iPhone 13 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":"MPB0122824-EB78","featured_media":{"alt":null,"id":25988485283939,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec238a736ef4347153659261597510f950a9932a.webp?v=1756871408"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43675211858019,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01228J5-EB78","requires_shipping":true,"taxable":true,"featured_image":{"id":34416211656803,"product_id":7876059955299,"position":9,"created_at":"2025-09-03T11:50:10+08:00","updated_at":"2025-09-03T11:50:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95acfdfaf8dcaa57c2b0bfe0d73d48b9c0334e7a.webp?v=1756871412","variant_ids":[43675211858019]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) 奧樂雞 OLOGY 戀愛成就 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01228J5-EB78","featured_media":{"alt":null,"id":25988486430819,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95acfdfaf8dcaa57c2b0bfe0d73d48b9c0334e7a.webp?v=1756871412"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43675211923555,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0122804-EB78","requires_shipping":true,"taxable":true,"featured_image":{"id":34416211329123,"product_id":7876059955299,"position":7,"created_at":"2025-09-03T11:50:08+08:00","updated_at":"2025-09-03T11:50:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2b7c6b7e1cdc2ab9cdea9ecd0b09f3d8160f42e.webp?v=1756871411","variant_ids":[43675211923555]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) 奧樂雞 OLOGY 戀愛成就 - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122804-EB78","featured_media":{"alt":null,"id":25988486103139,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2b7c6b7e1cdc2ab9cdea9ecd0b09f3d8160f42e.webp?v=1756871411"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea38b071480ab6fa472542d7b4bdca91beb6a25f.webp?v=1756871406","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/194c97ff45faf9734b69513d6425207177c69500.webp?v=1756871407","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/827bb6bedb386d52667fb31589c10fa95dbfe38f.webp?v=1756871408","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec238a736ef4347153659261597510f950a9932a.webp?v=1756871408","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e5a174e3e2e3ca00f8e73bb6562690d06a4c84e.webp?v=1756871409","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7eb41f8197b5f35c839a46e9934d83c1830cfa4d.webp?v=1756871410","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2b7c6b7e1cdc2ab9cdea9ecd0b09f3d8160f42e.webp?v=1756871411","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54534834bcf47cfa2137c31f029331680511a0f8.webp?v=1756871411","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95acfdfaf8dcaa57c2b0bfe0d73d48b9c0334e7a.webp?v=1756871412","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4bc66c141db440364fef3aa31e05075016170a7.webp?v=1756871412"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea38b071480ab6fa472542d7b4bdca91beb6a25f.webp?v=1756871406","options":["color"],"media":[{"alt":null,"id":25988484530275,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea38b071480ab6fa472542d7b4bdca91beb6a25f.webp?v=1756871406"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea38b071480ab6fa472542d7b4bdca91beb6a25f.webp?v=1756871406","width":2000},{"alt":null,"id":25988484694115,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/194c97ff45faf9734b69513d6425207177c69500.webp?v=1756871407"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/194c97ff45faf9734b69513d6425207177c69500.webp?v=1756871407","width":2000},{"alt":null,"id":25988484989027,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/827bb6bedb386d52667fb31589c10fa95dbfe38f.webp?v=1756871408"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/827bb6bedb386d52667fb31589c10fa95dbfe38f.webp?v=1756871408","width":2000},{"alt":null,"id":25988485283939,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec238a736ef4347153659261597510f950a9932a.webp?v=1756871408"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec238a736ef4347153659261597510f950a9932a.webp?v=1756871408","width":2000},{"alt":null,"id":25988485546083,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e5a174e3e2e3ca00f8e73bb6562690d06a4c84e.webp?v=1756871409"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e5a174e3e2e3ca00f8e73bb6562690d06a4c84e.webp?v=1756871409","width":2000},{"alt":null,"id":25988485873763,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7eb41f8197b5f35c839a46e9934d83c1830cfa4d.webp?v=1756871410"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7eb41f8197b5f35c839a46e9934d83c1830cfa4d.webp?v=1756871410","width":2000},{"alt":null,"id":25988486103139,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2b7c6b7e1cdc2ab9cdea9ecd0b09f3d8160f42e.webp?v=1756871411"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2b7c6b7e1cdc2ab9cdea9ecd0b09f3d8160f42e.webp?v=1756871411","width":2000},{"alt":null,"id":25988486234211,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54534834bcf47cfa2137c31f029331680511a0f8.webp?v=1756871411"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54534834bcf47cfa2137c31f029331680511a0f8.webp?v=1756871411","width":2000},{"alt":null,"id":25988486430819,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95acfdfaf8dcaa57c2b0bfe0d73d48b9c0334e7a.webp?v=1756871412"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95acfdfaf8dcaa57c2b0bfe0d73d48b9c0334e7a.webp?v=1756871412","width":2000},{"alt":null,"id":25988486627427,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4bc66c141db440364fef3aa31e05075016170a7.webp?v=1756871412"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4bc66c141db440364fef3aa31e05075016170a7.webp?v=1756871412","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43675211694179,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0122824-EB78","requires_shipping":true,"taxable":true,"featured_image":{"id":34416210509923,"product_id":7876059955299,"position":4,"created_at":"2025-09-03T11:50:06+08:00","updated_at":"2025-09-03T11:50:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec238a736ef4347153659261597510f950a9932a.webp?v=1756871408","variant_ids":[43675211694179]},"available":true,"name":"iPhone 13 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":"MPB0122824-EB78","featured_media":{"alt":null,"id":25988485283939,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec238a736ef4347153659261597510f950a9932a.webp?v=1756871408"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43675211858019,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01228J5-EB78","requires_shipping":true,"taxable":true,"featured_image":{"id":34416211656803,"product_id":7876059955299,"position":9,"created_at":"2025-09-03T11:50:10+08:00","updated_at":"2025-09-03T11:50:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95acfdfaf8dcaa57c2b0bfe0d73d48b9c0334e7a.webp?v=1756871412","variant_ids":[43675211858019]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) 奧樂雞 OLOGY 戀愛成就 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01228J5-EB78","featured_media":{"alt":null,"id":25988486430819,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95acfdfaf8dcaa57c2b0bfe0d73d48b9c0334e7a.webp?v=1756871412"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43675211923555,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0122804-EB78","requires_shipping":true,"taxable":true,"featured_image":{"id":34416211329123,"product_id":7876059955299,"position":7,"created_at":"2025-09-03T11:50:08+08:00","updated_at":"2025-09-03T11:50:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2b7c6b7e1cdc2ab9cdea9ecd0b09f3d8160f42e.webp?v=1756871411","variant_ids":[43675211923555]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) 奧樂雞 OLOGY 戀愛成就 - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122804-EB78","featured_media":{"alt":null,"id":25988486103139,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2b7c6b7e1cdc2ab9cdea9ecd0b09f3d8160f42e.webp?v=1756871411"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43675211694179,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0122824-EB78","requires_shipping":true,"taxable":true,"featured_image":{"id":34416210509923,"product_id":7876059955299,"position":4,"created_at":"2025-09-03T11:50:06+08:00","updated_at":"2025-09-03T11:50:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec238a736ef4347153659261597510f950a9932a.webp?v=1756871408","variant_ids":[43675211694179]},"available":true,"name":"iPhone 13 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":"MPB0122824-EB78","featured_media":{"alt":null,"id":25988485283939,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec238a736ef4347153659261597510f950a9932a.webp?v=1756871408"}},"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: "停產" }