$product = {"id":7921132109923,"title":"iPhone 14 Plus Mod NX Incrediville 怪奇事物所 台式夜遊者","handle":"iphone-14-plus-mod-nx-hd73","description":null,"published_at":"2025-11-13T09:49:23+08:00","created_at":"2025-11-11T09:43:38+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-incrediville","device-iPhone 14 Plus","merge","reseller-incrediville"],"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":43830889807971,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-HD73","requires_shipping":true,"taxable":true,"featured_image":{"id":34786123415651,"product_id":7921132109923,"position":8,"created_at":"2025-11-11T09:43:46+08:00","updated_at":"2025-11-11T09:43:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e71b126932f10cca45598a35fd687e2efbe6c8b.webp?v=1762825428","variant_ids":[43830889807971]},"available":true,"name":"iPhone 14 Plus Mod NX Incrediville 怪奇事物所 台式夜遊者 - 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-HD73","featured_media":{"alt":null,"id":26351580479587,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e71b126932f10cca45598a35fd687e2efbe6c8b.webp?v=1762825428"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de16b1ce3f00054ecde83dff98e2314015a821db.webp?v=1762825424","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09e6d5df9eb4e4d162c072c0a3b0aab17071ff0b.webp?v=1762825425","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c65b6bac7674dfbd8517bc235d770feeb3dd4895.webp?v=1762825425","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/072a7ea88ddab8ac320cbba188f13c6471e5e84e.webp?v=1762825426","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfc165f6a4c4a303c50260be23aaff557bf4d93f.webp?v=1762825426","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbef1fe9ea584cbcc003ea24ec6f72c7a190b954.webp?v=1762825427","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2278d713b596696db054b9bdcec78e8893f79c9.webp?v=1762825428","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e71b126932f10cca45598a35fd687e2efbe6c8b.webp?v=1762825428","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e1541b6749be0b01063627ae6d26c6269184f1d.webp?v=1762825429","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82660bbac123b9f62d6d08b5a663d1f75935aece.webp?v=1762825430","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/515d2cf07d6c379c1ba4e5bef9cde83380ac4266.webp?v=1762825430","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c69032bdd0c912ae54b0ac7ac4e4ae5d69f5f59c.webp?v=1762825431","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/555eae97060be2435e5619ccc9f6ed60ca55fc4b.webp?v=1762825432"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de16b1ce3f00054ecde83dff98e2314015a821db.webp?v=1762825424","options":["color"],"media":[{"alt":null,"id":26351578447971,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de16b1ce3f00054ecde83dff98e2314015a821db.webp?v=1762825424"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de16b1ce3f00054ecde83dff98e2314015a821db.webp?v=1762825424","width":2000},{"alt":null,"id":26351578775651,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09e6d5df9eb4e4d162c072c0a3b0aab17071ff0b.webp?v=1762825425"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09e6d5df9eb4e4d162c072c0a3b0aab17071ff0b.webp?v=1762825425","width":2000},{"alt":null,"id":26351579136099,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c65b6bac7674dfbd8517bc235d770feeb3dd4895.webp?v=1762825425"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c65b6bac7674dfbd8517bc235d770feeb3dd4895.webp?v=1762825425","width":2000},{"alt":null,"id":26351579463779,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/072a7ea88ddab8ac320cbba188f13c6471e5e84e.webp?v=1762825426"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/072a7ea88ddab8ac320cbba188f13c6471e5e84e.webp?v=1762825426","width":2000},{"alt":null,"id":26351579660387,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfc165f6a4c4a303c50260be23aaff557bf4d93f.webp?v=1762825426"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfc165f6a4c4a303c50260be23aaff557bf4d93f.webp?v=1762825426","width":2000},{"alt":null,"id":26351579889763,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbef1fe9ea584cbcc003ea24ec6f72c7a190b954.webp?v=1762825427"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbef1fe9ea584cbcc003ea24ec6f72c7a190b954.webp?v=1762825427","width":2000},{"alt":null,"id":26351580119139,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2278d713b596696db054b9bdcec78e8893f79c9.webp?v=1762825428"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2278d713b596696db054b9bdcec78e8893f79c9.webp?v=1762825428","width":2000},{"alt":null,"id":26351580479587,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e71b126932f10cca45598a35fd687e2efbe6c8b.webp?v=1762825428"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e71b126932f10cca45598a35fd687e2efbe6c8b.webp?v=1762825428","width":2000},{"alt":null,"id":26351580905571,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e1541b6749be0b01063627ae6d26c6269184f1d.webp?v=1762825429"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e1541b6749be0b01063627ae6d26c6269184f1d.webp?v=1762825429","width":2000},{"alt":null,"id":26351581167715,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82660bbac123b9f62d6d08b5a663d1f75935aece.webp?v=1762825430"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82660bbac123b9f62d6d08b5a663d1f75935aece.webp?v=1762825430","width":2000},{"alt":null,"id":26351581397091,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/515d2cf07d6c379c1ba4e5bef9cde83380ac4266.webp?v=1762825430"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/515d2cf07d6c379c1ba4e5bef9cde83380ac4266.webp?v=1762825430","width":2000},{"alt":null,"id":26351581659235,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c69032bdd0c912ae54b0ac7ac4e4ae5d69f5f59c.webp?v=1762825431"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c69032bdd0c912ae54b0ac7ac4e4ae5d69f5f59c.webp?v=1762825431","width":2000},{"alt":null,"id":26351581823075,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/555eae97060be2435e5619ccc9f6ed60ca55fc4b.webp?v=1762825432"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/555eae97060be2435e5619ccc9f6ed60ca55fc4b.webp?v=1762825432","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43830889807971,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-HD73","requires_shipping":true,"taxable":true,"featured_image":{"id":34786123415651,"product_id":7921132109923,"position":8,"created_at":"2025-11-11T09:43:46+08:00","updated_at":"2025-11-11T09:43:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e71b126932f10cca45598a35fd687e2efbe6c8b.webp?v=1762825428","variant_ids":[43830889807971]},"available":true,"name":"iPhone 14 Plus Mod NX Incrediville 怪奇事物所 台式夜遊者 - 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-HD73","featured_media":{"alt":null,"id":26351580479587,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e71b126932f10cca45598a35fd687e2efbe6c8b.webp?v=1762825428"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43830889807971,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-HD73","requires_shipping":true,"taxable":true,"featured_image":{"id":34786123415651,"product_id":7921132109923,"position":8,"created_at":"2025-11-11T09:43:46+08:00","updated_at":"2025-11-11T09:43:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e71b126932f10cca45598a35fd687e2efbe6c8b.webp?v=1762825428","variant_ids":[43830889807971]},"available":true,"name":"iPhone 14 Plus Mod NX Incrediville 怪奇事物所 台式夜遊者 - 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-HD73","featured_media":{"alt":null,"id":26351580479587,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e71b126932f10cca45598a35fd687e2efbe6c8b.webp?v=1762825428"}},"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: "停產" }