$product = {"id":7876197154915,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) 奧樂雞 OLOGY 花路展開","handle":"iphone-14-plus-mod-nx-magsafe-printable-eb79","description":null,"published_at":"2025-09-04T09:02:15+08:00","created_at":"2025-09-03T12:27:11+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":43675810037859,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-EB79","requires_shipping":true,"taxable":true,"featured_image":{"id":34416780902499,"product_id":7876197154915,"position":6,"created_at":"2025-09-03T12:27:19+08:00","updated_at":"2025-09-03T12:27:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3a71729d99f1da428b47aae1a5626c14cfdb932.webp?v=1756873641","variant_ids":[43675810037859]},"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-EB79","featured_media":{"alt":null,"id":25989055709283,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3a71729d99f1da428b47aae1a5626c14cfdb932.webp?v=1756873641"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cd607f9c26b243c6b6c90e8c4cc82339cac0385.webp?v=1756873638","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cd3d4cd3ddd8282948b4150fbd53a99ff6befed.webp?v=1756873638","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccfb151d9ac17c6063204e47a22eeede003ddb42.webp?v=1756873639","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58a8574617a2e86d54f7957c8715d720d35f60b2.webp?v=1756873639","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62ad01e42e222496825a470523b6df51938beab5.webp?v=1756873640","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3a71729d99f1da428b47aae1a5626c14cfdb932.webp?v=1756873641","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6ecf01cd799975652dae81533bca359722f32a5.webp?v=1756873641","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c588df83f3ec3bdc9d9a585e9fa4b3cf9b8ae13.webp?v=1756873642","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe146bfb33a568cf06e9cfcfa526e806c37cf394.webp?v=1756873643","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ba2c810ea4d2a3d993141b71fe3f6dc03e74fe0.webp?v=1756873643","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/984755d213c874df538c651136ec051e11ff125e.webp?v=1756873644","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b7976bd57313b6a90e3cffb4efdaa413adbf3a4.webp?v=1756873645","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c88d88ade133d395a002457bb76532b7c54ba8db.webp?v=1756873646"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cd607f9c26b243c6b6c90e8c4cc82339cac0385.webp?v=1756873638","options":["color"],"media":[{"alt":null,"id":25989054529635,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cd607f9c26b243c6b6c90e8c4cc82339cac0385.webp?v=1756873638"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cd607f9c26b243c6b6c90e8c4cc82339cac0385.webp?v=1756873638","width":2000},{"alt":null,"id":25989054759011,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cd3d4cd3ddd8282948b4150fbd53a99ff6befed.webp?v=1756873638"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cd3d4cd3ddd8282948b4150fbd53a99ff6befed.webp?v=1756873638","width":2000},{"alt":null,"id":25989054955619,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccfb151d9ac17c6063204e47a22eeede003ddb42.webp?v=1756873639"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccfb151d9ac17c6063204e47a22eeede003ddb42.webp?v=1756873639","width":2000},{"alt":null,"id":25989055184995,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58a8574617a2e86d54f7957c8715d720d35f60b2.webp?v=1756873639"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58a8574617a2e86d54f7957c8715d720d35f60b2.webp?v=1756873639","width":2000},{"alt":null,"id":25989055479907,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62ad01e42e222496825a470523b6df51938beab5.webp?v=1756873640"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62ad01e42e222496825a470523b6df51938beab5.webp?v=1756873640","width":2000},{"alt":null,"id":25989055709283,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3a71729d99f1da428b47aae1a5626c14cfdb932.webp?v=1756873641"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3a71729d99f1da428b47aae1a5626c14cfdb932.webp?v=1756873641","width":2000},{"alt":null,"id":25989055873123,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6ecf01cd799975652dae81533bca359722f32a5.webp?v=1756873641"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6ecf01cd799975652dae81533bca359722f32a5.webp?v=1756873641","width":2000},{"alt":null,"id":25989056069731,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c588df83f3ec3bdc9d9a585e9fa4b3cf9b8ae13.webp?v=1756873642"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c588df83f3ec3bdc9d9a585e9fa4b3cf9b8ae13.webp?v=1756873642","width":2000},{"alt":null,"id":25989056266339,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe146bfb33a568cf06e9cfcfa526e806c37cf394.webp?v=1756873643"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe146bfb33a568cf06e9cfcfa526e806c37cf394.webp?v=1756873643","width":2000},{"alt":null,"id":25989056561251,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ba2c810ea4d2a3d993141b71fe3f6dc03e74fe0.webp?v=1756873643"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ba2c810ea4d2a3d993141b71fe3f6dc03e74fe0.webp?v=1756873643","width":2000},{"alt":null,"id":25989056921699,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/984755d213c874df538c651136ec051e11ff125e.webp?v=1756873644"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/984755d213c874df538c651136ec051e11ff125e.webp?v=1756873644","width":2000},{"alt":null,"id":25989057151075,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b7976bd57313b6a90e3cffb4efdaa413adbf3a4.webp?v=1756873645"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b7976bd57313b6a90e3cffb4efdaa413adbf3a4.webp?v=1756873645","width":2000},{"alt":null,"id":25989057380451,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c88d88ade133d395a002457bb76532b7c54ba8db.webp?v=1756873646"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c88d88ade133d395a002457bb76532b7c54ba8db.webp?v=1756873646","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43675810037859,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-EB79","requires_shipping":true,"taxable":true,"featured_image":{"id":34416780902499,"product_id":7876197154915,"position":6,"created_at":"2025-09-03T12:27:19+08:00","updated_at":"2025-09-03T12:27:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3a71729d99f1da428b47aae1a5626c14cfdb932.webp?v=1756873641","variant_ids":[43675810037859]},"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-EB79","featured_media":{"alt":null,"id":25989055709283,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3a71729d99f1da428b47aae1a5626c14cfdb932.webp?v=1756873641"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43675810037859,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-EB79","requires_shipping":true,"taxable":true,"featured_image":{"id":34416780902499,"product_id":7876197154915,"position":6,"created_at":"2025-09-03T12:27:19+08:00","updated_at":"2025-09-03T12:27:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3a71729d99f1da428b47aae1a5626c14cfdb932.webp?v=1756873641","variant_ids":[43675810037859]},"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-EB79","featured_media":{"alt":null,"id":25989055709283,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3a71729d99f1da428b47aae1a5626c14cfdb932.webp?v=1756873641"}},"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: "停產" }