$product = {"id":7944301379683,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) 右手超人 靈感","handle":"iphone-14-plus-mod-nx-magsafe-yoh04","description":null,"published_at":"2025-12-24T10:18:38+08:00","created_at":"2025-12-23T16:52:56+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-yohand","device-iPhone 14 Plus","merge","reseller-yohand"],"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":43908001464419,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-YOH04","requires_shipping":true,"taxable":true,"featured_image":{"id":35002966278243,"product_id":7944301379683,"position":2,"created_at":"2025-12-23T16:53:38+08:00","updated_at":"2025-12-23T16:53:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93446851a55f33d5899713c0c93b3c73e76bab90.webp?v=1766480020","variant_ids":[43908001464419]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 右手超人 靈感 - 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-YOH04","featured_media":{"alt":null,"id":26563257139299,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93446851a55f33d5899713c0c93b3c73e76bab90.webp?v=1766480020"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/855e3143c76399823a9a557d24fd74470d441923.webp?v=1766480019","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93446851a55f33d5899713c0c93b3c73e76bab90.webp?v=1766480020","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73dee900575e0c657062360914c07450a43179ba.webp?v=1766480021","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41da882c1348943974abd327831e16d086502d2b.webp?v=1766480022","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26cc8d4611043ee485466cee6cf62341bf35d000.webp?v=1766480022","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b4140595abec86df4b4e6fa7c3ea2100849ae11.webp?v=1766480023","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d5ed0fac1216e5a67d94d17e7cba91f5b51496c.webp?v=1766480024","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55d21e812f8fcbeb7fc62ca6f36ea070ccd8184c.webp?v=1766480024","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0793ca7a2f24c30d2ad07a32b053c945f029b93e.webp?v=1766480025","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d02520ed3eeb366c16235df009f50141a5d4714.webp?v=1766480025","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7618d03419d20d2ca9b835f969d3a2210445355f.webp?v=1766480026","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f3ca4fdc3c5c7fddf1b87fb8ed07295d59394c8.webp?v=1766480026","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c2a0f3c85db8e4d85cb0a88a6662df49e35d68d.webp?v=1766480027"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/855e3143c76399823a9a557d24fd74470d441923.webp?v=1766480019","options":["color"],"media":[{"alt":null,"id":26563256909923,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/855e3143c76399823a9a557d24fd74470d441923.webp?v=1766480019"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/855e3143c76399823a9a557d24fd74470d441923.webp?v=1766480019","width":2000},{"alt":null,"id":26563257139299,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93446851a55f33d5899713c0c93b3c73e76bab90.webp?v=1766480020"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93446851a55f33d5899713c0c93b3c73e76bab90.webp?v=1766480020","width":2000},{"alt":null,"id":26563257696355,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73dee900575e0c657062360914c07450a43179ba.webp?v=1766480021"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73dee900575e0c657062360914c07450a43179ba.webp?v=1766480021","width":2000},{"alt":null,"id":26563258351715,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41da882c1348943974abd327831e16d086502d2b.webp?v=1766480022"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41da882c1348943974abd327831e16d086502d2b.webp?v=1766480022","width":2000},{"alt":null,"id":26563258810467,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26cc8d4611043ee485466cee6cf62341bf35d000.webp?v=1766480022"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26cc8d4611043ee485466cee6cf62341bf35d000.webp?v=1766480022","width":2000},{"alt":null,"id":26563259334755,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b4140595abec86df4b4e6fa7c3ea2100849ae11.webp?v=1766480023"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b4140595abec86df4b4e6fa7c3ea2100849ae11.webp?v=1766480023","width":2000},{"alt":null,"id":26563259695203,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d5ed0fac1216e5a67d94d17e7cba91f5b51496c.webp?v=1766480024"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d5ed0fac1216e5a67d94d17e7cba91f5b51496c.webp?v=1766480024","width":2000},{"alt":null,"id":26563260022883,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55d21e812f8fcbeb7fc62ca6f36ea070ccd8184c.webp?v=1766480024"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55d21e812f8fcbeb7fc62ca6f36ea070ccd8184c.webp?v=1766480024","width":2000},{"alt":null,"id":26563260350563,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0793ca7a2f24c30d2ad07a32b053c945f029b93e.webp?v=1766480025"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0793ca7a2f24c30d2ad07a32b053c945f029b93e.webp?v=1766480025","width":2000},{"alt":null,"id":26563260612707,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d02520ed3eeb366c16235df009f50141a5d4714.webp?v=1766480025"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d02520ed3eeb366c16235df009f50141a5d4714.webp?v=1766480025","width":2000},{"alt":null,"id":26563261071459,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7618d03419d20d2ca9b835f969d3a2210445355f.webp?v=1766480026"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7618d03419d20d2ca9b835f969d3a2210445355f.webp?v=1766480026","width":2000},{"alt":null,"id":26563261530211,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f3ca4fdc3c5c7fddf1b87fb8ed07295d59394c8.webp?v=1766480026"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f3ca4fdc3c5c7fddf1b87fb8ed07295d59394c8.webp?v=1766480026","width":2000},{"alt":null,"id":26563261857891,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c2a0f3c85db8e4d85cb0a88a6662df49e35d68d.webp?v=1766480027"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c2a0f3c85db8e4d85cb0a88a6662df49e35d68d.webp?v=1766480027","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43908001464419,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-YOH04","requires_shipping":true,"taxable":true,"featured_image":{"id":35002966278243,"product_id":7944301379683,"position":2,"created_at":"2025-12-23T16:53:38+08:00","updated_at":"2025-12-23T16:53:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93446851a55f33d5899713c0c93b3c73e76bab90.webp?v=1766480020","variant_ids":[43908001464419]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 右手超人 靈感 - 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-YOH04","featured_media":{"alt":null,"id":26563257139299,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93446851a55f33d5899713c0c93b3c73e76bab90.webp?v=1766480020"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43908001464419,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-YOH04","requires_shipping":true,"taxable":true,"featured_image":{"id":35002966278243,"product_id":7944301379683,"position":2,"created_at":"2025-12-23T16:53:38+08:00","updated_at":"2025-12-23T16:53:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93446851a55f33d5899713c0c93b3c73e76bab90.webp?v=1766480020","variant_ids":[43908001464419]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 右手超人 靈感 - 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-YOH04","featured_media":{"alt":null,"id":26563257139299,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93446851a55f33d5899713c0c93b3c73e76bab90.webp?v=1766480020"}},"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: "停產" }