$product = {"id":7876149805155,"title":"iPhone 14 Plus Mod NX 奧樂雞 OLOGY 花路展開","handle":"iphone-14-plus-mod-nx-printable-eb79","description":null,"published_at":"2025-09-04T09:25:51+08:00","created_at":"2025-09-03T12:14:22+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":90000,"price_min":90000,"price_max":90000,"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":43675628306531,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-EB79","requires_shipping":true,"taxable":true,"featured_image":{"id":34416585179235,"product_id":7876149805155,"position":3,"created_at":"2025-09-03T12:14:28+08:00","updated_at":"2025-09-03T12:14:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41fe0ef8d5dfe1b6560cbfa6d63351354a62b5fc.webp?v=1756872870","variant_ids":[43675628306531]},"available":true,"name":"iPhone 14 Plus Mod NX 奧樂雞 OLOGY 花路展開 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-EB79","featured_media":{"alt":null,"id":25988859625571,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41fe0ef8d5dfe1b6560cbfa6d63351354a62b5fc.webp?v=1756872870"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2502d1295a8cc4b75650cfe072db98d2eb1b10cf.webp?v=1756872869","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a781bdbd13a82a8ceae9996298a18aca9ee64803.webp?v=1756872869","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41fe0ef8d5dfe1b6560cbfa6d63351354a62b5fc.webp?v=1756872870","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1108f725daddf7c5beba2d528721f04e8f11a9b9.webp?v=1756872871","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3c3608caff1bab628768a4cbd5b6640a2983ce7.webp?v=1756872872","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/269ac3bfa789bd39eedf9fa2e11660ed4962068f.webp?v=1756872872","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8eeb4753fd51231d95207e53c65e006e00fce48.webp?v=1756872873","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83d029f5f1ce249dfe275dc7b91e5978d3b90cf4.webp?v=1756872874","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9aa848fe75ad9d662b7a76d19aaa69cf6069cd7c.webp?v=1756872875","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e123e2cbf84a0de13e9bf1b82076c3d2115489c4.webp?v=1756872876","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7783e058abeddaa4a0511df114e12cb77a64e192.webp?v=1756872877","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28c6c9d189aabd424c4497dbef6a46d3419fd883.webp?v=1756872878","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7cef5fca4b498518f79721b10fda521d866c258f.webp?v=1756872878"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2502d1295a8cc4b75650cfe072db98d2eb1b10cf.webp?v=1756872869","options":["color"],"media":[{"alt":null,"id":25988859396195,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2502d1295a8cc4b75650cfe072db98d2eb1b10cf.webp?v=1756872869"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2502d1295a8cc4b75650cfe072db98d2eb1b10cf.webp?v=1756872869","width":2000},{"alt":null,"id":25988859560035,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a781bdbd13a82a8ceae9996298a18aca9ee64803.webp?v=1756872869"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a781bdbd13a82a8ceae9996298a18aca9ee64803.webp?v=1756872869","width":2000},{"alt":null,"id":25988859625571,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41fe0ef8d5dfe1b6560cbfa6d63351354a62b5fc.webp?v=1756872870"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41fe0ef8d5dfe1b6560cbfa6d63351354a62b5fc.webp?v=1756872870","width":2000},{"alt":null,"id":25988859723875,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1108f725daddf7c5beba2d528721f04e8f11a9b9.webp?v=1756872871"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1108f725daddf7c5beba2d528721f04e8f11a9b9.webp?v=1756872871","width":2000},{"alt":null,"id":25988859789411,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3c3608caff1bab628768a4cbd5b6640a2983ce7.webp?v=1756872872"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3c3608caff1bab628768a4cbd5b6640a2983ce7.webp?v=1756872872","width":2000},{"alt":null,"id":25988859887715,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/269ac3bfa789bd39eedf9fa2e11660ed4962068f.webp?v=1756872872"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/269ac3bfa789bd39eedf9fa2e11660ed4962068f.webp?v=1756872872","width":2000},{"alt":null,"id":25988860084323,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8eeb4753fd51231d95207e53c65e006e00fce48.webp?v=1756872873"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8eeb4753fd51231d95207e53c65e006e00fce48.webp?v=1756872873","width":2000},{"alt":null,"id":25988860346467,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83d029f5f1ce249dfe275dc7b91e5978d3b90cf4.webp?v=1756872874"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83d029f5f1ce249dfe275dc7b91e5978d3b90cf4.webp?v=1756872874","width":2000},{"alt":null,"id":25988860510307,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9aa848fe75ad9d662b7a76d19aaa69cf6069cd7c.webp?v=1756872875"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9aa848fe75ad9d662b7a76d19aaa69cf6069cd7c.webp?v=1756872875","width":2000},{"alt":null,"id":25988860706915,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e123e2cbf84a0de13e9bf1b82076c3d2115489c4.webp?v=1756872876"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e123e2cbf84a0de13e9bf1b82076c3d2115489c4.webp?v=1756872876","width":2000},{"alt":null,"id":25988860903523,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7783e058abeddaa4a0511df114e12cb77a64e192.webp?v=1756872877"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7783e058abeddaa4a0511df114e12cb77a64e192.webp?v=1756872877","width":2000},{"alt":null,"id":25988861132899,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28c6c9d189aabd424c4497dbef6a46d3419fd883.webp?v=1756872878"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28c6c9d189aabd424c4497dbef6a46d3419fd883.webp?v=1756872878","width":2000},{"alt":null,"id":25988861329507,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7cef5fca4b498518f79721b10fda521d866c258f.webp?v=1756872878"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7cef5fca4b498518f79721b10fda521d866c258f.webp?v=1756872878","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43675628306531,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-EB79","requires_shipping":true,"taxable":true,"featured_image":{"id":34416585179235,"product_id":7876149805155,"position":3,"created_at":"2025-09-03T12:14:28+08:00","updated_at":"2025-09-03T12:14:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41fe0ef8d5dfe1b6560cbfa6d63351354a62b5fc.webp?v=1756872870","variant_ids":[43675628306531]},"available":true,"name":"iPhone 14 Plus Mod NX 奧樂雞 OLOGY 花路展開 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-EB79","featured_media":{"alt":null,"id":25988859625571,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41fe0ef8d5dfe1b6560cbfa6d63351354a62b5fc.webp?v=1756872870"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43675628306531,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-EB79","requires_shipping":true,"taxable":true,"featured_image":{"id":34416585179235,"product_id":7876149805155,"position":3,"created_at":"2025-09-03T12:14:28+08:00","updated_at":"2025-09-03T12:14:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41fe0ef8d5dfe1b6560cbfa6d63351354a62b5fc.webp?v=1756872870","variant_ids":[43675628306531]},"available":true,"name":"iPhone 14 Plus Mod NX 奧樂雞 OLOGY 花路展開 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-EB79","featured_media":{"alt":null,"id":25988859625571,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41fe0ef8d5dfe1b6560cbfa6d63351354a62b5fc.webp?v=1756872870"}},"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: "停產" }