$product = {"id":7824494624867,"title":"iPhone 15 Plus SolidX 方坊 Square Studio 樂樂登場","handle":"iphone-15-plus-solidx-rk14","description":null,"published_at":"2025-07-01T17:41:23+08:00","created_at":"2025-06-20T18:03:01+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-squarestudio","device-iPhone 15 Plus","merge","reseller-squarestudio"],"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":43479745429603,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-RK14","requires_shipping":true,"taxable":true,"featured_image":{"id":34187375247459,"product_id":7824494624867,"position":5,"created_at":"2025-07-15T17:34:13+08:00","updated_at":"2025-07-15T17:34:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f201a82e143a85bb0149b75eaddebbe003849736.webp?v=1752572054","variant_ids":[43479745429603]},"available":true,"name":"iPhone 15 Plus SolidX 方坊 Square Studio 樂樂登場 - 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-RK14","featured_media":{"alt":null,"id":25822739202147,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f201a82e143a85bb0149b75eaddebbe003849736.webp?v=1752572054"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43479748509795,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-RK14","requires_shipping":true,"taxable":true,"featured_image":{"id":34187376590947,"product_id":7824494624867,"position":8,"created_at":"2025-07-15T17:34:14+08:00","updated_at":"2025-07-15T17:34:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4004fe6785f3602132df12ed6fbfd0bcfaf5aba.webp?v=1752572056","variant_ids":[43479748509795]},"available":true,"name":"iPhone 15 Plus SolidX 方坊 Square Studio 樂樂登場 - 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-RK14","featured_media":{"alt":null,"id":25822739988579,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4004fe6785f3602132df12ed6fbfd0bcfaf5aba.webp?v=1752572056"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-296-RK14.png?v=1750413784","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-RK14_a02cad81-4861-45a6-a6ba-6de89d860705.png?v=1750821266","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50c70914b6b453968a78d9ed88d2eb1a85f1eb4b.webp?v=1752572053","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22b9f987adbe41e4a3c8b5bb1987e114a2cf7ea2.webp?v=1752572054","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f201a82e143a85bb0149b75eaddebbe003849736.webp?v=1752572054","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/818ddf2b6bb6341e694ab8236f7237cf1d47da01.webp?v=1752572055","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d33e8d46303ea91b4937a72f811487c59e60956a.webp?v=1752572055","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4004fe6785f3602132df12ed6fbfd0bcfaf5aba.webp?v=1752572056","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/193932b273f7b7888a9927550b3aff8495159ca3.webp?v=1752572057","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3a3f99c81f35738e3d87d41a1f2be4808a3dc91.webp?v=1752572057","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81fb43d7c5852d7b855563f479a0a048e32da2a8.webp?v=1752572058","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d943dc76e873a82cbc6cb00bf804aa10217e84a.webp?v=1752572058"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-296-RK14.png?v=1750413784","options":["color"],"media":[{"alt":null,"id":25722153205859,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-296-RK14.png?v=1750413784"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-296-RK14.png?v=1750413784","width":2000},{"alt":null,"id":25735261159523,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-RK14_a02cad81-4861-45a6-a6ba-6de89d860705.png?v=1750821266"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-RK14_a02cad81-4861-45a6-a6ba-6de89d860705.png?v=1750821266","width":2000},{"alt":null,"id":25822738546787,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50c70914b6b453968a78d9ed88d2eb1a85f1eb4b.webp?v=1752572053"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50c70914b6b453968a78d9ed88d2eb1a85f1eb4b.webp?v=1752572053","width":2000},{"alt":null,"id":25822738874467,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22b9f987adbe41e4a3c8b5bb1987e114a2cf7ea2.webp?v=1752572054"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22b9f987adbe41e4a3c8b5bb1987e114a2cf7ea2.webp?v=1752572054","width":2000},{"alt":null,"id":25822739202147,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f201a82e143a85bb0149b75eaddebbe003849736.webp?v=1752572054"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f201a82e143a85bb0149b75eaddebbe003849736.webp?v=1752572054","width":2000},{"alt":null,"id":25822739497059,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/818ddf2b6bb6341e694ab8236f7237cf1d47da01.webp?v=1752572055"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/818ddf2b6bb6341e694ab8236f7237cf1d47da01.webp?v=1752572055","width":2000},{"alt":null,"id":25822739759203,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d33e8d46303ea91b4937a72f811487c59e60956a.webp?v=1752572055"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d33e8d46303ea91b4937a72f811487c59e60956a.webp?v=1752572055","width":2000},{"alt":null,"id":25822739988579,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4004fe6785f3602132df12ed6fbfd0bcfaf5aba.webp?v=1752572056"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4004fe6785f3602132df12ed6fbfd0bcfaf5aba.webp?v=1752572056","width":2000},{"alt":null,"id":25822740217955,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/193932b273f7b7888a9927550b3aff8495159ca3.webp?v=1752572057"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/193932b273f7b7888a9927550b3aff8495159ca3.webp?v=1752572057","width":2000},{"alt":null,"id":25822740480099,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3a3f99c81f35738e3d87d41a1f2be4808a3dc91.webp?v=1752572057"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3a3f99c81f35738e3d87d41a1f2be4808a3dc91.webp?v=1752572057","width":2000},{"alt":null,"id":25822740643939,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81fb43d7c5852d7b855563f479a0a048e32da2a8.webp?v=1752572058"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81fb43d7c5852d7b855563f479a0a048e32da2a8.webp?v=1752572058","width":2000},{"alt":null,"id":25822740873315,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d943dc76e873a82cbc6cb00bf804aa10217e84a.webp?v=1752572058"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d943dc76e873a82cbc6cb00bf804aa10217e84a.webp?v=1752572058","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43479745429603,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-RK14","requires_shipping":true,"taxable":true,"featured_image":{"id":34187375247459,"product_id":7824494624867,"position":5,"created_at":"2025-07-15T17:34:13+08:00","updated_at":"2025-07-15T17:34:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f201a82e143a85bb0149b75eaddebbe003849736.webp?v=1752572054","variant_ids":[43479745429603]},"available":true,"name":"iPhone 15 Plus SolidX 方坊 Square Studio 樂樂登場 - 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-RK14","featured_media":{"alt":null,"id":25822739202147,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f201a82e143a85bb0149b75eaddebbe003849736.webp?v=1752572054"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43479748509795,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-RK14","requires_shipping":true,"taxable":true,"featured_image":{"id":34187376590947,"product_id":7824494624867,"position":8,"created_at":"2025-07-15T17:34:14+08:00","updated_at":"2025-07-15T17:34:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4004fe6785f3602132df12ed6fbfd0bcfaf5aba.webp?v=1752572056","variant_ids":[43479748509795]},"available":true,"name":"iPhone 15 Plus SolidX 方坊 Square Studio 樂樂登場 - 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-RK14","featured_media":{"alt":null,"id":25822739988579,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4004fe6785f3602132df12ed6fbfd0bcfaf5aba.webp?v=1752572056"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43479745429603,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-RK14","requires_shipping":true,"taxable":true,"featured_image":{"id":34187375247459,"product_id":7824494624867,"position":5,"created_at":"2025-07-15T17:34:13+08:00","updated_at":"2025-07-15T17:34:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f201a82e143a85bb0149b75eaddebbe003849736.webp?v=1752572054","variant_ids":[43479745429603]},"available":true,"name":"iPhone 15 Plus SolidX 方坊 Square Studio 樂樂登場 - 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-RK14","featured_media":{"alt":null,"id":25822739202147,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f201a82e143a85bb0149b75eaddebbe003849736.webp?v=1752572054"}},"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: "停產" }