$product = {"id":7876036034659,"title":"iPhone 14 Plus Mod NX 奧樂雞 OLOGY 金手入魂","handle":"iphone-14-plus-mod-nx-printable-eb77","description":null,"published_at":"2025-09-04T10:19:37+08:00","created_at":"2025-09-03T11:43:42+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":43675073282147,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-EB77","requires_shipping":true,"taxable":true,"featured_image":{"id":34416117940323,"product_id":7876036034659,"position":8,"created_at":"2025-09-03T11:43:53+08:00","updated_at":"2025-09-03T11:43:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bd55c47ea63c100309c15388724e1f96baef81d.webp?v=1756871035","variant_ids":[43675073282147]},"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-EB77","featured_media":{"alt":null,"id":25988392779875,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bd55c47ea63c100309c15388724e1f96baef81d.webp?v=1756871035"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c21d7ee2d52018f408868006daa7c87fcb74e427.webp?v=1756871028","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99875b973ce6f07d6dbc304847e24967adb4ce5c.webp?v=1756871029","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ced62f63da0df0d442b04171a60cb63cf2e6b29e.webp?v=1756871030","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7f46c6a32924715e5bb3b8c0f766644ec54cb4c.webp?v=1756871031","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63c60cfe35a082943b8519267584ae22040599d6.webp?v=1756871033","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e0cd48840c99c0636d365d664dcab8af4ce47b6.webp?v=1756871034","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a2566db6d8d1d61f1b353418492e18bfad7562d.webp?v=1756871034","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bd55c47ea63c100309c15388724e1f96baef81d.webp?v=1756871035","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db5c841e0c1ef66ee19df9cba09c3e6cfd36a01d.webp?v=1756871036","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f647ac5b622410e6ade11cf37a68a6a23f75a3e5.webp?v=1756871037","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06b4f861588b019e92447cefd7a02fe883f63bbb.webp?v=1756871038","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df2abbe5d6e28b6b96b18c74d3db506ec00aa9a4.webp?v=1756871039","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a8237429bb2cd95266d6cb884574bcc673bf106.webp?v=1756871039"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c21d7ee2d52018f408868006daa7c87fcb74e427.webp?v=1756871028","options":["color"],"media":[{"alt":null,"id":25988390617187,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c21d7ee2d52018f408868006daa7c87fcb74e427.webp?v=1756871028"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c21d7ee2d52018f408868006daa7c87fcb74e427.webp?v=1756871028","width":2000},{"alt":null,"id":25988390912099,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99875b973ce6f07d6dbc304847e24967adb4ce5c.webp?v=1756871029"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99875b973ce6f07d6dbc304847e24967adb4ce5c.webp?v=1756871029","width":2000},{"alt":null,"id":25988391272547,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ced62f63da0df0d442b04171a60cb63cf2e6b29e.webp?v=1756871030"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ced62f63da0df0d442b04171a60cb63cf2e6b29e.webp?v=1756871030","width":2000},{"alt":null,"id":25988391534691,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7f46c6a32924715e5bb3b8c0f766644ec54cb4c.webp?v=1756871031"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7f46c6a32924715e5bb3b8c0f766644ec54cb4c.webp?v=1756871031","width":2000},{"alt":null,"id":25988392091747,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63c60cfe35a082943b8519267584ae22040599d6.webp?v=1756871033"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63c60cfe35a082943b8519267584ae22040599d6.webp?v=1756871033","width":2000},{"alt":null,"id":25988392255587,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e0cd48840c99c0636d365d664dcab8af4ce47b6.webp?v=1756871034"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e0cd48840c99c0636d365d664dcab8af4ce47b6.webp?v=1756871034","width":2000},{"alt":null,"id":25988392517731,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a2566db6d8d1d61f1b353418492e18bfad7562d.webp?v=1756871034"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a2566db6d8d1d61f1b353418492e18bfad7562d.webp?v=1756871034","width":2000},{"alt":null,"id":25988392779875,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bd55c47ea63c100309c15388724e1f96baef81d.webp?v=1756871035"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bd55c47ea63c100309c15388724e1f96baef81d.webp?v=1756871035","width":2000},{"alt":null,"id":25988393042019,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db5c841e0c1ef66ee19df9cba09c3e6cfd36a01d.webp?v=1756871036"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db5c841e0c1ef66ee19df9cba09c3e6cfd36a01d.webp?v=1756871036","width":2000},{"alt":null,"id":25988393304163,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f647ac5b622410e6ade11cf37a68a6a23f75a3e5.webp?v=1756871037"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f647ac5b622410e6ade11cf37a68a6a23f75a3e5.webp?v=1756871037","width":2000},{"alt":null,"id":25988393500771,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06b4f861588b019e92447cefd7a02fe883f63bbb.webp?v=1756871038"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06b4f861588b019e92447cefd7a02fe883f63bbb.webp?v=1756871038","width":2000},{"alt":null,"id":25988393631843,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df2abbe5d6e28b6b96b18c74d3db506ec00aa9a4.webp?v=1756871039"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df2abbe5d6e28b6b96b18c74d3db506ec00aa9a4.webp?v=1756871039","width":2000},{"alt":null,"id":25988393828451,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a8237429bb2cd95266d6cb884574bcc673bf106.webp?v=1756871039"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a8237429bb2cd95266d6cb884574bcc673bf106.webp?v=1756871039","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43675073282147,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-EB77","requires_shipping":true,"taxable":true,"featured_image":{"id":34416117940323,"product_id":7876036034659,"position":8,"created_at":"2025-09-03T11:43:53+08:00","updated_at":"2025-09-03T11:43:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bd55c47ea63c100309c15388724e1f96baef81d.webp?v=1756871035","variant_ids":[43675073282147]},"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-EB77","featured_media":{"alt":null,"id":25988392779875,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bd55c47ea63c100309c15388724e1f96baef81d.webp?v=1756871035"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43675073282147,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-EB77","requires_shipping":true,"taxable":true,"featured_image":{"id":34416117940323,"product_id":7876036034659,"position":8,"created_at":"2025-09-03T11:43:53+08:00","updated_at":"2025-09-03T11:43:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bd55c47ea63c100309c15388724e1f96baef81d.webp?v=1756871035","variant_ids":[43675073282147]},"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-EB77","featured_media":{"alt":null,"id":25988392779875,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bd55c47ea63c100309c15388724e1f96baef81d.webp?v=1756871035"}},"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: "停產" }