$product = {"id":7836979527779,"title":"iPhone 15 Plus SolidX OSAMU GOODS 多彩系列-角色大集合","handle":"iphone-15-plus-solidx-bumper-back-crossover-design-yn35","description":null,"published_at":"2025-07-14T15:41:29+08:00","created_at":"2025-07-14T15:01:15+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-osamugoods","device-iPhone 15 Plus","merge","reseller-osamugoods"],"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":43525385977955,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-YN35","requires_shipping":true,"taxable":true,"featured_image":{"id":34180111204451,"product_id":7836979527779,"position":1,"created_at":"2025-07-14T15:01:19+08:00","updated_at":"2025-07-14T15:01:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c2fcfd283167e3ebd3a3e87db9d5a8b6377355b.webp?v=1752476481","variant_ids":[43525385977955]},"available":true,"name":"iPhone 15 Plus SolidX OSAMU GOODS 多彩系列-角色大集合 - 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-YN35","featured_media":{"alt":null,"id":25817183715427,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c2fcfd283167e3ebd3a3e87db9d5a8b6377355b.webp?v=1752476481"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43525401313379,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-YN35","requires_shipping":true,"taxable":true,"featured_image":{"id":34180113596515,"product_id":7836979527779,"position":7,"created_at":"2025-07-14T15:01:23+08:00","updated_at":"2025-07-14T15:01:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7945717b6660263519e38d80adbeab062b4c88c6.webp?v=1752476485","variant_ids":[43525401313379]},"available":true,"name":"iPhone 15 Plus SolidX OSAMU GOODS 多彩系列-角色大集合 - 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-YN35","featured_media":{"alt":null,"id":25817184731235,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7945717b6660263519e38d80adbeab062b4c88c6.webp?v=1752476485"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c2fcfd283167e3ebd3a3e87db9d5a8b6377355b.webp?v=1752476481","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99fc98c26393894c630439dcbbb16f6d9116a64e.webp?v=1752476482","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2edd20199192159e9ac60a74422cf43f66739b0f.webp?v=1752476483","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86ad56071c1d7878feca986b0e87a5b9cd537915.webp?v=1752476483","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/320a1eeb6b9187780e2193528dab473d7994557c.webp?v=1752476484","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89eebcfffa49773141dc7cd9b4bd8e4a1a15ed31.webp?v=1752476484","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7945717b6660263519e38d80adbeab062b4c88c6.webp?v=1752476485","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/260e53fd764814c20712dd5e044cb716a5bd0b55.webp?v=1752476485","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3159ff8a5ca17a76cde6431820652e2de6bd7a4.webp?v=1752476486","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e06d8d19a195613e4304f45ab3cb8ba3e3b9b592.webp?v=1752476487"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c2fcfd283167e3ebd3a3e87db9d5a8b6377355b.webp?v=1752476481","options":["color"],"media":[{"alt":null,"id":25817183715427,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c2fcfd283167e3ebd3a3e87db9d5a8b6377355b.webp?v=1752476481"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c2fcfd283167e3ebd3a3e87db9d5a8b6377355b.webp?v=1752476481","width":2000},{"alt":null,"id":25817183879267,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99fc98c26393894c630439dcbbb16f6d9116a64e.webp?v=1752476482"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99fc98c26393894c630439dcbbb16f6d9116a64e.webp?v=1752476482","width":2000},{"alt":null,"id":25817183977571,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2edd20199192159e9ac60a74422cf43f66739b0f.webp?v=1752476483"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2edd20199192159e9ac60a74422cf43f66739b0f.webp?v=1752476483","width":2000},{"alt":null,"id":25817184141411,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86ad56071c1d7878feca986b0e87a5b9cd537915.webp?v=1752476483"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86ad56071c1d7878feca986b0e87a5b9cd537915.webp?v=1752476483","width":2000},{"alt":null,"id":25817184305251,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/320a1eeb6b9187780e2193528dab473d7994557c.webp?v=1752476484"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/320a1eeb6b9187780e2193528dab473d7994557c.webp?v=1752476484","width":2000},{"alt":null,"id":25817184501859,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89eebcfffa49773141dc7cd9b4bd8e4a1a15ed31.webp?v=1752476484"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89eebcfffa49773141dc7cd9b4bd8e4a1a15ed31.webp?v=1752476484","width":2000},{"alt":null,"id":25817184731235,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7945717b6660263519e38d80adbeab062b4c88c6.webp?v=1752476485"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7945717b6660263519e38d80adbeab062b4c88c6.webp?v=1752476485","width":2000},{"alt":null,"id":25817184993379,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/260e53fd764814c20712dd5e044cb716a5bd0b55.webp?v=1752476485"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/260e53fd764814c20712dd5e044cb716a5bd0b55.webp?v=1752476485","width":2000},{"alt":null,"id":25817185222755,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3159ff8a5ca17a76cde6431820652e2de6bd7a4.webp?v=1752476486"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3159ff8a5ca17a76cde6431820652e2de6bd7a4.webp?v=1752476486","width":2000},{"alt":null,"id":25817185419363,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e06d8d19a195613e4304f45ab3cb8ba3e3b9b592.webp?v=1752476487"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e06d8d19a195613e4304f45ab3cb8ba3e3b9b592.webp?v=1752476487","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43525385977955,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-YN35","requires_shipping":true,"taxable":true,"featured_image":{"id":34180111204451,"product_id":7836979527779,"position":1,"created_at":"2025-07-14T15:01:19+08:00","updated_at":"2025-07-14T15:01:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c2fcfd283167e3ebd3a3e87db9d5a8b6377355b.webp?v=1752476481","variant_ids":[43525385977955]},"available":true,"name":"iPhone 15 Plus SolidX OSAMU GOODS 多彩系列-角色大集合 - 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-YN35","featured_media":{"alt":null,"id":25817183715427,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c2fcfd283167e3ebd3a3e87db9d5a8b6377355b.webp?v=1752476481"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43525401313379,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-YN35","requires_shipping":true,"taxable":true,"featured_image":{"id":34180113596515,"product_id":7836979527779,"position":7,"created_at":"2025-07-14T15:01:23+08:00","updated_at":"2025-07-14T15:01:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7945717b6660263519e38d80adbeab062b4c88c6.webp?v=1752476485","variant_ids":[43525401313379]},"available":true,"name":"iPhone 15 Plus SolidX OSAMU GOODS 多彩系列-角色大集合 - 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-YN35","featured_media":{"alt":null,"id":25817184731235,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7945717b6660263519e38d80adbeab062b4c88c6.webp?v=1752476485"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43525385977955,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-YN35","requires_shipping":true,"taxable":true,"featured_image":{"id":34180111204451,"product_id":7836979527779,"position":1,"created_at":"2025-07-14T15:01:19+08:00","updated_at":"2025-07-14T15:01:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c2fcfd283167e3ebd3a3e87db9d5a8b6377355b.webp?v=1752476481","variant_ids":[43525385977955]},"available":true,"name":"iPhone 15 Plus SolidX OSAMU GOODS 多彩系列-角色大集合 - 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-YN35","featured_media":{"alt":null,"id":25817183715427,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c2fcfd283167e3ebd3a3e87db9d5a8b6377355b.webp?v=1752476481"}},"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: "停產" }