$product = {"id":7919943647331,"title":"iPhone 14 Pro Mod NX (MagSafe 兼容) Incrediville 怪奇事物所 阿媽家的吻","handle":"iphone-14-pro-mod-nx-magsafe-hd74","description":null,"published_at":"2025-11-13T10:08:11+08:00","created_at":"2025-11-10T09:48:34+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-incrediville","device-iPhone 14 Pro","merge","reseller-incrediville"],"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":43834597408867,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-HD74","requires_shipping":true,"taxable":true,"featured_image":{"id":34793951264867,"product_id":7919943647331,"position":11,"created_at":"2025-11-13T09:29:23+08:00","updated_at":"2025-11-13T09:29:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56f85451f9e14d34cb09b09630758a60e5493d5e.webp?v=1762997365","variant_ids":[43834597408867]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) Incrediville 怪奇事物所 阿媽家的吻 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-HD74","featured_media":{"alt":null,"id":26359371595875,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56f85451f9e14d34cb09b09630758a60e5493d5e.webp?v=1762997365"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43834597572707,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-HD74","requires_shipping":true,"taxable":true,"featured_image":{"id":34793950183523,"product_id":7919943647331,"position":6,"created_at":"2025-11-13T09:29:19+08:00","updated_at":"2025-11-13T09:29:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7150c30e953973f5cb1febb6f58fad1f2efefdc4.webp?v=1762997361","variant_ids":[43834597572707]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) Incrediville 怪奇事物所 阿媽家的吻 - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-HD74","featured_media":{"alt":null,"id":26359370514531,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7150c30e953973f5cb1febb6f58fad1f2efefdc4.webp?v=1762997361"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43834597638243,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-HD74","requires_shipping":true,"taxable":true,"featured_image":{"id":34793949888611,"product_id":7919943647331,"position":5,"created_at":"2025-11-13T09:29:18+08:00","updated_at":"2025-11-13T09:29:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47f87747dac82b52ab9851a05bd2a747b1bb03ef.webp?v=1762997360","variant_ids":[43834597638243]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) Incrediville 怪奇事物所 阿媽家的吻 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01262J5-HD74","featured_media":{"alt":null,"id":26359370186851,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47f87747dac82b52ab9851a05bd2a747b1bb03ef.webp?v=1762997360"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38d654a1fe9116c22f4de7a37df30c3893349057.webp?v=1762997357","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8556a279ef0c2e7c0d0494d0368552d76c9e4ad.webp?v=1762997358","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7db9a177453a08803bb1de435cc4318dbb998d91.webp?v=1762997359","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43e831f5f1a09815e471c7cd99f3ee50ed9517d5.webp?v=1762997359","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47f87747dac82b52ab9851a05bd2a747b1bb03ef.webp?v=1762997360","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7150c30e953973f5cb1febb6f58fad1f2efefdc4.webp?v=1762997361","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c420c50f662cb0359e6b7efc780bc507a5517b61.webp?v=1762997362","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c9ccb9ca405c8900e14b23acf8b3c6cfd40a5a3.webp?v=1762997363","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd634ab40df6485067e064011b7d9985fae7e6a0.webp?v=1762997363","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b1b349b52f80ced4cdd1b93e777018990c636cb.webp?v=1762997364","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56f85451f9e14d34cb09b09630758a60e5493d5e.webp?v=1762997365","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22dd359708696942e1a3a6807c8c9d1fc61ab149.webp?v=1762997366"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38d654a1fe9116c22f4de7a37df30c3893349057.webp?v=1762997357","options":["color"],"media":[{"alt":null,"id":26359369269347,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38d654a1fe9116c22f4de7a37df30c3893349057.webp?v=1762997357"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38d654a1fe9116c22f4de7a37df30c3893349057.webp?v=1762997357","width":2000},{"alt":null,"id":26359369597027,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8556a279ef0c2e7c0d0494d0368552d76c9e4ad.webp?v=1762997358"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8556a279ef0c2e7c0d0494d0368552d76c9e4ad.webp?v=1762997358","width":2000},{"alt":null,"id":26359369826403,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7db9a177453a08803bb1de435cc4318dbb998d91.webp?v=1762997359"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7db9a177453a08803bb1de435cc4318dbb998d91.webp?v=1762997359","width":2000},{"alt":null,"id":26359370023011,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43e831f5f1a09815e471c7cd99f3ee50ed9517d5.webp?v=1762997359"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43e831f5f1a09815e471c7cd99f3ee50ed9517d5.webp?v=1762997359","width":2000},{"alt":null,"id":26359370186851,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47f87747dac82b52ab9851a05bd2a747b1bb03ef.webp?v=1762997360"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47f87747dac82b52ab9851a05bd2a747b1bb03ef.webp?v=1762997360","width":2000},{"alt":null,"id":26359370514531,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7150c30e953973f5cb1febb6f58fad1f2efefdc4.webp?v=1762997361"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7150c30e953973f5cb1febb6f58fad1f2efefdc4.webp?v=1762997361","width":2000},{"alt":null,"id":26359370940515,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c420c50f662cb0359e6b7efc780bc507a5517b61.webp?v=1762997362"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c420c50f662cb0359e6b7efc780bc507a5517b61.webp?v=1762997362","width":2000},{"alt":null,"id":26359371104355,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c9ccb9ca405c8900e14b23acf8b3c6cfd40a5a3.webp?v=1762997363"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c9ccb9ca405c8900e14b23acf8b3c6cfd40a5a3.webp?v=1762997363","width":2000},{"alt":null,"id":26359371268195,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd634ab40df6485067e064011b7d9985fae7e6a0.webp?v=1762997363"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd634ab40df6485067e064011b7d9985fae7e6a0.webp?v=1762997363","width":2000},{"alt":null,"id":26359371432035,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b1b349b52f80ced4cdd1b93e777018990c636cb.webp?v=1762997364"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b1b349b52f80ced4cdd1b93e777018990c636cb.webp?v=1762997364","width":2000},{"alt":null,"id":26359371595875,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56f85451f9e14d34cb09b09630758a60e5493d5e.webp?v=1762997365"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56f85451f9e14d34cb09b09630758a60e5493d5e.webp?v=1762997365","width":2000},{"alt":null,"id":26359371694179,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22dd359708696942e1a3a6807c8c9d1fc61ab149.webp?v=1762997366"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22dd359708696942e1a3a6807c8c9d1fc61ab149.webp?v=1762997366","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43834597408867,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-HD74","requires_shipping":true,"taxable":true,"featured_image":{"id":34793951264867,"product_id":7919943647331,"position":11,"created_at":"2025-11-13T09:29:23+08:00","updated_at":"2025-11-13T09:29:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56f85451f9e14d34cb09b09630758a60e5493d5e.webp?v=1762997365","variant_ids":[43834597408867]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) Incrediville 怪奇事物所 阿媽家的吻 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-HD74","featured_media":{"alt":null,"id":26359371595875,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56f85451f9e14d34cb09b09630758a60e5493d5e.webp?v=1762997365"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43834597572707,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-HD74","requires_shipping":true,"taxable":true,"featured_image":{"id":34793950183523,"product_id":7919943647331,"position":6,"created_at":"2025-11-13T09:29:19+08:00","updated_at":"2025-11-13T09:29:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7150c30e953973f5cb1febb6f58fad1f2efefdc4.webp?v=1762997361","variant_ids":[43834597572707]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) Incrediville 怪奇事物所 阿媽家的吻 - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-HD74","featured_media":{"alt":null,"id":26359370514531,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7150c30e953973f5cb1febb6f58fad1f2efefdc4.webp?v=1762997361"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43834597638243,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-HD74","requires_shipping":true,"taxable":true,"featured_image":{"id":34793949888611,"product_id":7919943647331,"position":5,"created_at":"2025-11-13T09:29:18+08:00","updated_at":"2025-11-13T09:29:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47f87747dac82b52ab9851a05bd2a747b1bb03ef.webp?v=1762997360","variant_ids":[43834597638243]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) Incrediville 怪奇事物所 阿媽家的吻 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01262J5-HD74","featured_media":{"alt":null,"id":26359370186851,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47f87747dac82b52ab9851a05bd2a747b1bb03ef.webp?v=1762997360"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43834597408867,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-HD74","requires_shipping":true,"taxable":true,"featured_image":{"id":34793951264867,"product_id":7919943647331,"position":11,"created_at":"2025-11-13T09:29:23+08:00","updated_at":"2025-11-13T09:29:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56f85451f9e14d34cb09b09630758a60e5493d5e.webp?v=1762997365","variant_ids":[43834597408867]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) Incrediville 怪奇事物所 阿媽家的吻 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-HD74","featured_media":{"alt":null,"id":26359371595875,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56f85451f9e14d34cb09b09630758a60e5493d5e.webp?v=1762997365"}},"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: "停產" }