$product = {"id":7876194992227,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) 奧樂雞 OLOGY 鳥事發生,洗洗睡先","handle":"iphone-14-plus-mod-nx-magsafe-printable-eb75","description":null,"published_at":"2025-09-04T09:03:18+08:00","created_at":"2025-09-03T12:26:30+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-byebyechuchu","device-iPhone 14 Plus","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":43675798732899,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-EB75","requires_shipping":true,"taxable":true,"featured_image":{"id":34416770056291,"product_id":7876194992227,"position":11,"created_at":"2025-09-03T12:26:42+08:00","updated_at":"2025-09-03T12:26:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88e96765c60ad77ce8b1b567add82cf21adfdc76.webp?v=1756873604","variant_ids":[43675798732899]},"available":true,"name":"iPhone 14 Plus 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":"MPB0126124-EB75","featured_media":{"alt":null,"id":25989044830307,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88e96765c60ad77ce8b1b567add82cf21adfdc76.webp?v=1756873604"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c9db170849605ed22b7853f20ef7eede1490974.webp?v=1756873596","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70f91a70e38641defe70e6c8044b8048e2ba9c6e.webp?v=1756873597","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f042c4d3e7823b9d29aeca7694eb7b18d72cab8e.webp?v=1756873597","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e27fa290c6449f741f29328f392bb20946640cbc.webp?v=1756873598","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e32399797ee2a76c4d698c5bf398492db6280dea.webp?v=1756873599","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1accefd8b9e73efc19279c1a0d62ecbbdf65cd9a.webp?v=1756873600","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54f4af82437b4d24393fd4ee02b8beedcad42a0d.webp?v=1756873600","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c33fa9f7aaf82566e79f2864e5ecb518ba1a4943.webp?v=1756873601","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93cd14272d86b5099dae8064c387edf4ec3afd82.webp?v=1756873602","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8faae163446251530615d66916899c8a2739bff8.webp?v=1756873603","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88e96765c60ad77ce8b1b567add82cf21adfdc76.webp?v=1756873604","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff16ca6b40e6e0c52e6f2b256938d0b215977535.webp?v=1756873604","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3bff90c5b9976a24cb82df1ce5f242091d568de.webp?v=1756873606"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c9db170849605ed22b7853f20ef7eede1490974.webp?v=1756873596","options":["color"],"media":[{"alt":null,"id":25989042929763,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c9db170849605ed22b7853f20ef7eede1490974.webp?v=1756873596"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c9db170849605ed22b7853f20ef7eede1490974.webp?v=1756873596","width":2000},{"alt":null,"id":25989043224675,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70f91a70e38641defe70e6c8044b8048e2ba9c6e.webp?v=1756873597"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70f91a70e38641defe70e6c8044b8048e2ba9c6e.webp?v=1756873597","width":2000},{"alt":null,"id":25989043421283,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f042c4d3e7823b9d29aeca7694eb7b18d72cab8e.webp?v=1756873597"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f042c4d3e7823b9d29aeca7694eb7b18d72cab8e.webp?v=1756873597","width":2000},{"alt":null,"id":25989043617891,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e27fa290c6449f741f29328f392bb20946640cbc.webp?v=1756873598"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e27fa290c6449f741f29328f392bb20946640cbc.webp?v=1756873598","width":2000},{"alt":null,"id":25989043748963,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e32399797ee2a76c4d698c5bf398492db6280dea.webp?v=1756873599"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e32399797ee2a76c4d698c5bf398492db6280dea.webp?v=1756873599","width":2000},{"alt":null,"id":25989043912803,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1accefd8b9e73efc19279c1a0d62ecbbdf65cd9a.webp?v=1756873600"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1accefd8b9e73efc19279c1a0d62ecbbdf65cd9a.webp?v=1756873600","width":2000},{"alt":null,"id":25989044109411,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54f4af82437b4d24393fd4ee02b8beedcad42a0d.webp?v=1756873600"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54f4af82437b4d24393fd4ee02b8beedcad42a0d.webp?v=1756873600","width":2000},{"alt":null,"id":25989044338787,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c33fa9f7aaf82566e79f2864e5ecb518ba1a4943.webp?v=1756873601"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c33fa9f7aaf82566e79f2864e5ecb518ba1a4943.webp?v=1756873601","width":2000},{"alt":null,"id":25989044535395,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93cd14272d86b5099dae8064c387edf4ec3afd82.webp?v=1756873602"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93cd14272d86b5099dae8064c387edf4ec3afd82.webp?v=1756873602","width":2000},{"alt":null,"id":25989044633699,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8faae163446251530615d66916899c8a2739bff8.webp?v=1756873603"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8faae163446251530615d66916899c8a2739bff8.webp?v=1756873603","width":2000},{"alt":null,"id":25989044830307,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88e96765c60ad77ce8b1b567add82cf21adfdc76.webp?v=1756873604"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88e96765c60ad77ce8b1b567add82cf21adfdc76.webp?v=1756873604","width":2000},{"alt":null,"id":25989045092451,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff16ca6b40e6e0c52e6f2b256938d0b215977535.webp?v=1756873604"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff16ca6b40e6e0c52e6f2b256938d0b215977535.webp?v=1756873604","width":2000},{"alt":null,"id":25989045256291,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3bff90c5b9976a24cb82df1ce5f242091d568de.webp?v=1756873606"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3bff90c5b9976a24cb82df1ce5f242091d568de.webp?v=1756873606","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43675798732899,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-EB75","requires_shipping":true,"taxable":true,"featured_image":{"id":34416770056291,"product_id":7876194992227,"position":11,"created_at":"2025-09-03T12:26:42+08:00","updated_at":"2025-09-03T12:26:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88e96765c60ad77ce8b1b567add82cf21adfdc76.webp?v=1756873604","variant_ids":[43675798732899]},"available":true,"name":"iPhone 14 Plus 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":"MPB0126124-EB75","featured_media":{"alt":null,"id":25989044830307,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88e96765c60ad77ce8b1b567add82cf21adfdc76.webp?v=1756873604"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43675798732899,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-EB75","requires_shipping":true,"taxable":true,"featured_image":{"id":34416770056291,"product_id":7876194992227,"position":11,"created_at":"2025-09-03T12:26:42+08:00","updated_at":"2025-09-03T12:26:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88e96765c60ad77ce8b1b567add82cf21adfdc76.webp?v=1756873604","variant_ids":[43675798732899]},"available":true,"name":"iPhone 14 Plus 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":"MPB0126124-EB75","featured_media":{"alt":null,"id":25989044830307,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88e96765c60ad77ce8b1b567add82cf21adfdc76.webp?v=1756873604"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null var sellingStatus if ($bumper) { $(document).ready(function() { var productImg = $product.images[0] var bumperVariants = $bumper.variants; var bumperColors = new Object(); var currentVariant = ''; var productType = ''; bumperVariants.forEach(variant => { bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src; }); if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') { mergeImages( [productImg, bumperColors[currentVariant]], { crossOrigin: 'anonymous' } ).then(mergedImg => { $('.merged-img').attr('src', mergedImg); }); } else { mergeImages( [bumperColors[currentVariant], productImg], { crossOrigin: 'anonymous' } ).then(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: "停產" }