$product = {"id":7987936002147,"title":"iPhone 15 Plus SolidX Pingu 企鵝家族 Noot!Noot!","handle":"iphone-15-plus-solidx-yc33","description":null,"published_at":"2026-03-31T09:25:19+08:00","created_at":"2026-03-30T15:02:44+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-pingu","device-iPhone 15 Plus","merge","reseller-pingu"],"price":125000,"price_min":125000,"price_max":125000,"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":44089802719331,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-YC33","requires_shipping":true,"taxable":true,"featured_image":{"id":35562674913379,"product_id":7987936002147,"position":2,"created_at":"2026-03-30T15:02:48+08:00","updated_at":"2026-03-30T15:02:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25c560e9152e4d05337cdcbc31570a814a449797.webp?v=1774854170","variant_ids":[44089802719331]},"available":true,"name":"iPhone 15 Plus SolidX Pingu 企鵝家族 Noot!Noot! - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST012960B-YC33","featured_media":{"alt":null,"id":27096237047907,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25c560e9152e4d05337cdcbc31570a814a449797.webp?v=1774854170"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44089805668451,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"NST01296O8-YC33","requires_shipping":true,"taxable":true,"featured_image":{"id":35562675339363,"product_id":7987936002147,"position":4,"created_at":"2026-03-30T15:02:50+08:00","updated_at":"2026-03-30T15:02:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28ff39d44d83ea610990e2a100521f2f40d57668.webp?v=1774854171","variant_ids":[44089805668451]},"available":true,"name":"iPhone 15 Plus SolidX Pingu 企鵝家族 Noot!Noot! - Ash Grey","public_title":"Ash Grey","options":["Ash Grey"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01296O8-YC33","featured_media":{"alt":null,"id":27096237473891,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28ff39d44d83ea610990e2a100521f2f40d57668.webp?v=1774854171"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44089805733987,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-YC33","requires_shipping":true,"taxable":true,"featured_image":{"id":35562675634275,"product_id":7987936002147,"position":6,"created_at":"2026-03-30T15:02:51+08:00","updated_at":"2026-03-30T15:02:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25a1ec05666aec207b063a436bbb2f33c50b7f30.webp?v=1774854173","variant_ids":[44089805733987]},"available":true,"name":"iPhone 15 Plus SolidX Pingu 企鵝家族 Noot!Noot! - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129652-YC33","featured_media":{"alt":null,"id":27096237768803,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25a1ec05666aec207b063a436bbb2f33c50b7f30.webp?v=1774854173"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d3c381e15beda1d6d895bb6460e3a4536f4465e.webp?v=1774854169","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25c560e9152e4d05337cdcbc31570a814a449797.webp?v=1774854170","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/102b1b5081e4e00c7b730c46cfa0db992b909770.webp?v=1774854170","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28ff39d44d83ea610990e2a100521f2f40d57668.webp?v=1774854171","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13e0ac5da42d39ab742d9ff6d899bb2263712156.webp?v=1774854172","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25a1ec05666aec207b063a436bbb2f33c50b7f30.webp?v=1774854173","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46373c7a2bbdfae929ac6f0991e833bf196fe381.webp?v=1774854173","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8b02518eb9c2408fcbe8e093cb7a054581a4227.webp?v=1774854174"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d3c381e15beda1d6d895bb6460e3a4536f4465e.webp?v=1774854169","options":["color"],"media":[{"alt":null,"id":27096236916835,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d3c381e15beda1d6d895bb6460e3a4536f4465e.webp?v=1774854169"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d3c381e15beda1d6d895bb6460e3a4536f4465e.webp?v=1774854169","width":2000},{"alt":null,"id":27096237047907,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25c560e9152e4d05337cdcbc31570a814a449797.webp?v=1774854170"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25c560e9152e4d05337cdcbc31570a814a449797.webp?v=1774854170","width":2000},{"alt":null,"id":27096237211747,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/102b1b5081e4e00c7b730c46cfa0db992b909770.webp?v=1774854170"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/102b1b5081e4e00c7b730c46cfa0db992b909770.webp?v=1774854170","width":2000},{"alt":null,"id":27096237473891,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28ff39d44d83ea610990e2a100521f2f40d57668.webp?v=1774854171"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28ff39d44d83ea610990e2a100521f2f40d57668.webp?v=1774854171","width":2000},{"alt":null,"id":27096237604963,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13e0ac5da42d39ab742d9ff6d899bb2263712156.webp?v=1774854172"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13e0ac5da42d39ab742d9ff6d899bb2263712156.webp?v=1774854172","width":2000},{"alt":null,"id":27096237768803,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25a1ec05666aec207b063a436bbb2f33c50b7f30.webp?v=1774854173"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25a1ec05666aec207b063a436bbb2f33c50b7f30.webp?v=1774854173","width":2000},{"alt":null,"id":27096237932643,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46373c7a2bbdfae929ac6f0991e833bf196fe381.webp?v=1774854173"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46373c7a2bbdfae929ac6f0991e833bf196fe381.webp?v=1774854173","width":2000},{"alt":null,"id":27096238063715,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8b02518eb9c2408fcbe8e093cb7a054581a4227.webp?v=1774854174"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8b02518eb9c2408fcbe8e093cb7a054581a4227.webp?v=1774854174","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":44089802719331,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-YC33","requires_shipping":true,"taxable":true,"featured_image":{"id":35562674913379,"product_id":7987936002147,"position":2,"created_at":"2026-03-30T15:02:48+08:00","updated_at":"2026-03-30T15:02:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25c560e9152e4d05337cdcbc31570a814a449797.webp?v=1774854170","variant_ids":[44089802719331]},"available":true,"name":"iPhone 15 Plus SolidX Pingu 企鵝家族 Noot!Noot! - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST012960B-YC33","featured_media":{"alt":null,"id":27096237047907,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25c560e9152e4d05337cdcbc31570a814a449797.webp?v=1774854170"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44089805668451,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"NST01296O8-YC33","requires_shipping":true,"taxable":true,"featured_image":{"id":35562675339363,"product_id":7987936002147,"position":4,"created_at":"2026-03-30T15:02:50+08:00","updated_at":"2026-03-30T15:02:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28ff39d44d83ea610990e2a100521f2f40d57668.webp?v=1774854171","variant_ids":[44089805668451]},"available":true,"name":"iPhone 15 Plus SolidX Pingu 企鵝家族 Noot!Noot! - Ash Grey","public_title":"Ash Grey","options":["Ash Grey"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01296O8-YC33","featured_media":{"alt":null,"id":27096237473891,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28ff39d44d83ea610990e2a100521f2f40d57668.webp?v=1774854171"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44089805733987,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-YC33","requires_shipping":true,"taxable":true,"featured_image":{"id":35562675634275,"product_id":7987936002147,"position":6,"created_at":"2026-03-30T15:02:51+08:00","updated_at":"2026-03-30T15:02:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25a1ec05666aec207b063a436bbb2f33c50b7f30.webp?v=1774854173","variant_ids":[44089805733987]},"available":true,"name":"iPhone 15 Plus SolidX Pingu 企鵝家族 Noot!Noot! - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129652-YC33","featured_media":{"alt":null,"id":27096237768803,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25a1ec05666aec207b063a436bbb2f33c50b7f30.webp?v=1774854173"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":44089802719331,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-YC33","requires_shipping":true,"taxable":true,"featured_image":{"id":35562674913379,"product_id":7987936002147,"position":2,"created_at":"2026-03-30T15:02:48+08:00","updated_at":"2026-03-30T15:02:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25c560e9152e4d05337cdcbc31570a814a449797.webp?v=1774854170","variant_ids":[44089802719331]},"available":true,"name":"iPhone 15 Plus SolidX Pingu 企鵝家族 Noot!Noot! - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST012960B-YC33","featured_media":{"alt":null,"id":27096237047907,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25c560e9152e4d05337cdcbc31570a814a449797.webp?v=1774854170"}},"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: "停產" }