$product = {"id":7944313208931,"title":"iPhone 15 Plus SolidX 右手超人 企鵝朋友","handle":"iphone-15-plus-solidx-yoh05","description":null,"published_at":"2025-12-24T10:16:22+08:00","created_at":"2025-12-23T16:56:21+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-yohand","device-iPhone 15 Plus","merge","reseller-yohand"],"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":43908083482723,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-YOH05","requires_shipping":true,"taxable":true,"featured_image":{"id":35003036926051,"product_id":7944313208931,"position":7,"created_at":"2025-12-23T16:56:53+08:00","updated_at":"2025-12-23T16:56:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/292c44901877c00bbda722dc4caf72b48f3d366f.webp?v=1766480215","variant_ids":[43908083482723]},"available":true,"name":"iPhone 15 Plus SolidX 右手超人 企鵝朋友 - 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-YOH05","featured_media":{"alt":null,"id":26563327524963,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/292c44901877c00bbda722dc4caf72b48f3d366f.webp?v=1766480215"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43908090921059,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-YOH05","requires_shipping":true,"taxable":true,"featured_image":{"id":35003037909091,"product_id":7944313208931,"position":9,"created_at":"2025-12-23T16:56:54+08:00","updated_at":"2025-12-23T16:56:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f80c08a92f9d312a04af10e3119c22f34f303a5e.webp?v=1766480216","variant_ids":[43908090921059]},"available":true,"name":"iPhone 15 Plus SolidX 右手超人 企鵝朋友 - 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-YOH05","featured_media":{"alt":null,"id":26563328540771,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f80c08a92f9d312a04af10e3119c22f34f303a5e.webp?v=1766480216"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bf8706904afd8473dfb70c5b9a12af81c23f9d7.webp?v=1766480211","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8851a7b8d457e4940f3d5254c1a4ac26fd53f543.webp?v=1766480212","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f7c74168f0e462d0d6df5de0e87c91ffc1d2fb6.webp?v=1766480212","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/917ea93585d1c1ef4d19797c6f6bd19e8de45655.webp?v=1766480213","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce35802a31729a5461cda7e5e07f9f4d5713d032.webp?v=1766480213","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d00bdaecc9060ecc3950f4858ca2465c8ad7f32.webp?v=1766480214","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/292c44901877c00bbda722dc4caf72b48f3d366f.webp?v=1766480215","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21943a5cffd7fd02ef334dfff8998181f324d1f4.webp?v=1766480215","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f80c08a92f9d312a04af10e3119c22f34f303a5e.webp?v=1766480216","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/106a94f85f0e5dfabef5d382aa8e2c15eaa32fe4.webp?v=1766480217"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bf8706904afd8473dfb70c5b9a12af81c23f9d7.webp?v=1766480211","options":["color"],"media":[{"alt":null,"id":26563324084323,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bf8706904afd8473dfb70c5b9a12af81c23f9d7.webp?v=1766480211"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bf8706904afd8473dfb70c5b9a12af81c23f9d7.webp?v=1766480211","width":2000},{"alt":null,"id":26563324543075,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8851a7b8d457e4940f3d5254c1a4ac26fd53f543.webp?v=1766480212"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8851a7b8d457e4940f3d5254c1a4ac26fd53f543.webp?v=1766480212","width":2000},{"alt":null,"id":26563325100131,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f7c74168f0e462d0d6df5de0e87c91ffc1d2fb6.webp?v=1766480212"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f7c74168f0e462d0d6df5de0e87c91ffc1d2fb6.webp?v=1766480212","width":2000},{"alt":null,"id":26563325624419,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/917ea93585d1c1ef4d19797c6f6bd19e8de45655.webp?v=1766480213"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/917ea93585d1c1ef4d19797c6f6bd19e8de45655.webp?v=1766480213","width":2000},{"alt":null,"id":26563326148707,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce35802a31729a5461cda7e5e07f9f4d5713d032.webp?v=1766480213"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce35802a31729a5461cda7e5e07f9f4d5713d032.webp?v=1766480213","width":2000},{"alt":null,"id":26563326672995,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d00bdaecc9060ecc3950f4858ca2465c8ad7f32.webp?v=1766480214"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d00bdaecc9060ecc3950f4858ca2465c8ad7f32.webp?v=1766480214","width":2000},{"alt":null,"id":26563327524963,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/292c44901877c00bbda722dc4caf72b48f3d366f.webp?v=1766480215"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/292c44901877c00bbda722dc4caf72b48f3d366f.webp?v=1766480215","width":2000},{"alt":null,"id":26563328016483,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21943a5cffd7fd02ef334dfff8998181f324d1f4.webp?v=1766480215"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21943a5cffd7fd02ef334dfff8998181f324d1f4.webp?v=1766480215","width":2000},{"alt":null,"id":26563328540771,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f80c08a92f9d312a04af10e3119c22f34f303a5e.webp?v=1766480216"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f80c08a92f9d312a04af10e3119c22f34f303a5e.webp?v=1766480216","width":2000},{"alt":null,"id":26563329065059,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/106a94f85f0e5dfabef5d382aa8e2c15eaa32fe4.webp?v=1766480217"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/106a94f85f0e5dfabef5d382aa8e2c15eaa32fe4.webp?v=1766480217","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43908083482723,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-YOH05","requires_shipping":true,"taxable":true,"featured_image":{"id":35003036926051,"product_id":7944313208931,"position":7,"created_at":"2025-12-23T16:56:53+08:00","updated_at":"2025-12-23T16:56:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/292c44901877c00bbda722dc4caf72b48f3d366f.webp?v=1766480215","variant_ids":[43908083482723]},"available":true,"name":"iPhone 15 Plus SolidX 右手超人 企鵝朋友 - 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-YOH05","featured_media":{"alt":null,"id":26563327524963,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/292c44901877c00bbda722dc4caf72b48f3d366f.webp?v=1766480215"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43908090921059,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-YOH05","requires_shipping":true,"taxable":true,"featured_image":{"id":35003037909091,"product_id":7944313208931,"position":9,"created_at":"2025-12-23T16:56:54+08:00","updated_at":"2025-12-23T16:56:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f80c08a92f9d312a04af10e3119c22f34f303a5e.webp?v=1766480216","variant_ids":[43908090921059]},"available":true,"name":"iPhone 15 Plus SolidX 右手超人 企鵝朋友 - 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-YOH05","featured_media":{"alt":null,"id":26563328540771,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f80c08a92f9d312a04af10e3119c22f34f303a5e.webp?v=1766480216"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43908083482723,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-YOH05","requires_shipping":true,"taxable":true,"featured_image":{"id":35003036926051,"product_id":7944313208931,"position":7,"created_at":"2025-12-23T16:56:53+08:00","updated_at":"2025-12-23T16:56:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/292c44901877c00bbda722dc4caf72b48f3d366f.webp?v=1766480215","variant_ids":[43908083482723]},"available":true,"name":"iPhone 15 Plus SolidX 右手超人 企鵝朋友 - 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-YOH05","featured_media":{"alt":null,"id":26563327524963,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/292c44901877c00bbda722dc4caf72b48f3d366f.webp?v=1766480215"}},"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: "停產" }