$product = {"id":7987837698147,"title":"iPhone 15 Plus SolidX Pingu 企鵝家族 Pinga - 心花綻放","handle":"iphone-15-plus-solidx-yc02","description":null,"published_at":"2026-03-31T09:57:08+08:00","created_at":"2026-03-30T14:39:46+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":44089460293731,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-YC02","requires_shipping":true,"taxable":true,"featured_image":{"id":35562346446947,"product_id":7987837698147,"position":8,"created_at":"2026-03-30T14:39:54+08:00","updated_at":"2026-03-30T14:39:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ed77835dca72ed9db86db3ba3c34ddc172ab297.webp?v=1774852795","variant_ids":[44089460293731]},"available":true,"name":"iPhone 15 Plus SolidX Pingu 企鵝家族 Pinga - 心花綻放 - 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-YC02","featured_media":{"alt":null,"id":27095908548707,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ed77835dca72ed9db86db3ba3c34ddc172ab297.webp?v=1774852795"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44089462489187,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-YC02","requires_shipping":true,"taxable":true,"featured_image":{"id":35562344972387,"product_id":7987837698147,"position":2,"created_at":"2026-03-30T14:39:50+08:00","updated_at":"2026-03-30T14:39:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5246fcff6c96273ba14a83438788410fe024e838.webp?v=1774852792","variant_ids":[44089462489187]},"available":true,"name":"iPhone 15 Plus SolidX Pingu 企鵝家族 Pinga - 心花綻放 - 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-YC02","featured_media":{"alt":null,"id":27095907106915,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5246fcff6c96273ba14a83438788410fe024e838.webp?v=1774852792"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/959c42dfed787466fea40c0c68a06bed244febd9.webp?v=1774852792","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5246fcff6c96273ba14a83438788410fe024e838.webp?v=1774852792","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d04ed7e0d9314cd4e0b7f8e7a67aeecfc75a60d.webp?v=1774852793","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/717ee416cf6d47f28c6a710a670779d0376da9a1.webp?v=1774852794","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8adf04c2843326497b796a677d1246e09ccc0f30.webp?v=1774852794","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fee52bf4ff35138cd9f0014f90c44798b1d395c.webp?v=1774852794","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d1dd300efcf9cb9f72168c1c878259f5ac81c59.webp?v=1774852795","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ed77835dca72ed9db86db3ba3c34ddc172ab297.webp?v=1774852795"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/959c42dfed787466fea40c0c68a06bed244febd9.webp?v=1774852792","options":["color"],"media":[{"alt":null,"id":27095906975843,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/959c42dfed787466fea40c0c68a06bed244febd9.webp?v=1774852792"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/959c42dfed787466fea40c0c68a06bed244febd9.webp?v=1774852792","width":2000},{"alt":null,"id":27095907106915,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5246fcff6c96273ba14a83438788410fe024e838.webp?v=1774852792"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5246fcff6c96273ba14a83438788410fe024e838.webp?v=1774852792","width":2000},{"alt":null,"id":27095907369059,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d04ed7e0d9314cd4e0b7f8e7a67aeecfc75a60d.webp?v=1774852793"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d04ed7e0d9314cd4e0b7f8e7a67aeecfc75a60d.webp?v=1774852793","width":2000},{"alt":null,"id":27095907565667,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/717ee416cf6d47f28c6a710a670779d0376da9a1.webp?v=1774852794"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/717ee416cf6d47f28c6a710a670779d0376da9a1.webp?v=1774852794","width":2000},{"alt":null,"id":27095907860579,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8adf04c2843326497b796a677d1246e09ccc0f30.webp?v=1774852794"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8adf04c2843326497b796a677d1246e09ccc0f30.webp?v=1774852794","width":2000},{"alt":null,"id":27095908155491,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fee52bf4ff35138cd9f0014f90c44798b1d395c.webp?v=1774852794"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fee52bf4ff35138cd9f0014f90c44798b1d395c.webp?v=1774852794","width":2000},{"alt":null,"id":27095908319331,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d1dd300efcf9cb9f72168c1c878259f5ac81c59.webp?v=1774852795"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d1dd300efcf9cb9f72168c1c878259f5ac81c59.webp?v=1774852795","width":2000},{"alt":null,"id":27095908548707,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ed77835dca72ed9db86db3ba3c34ddc172ab297.webp?v=1774852795"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ed77835dca72ed9db86db3ba3c34ddc172ab297.webp?v=1774852795","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":44089460293731,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-YC02","requires_shipping":true,"taxable":true,"featured_image":{"id":35562346446947,"product_id":7987837698147,"position":8,"created_at":"2026-03-30T14:39:54+08:00","updated_at":"2026-03-30T14:39:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ed77835dca72ed9db86db3ba3c34ddc172ab297.webp?v=1774852795","variant_ids":[44089460293731]},"available":true,"name":"iPhone 15 Plus SolidX Pingu 企鵝家族 Pinga - 心花綻放 - 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-YC02","featured_media":{"alt":null,"id":27095908548707,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ed77835dca72ed9db86db3ba3c34ddc172ab297.webp?v=1774852795"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44089462489187,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-YC02","requires_shipping":true,"taxable":true,"featured_image":{"id":35562344972387,"product_id":7987837698147,"position":2,"created_at":"2026-03-30T14:39:50+08:00","updated_at":"2026-03-30T14:39:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5246fcff6c96273ba14a83438788410fe024e838.webp?v=1774852792","variant_ids":[44089462489187]},"available":true,"name":"iPhone 15 Plus SolidX Pingu 企鵝家族 Pinga - 心花綻放 - 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-YC02","featured_media":{"alt":null,"id":27095907106915,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5246fcff6c96273ba14a83438788410fe024e838.webp?v=1774852792"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":44089460293731,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-YC02","requires_shipping":true,"taxable":true,"featured_image":{"id":35562346446947,"product_id":7987837698147,"position":8,"created_at":"2026-03-30T14:39:54+08:00","updated_at":"2026-03-30T14:39:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ed77835dca72ed9db86db3ba3c34ddc172ab297.webp?v=1774852795","variant_ids":[44089460293731]},"available":true,"name":"iPhone 15 Plus SolidX Pingu 企鵝家族 Pinga - 心花綻放 - 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-YC02","featured_media":{"alt":null,"id":27095908548707,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ed77835dca72ed9db86db3ba3c34ddc172ab297.webp?v=1774852795"}},"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: "停產" }