$product = {"id":7921142792291,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) Incrediville 怪奇事物所 所長的酒池肉林","handle":"iphone-14-plus-mod-nx-magsafe-hd70","description":null,"published_at":"2025-11-13T09:47:58+08:00","created_at":"2025-11-11T09:48:28+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":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":43830933782627,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-HD70","requires_shipping":true,"taxable":true,"featured_image":{"id":34786229321827,"product_id":7921142792291,"position":10,"created_at":"2025-11-11T09:48:38+08:00","updated_at":"2025-11-11T09:48:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b25f63aecee5031ee47f4a294cfb4f14a597b7f.webp?v=1762825720","variant_ids":[43830933782627]},"available":true,"name":"iPhone 14 Plus 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":"MPB0126124-HD70","featured_media":{"alt":null,"id":26351686320227,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b25f63aecee5031ee47f4a294cfb4f14a597b7f.webp?v=1762825720"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f79e1a9155522fd5831f417a965c620ecccee1c9.webp?v=1762825714","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f5bd7a6d056a234322b781a138fc179c4b3ee41.webp?v=1762825716","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cefc5b59f71e2f9a958ecb829bfb5b4559ba96d1.webp?v=1762825716","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b63fd3e23fdc938a8c2684cef66a085b27daa6a.webp?v=1762825716","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2386e9a0cc6bad0906176e1a97e76e26bab1412.webp?v=1762825718","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8ed4469dafc69003cc95f138e1e01aa077ebfd4.webp?v=1762825717","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fe6b8d92233214aee39f9697a8c7a5d930f9ad3.webp?v=1762825718","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92dd76daeab17450100ff4f7d1f6751b6df115a4.webp?v=1762825719","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1d58273de91a4951741b2241d2eca11e822875a.webp?v=1762825719","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b25f63aecee5031ee47f4a294cfb4f14a597b7f.webp?v=1762825720","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae12a0eeee209552a05db924e7fcfa23f8d22e2e.webp?v=1762825721","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f75abe5d39712d8bcfaeb2e72faf5995a6502bb.webp?v=1762825722","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee10264c8d00bebc3c806a47443fac02f672ab0c.webp?v=1762825722"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f79e1a9155522fd5831f417a965c620ecccee1c9.webp?v=1762825714","options":["color"],"media":[{"alt":null,"id":26351684354147,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f79e1a9155522fd5831f417a965c620ecccee1c9.webp?v=1762825714"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f79e1a9155522fd5831f417a965c620ecccee1c9.webp?v=1762825714","width":2000},{"alt":null,"id":26351684681827,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f5bd7a6d056a234322b781a138fc179c4b3ee41.webp?v=1762825716"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f5bd7a6d056a234322b781a138fc179c4b3ee41.webp?v=1762825716","width":2000},{"alt":null,"id":26351684845667,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cefc5b59f71e2f9a958ecb829bfb5b4559ba96d1.webp?v=1762825716"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cefc5b59f71e2f9a958ecb829bfb5b4559ba96d1.webp?v=1762825716","width":2000},{"alt":null,"id":26351685173347,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b63fd3e23fdc938a8c2684cef66a085b27daa6a.webp?v=1762825716"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b63fd3e23fdc938a8c2684cef66a085b27daa6a.webp?v=1762825716","width":2000},{"alt":null,"id":26351685369955,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2386e9a0cc6bad0906176e1a97e76e26bab1412.webp?v=1762825718"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2386e9a0cc6bad0906176e1a97e76e26bab1412.webp?v=1762825718","width":2000},{"alt":null,"id":26351685599331,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8ed4469dafc69003cc95f138e1e01aa077ebfd4.webp?v=1762825717"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8ed4469dafc69003cc95f138e1e01aa077ebfd4.webp?v=1762825717","width":2000},{"alt":null,"id":26351685828707,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fe6b8d92233214aee39f9697a8c7a5d930f9ad3.webp?v=1762825718"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fe6b8d92233214aee39f9697a8c7a5d930f9ad3.webp?v=1762825718","width":2000},{"alt":null,"id":26351686025315,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92dd76daeab17450100ff4f7d1f6751b6df115a4.webp?v=1762825719"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92dd76daeab17450100ff4f7d1f6751b6df115a4.webp?v=1762825719","width":2000},{"alt":null,"id":26351686189155,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1d58273de91a4951741b2241d2eca11e822875a.webp?v=1762825719"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1d58273de91a4951741b2241d2eca11e822875a.webp?v=1762825719","width":2000},{"alt":null,"id":26351686320227,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b25f63aecee5031ee47f4a294cfb4f14a597b7f.webp?v=1762825720"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b25f63aecee5031ee47f4a294cfb4f14a597b7f.webp?v=1762825720","width":2000},{"alt":null,"id":26351686582371,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae12a0eeee209552a05db924e7fcfa23f8d22e2e.webp?v=1762825721"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae12a0eeee209552a05db924e7fcfa23f8d22e2e.webp?v=1762825721","width":2000},{"alt":null,"id":26351687073891,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f75abe5d39712d8bcfaeb2e72faf5995a6502bb.webp?v=1762825722"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f75abe5d39712d8bcfaeb2e72faf5995a6502bb.webp?v=1762825722","width":2000},{"alt":null,"id":26351687401571,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee10264c8d00bebc3c806a47443fac02f672ab0c.webp?v=1762825722"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee10264c8d00bebc3c806a47443fac02f672ab0c.webp?v=1762825722","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43830933782627,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-HD70","requires_shipping":true,"taxable":true,"featured_image":{"id":34786229321827,"product_id":7921142792291,"position":10,"created_at":"2025-11-11T09:48:38+08:00","updated_at":"2025-11-11T09:48:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b25f63aecee5031ee47f4a294cfb4f14a597b7f.webp?v=1762825720","variant_ids":[43830933782627]},"available":true,"name":"iPhone 14 Plus 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":"MPB0126124-HD70","featured_media":{"alt":null,"id":26351686320227,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b25f63aecee5031ee47f4a294cfb4f14a597b7f.webp?v=1762825720"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43830933782627,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-HD70","requires_shipping":true,"taxable":true,"featured_image":{"id":34786229321827,"product_id":7921142792291,"position":10,"created_at":"2025-11-11T09:48:38+08:00","updated_at":"2025-11-11T09:48:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b25f63aecee5031ee47f4a294cfb4f14a597b7f.webp?v=1762825720","variant_ids":[43830933782627]},"available":true,"name":"iPhone 14 Plus 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":"MPB0126124-HD70","featured_media":{"alt":null,"id":26351686320227,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b25f63aecee5031ee47f4a294cfb4f14a597b7f.webp?v=1762825720"}},"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: "停產" }