$product = {"id":7824398319715,"title":"iPhone 15 Plus SolidX One Piece 未來島蛋頭篇 - 大集合","handle":"iphone-15-plus-solidx-om130","description":null,"published_at":"2025-07-01T17:55:22+08:00","created_at":"2025-06-20T17:52:41+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-one-piece","device-iPhone 15 Plus","merge","reseller-one-piece"],"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":43478791422051,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-OM130","requires_shipping":true,"taxable":true,"featured_image":{"id":34322699452515,"product_id":7824398319715,"position":9,"created_at":"2025-08-13T14:31:59+08:00","updated_at":"2025-08-13T14:32:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2c8c26e5df81498699ae12a467b2fccc878f48d.webp?v=1755066721","variant_ids":[43478791422051]},"available":true,"name":"iPhone 15 Plus SolidX One Piece 未來島蛋頭篇 - 大集合 - 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-OM130","featured_media":{"alt":null,"id":25908055867491,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2c8c26e5df81498699ae12a467b2fccc878f48d.webp?v=1755066721"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43478793781347,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"NST01296O8-OM130","requires_shipping":true,"taxable":true,"featured_image":{"id":34322697027683,"product_id":7824398319715,"position":3,"created_at":"2025-08-13T14:31:56+08:00","updated_at":"2025-08-13T14:31:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/492dfd49a2f59b45e263c6313e759e4fd5e4cd6a.webp?v=1755066718","variant_ids":[43478793781347]},"available":true,"name":"iPhone 15 Plus SolidX One Piece 未來島蛋頭篇 - 大集合 - 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-OM130","featured_media":{"alt":null,"id":25908054786147,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/492dfd49a2f59b45e263c6313e759e4fd5e4cd6a.webp?v=1755066718"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43478793977955,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-OM130","requires_shipping":true,"taxable":true,"featured_image":{"id":34322697781347,"product_id":7824398319715,"position":5,"created_at":"2025-08-13T14:31:57+08:00","updated_at":"2025-08-13T14:31:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/063cd7c8afd3e7b82e85be0139fd363809696751.webp?v=1755066719","variant_ids":[43478793977955]},"available":true,"name":"iPhone 15 Plus SolidX One Piece 未來島蛋頭篇 - 大集合 - 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-OM130","featured_media":{"alt":null,"id":25908055081059,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/063cd7c8afd3e7b82e85be0139fd363809696751.webp?v=1755066719"}},"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-OM130.png?v=1750413163","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-OM130_eab61fa5-818f-4c63-8146-0a64bd2b2669.png?v=1750821346","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/492dfd49a2f59b45e263c6313e759e4fd5e4cd6a.webp?v=1755066718","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a12e0d30297c9901739b7ddd2e95d12f6982d21.webp?v=1755066719","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/063cd7c8afd3e7b82e85be0139fd363809696751.webp?v=1755066719","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9be14fa07d0ce4796087019e864ab7ba8ddc1f9.webp?v=1755066720","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a0e1812eb7d2cf64b65f9c7bccaf85154c36772.webp?v=1755066720","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16f355f2a73888fc3f819ae40c305ff1b69265da.webp?v=1755066721","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2c8c26e5df81498699ae12a467b2fccc878f48d.webp?v=1755066721","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30e8a21b13db18ca0fa6e3246f93084c1c721062.webp?v=1755066722","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/849228b5664a557dd61c97376ea69b4fb20d896a.webp?v=1755066722","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4d4b259c27b9d5abc987d305a990ca09cdd795e.webp?v=1755066723"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-296-OM130.png?v=1750413163","options":["color"],"media":[{"alt":null,"id":25722030981219,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-296-OM130.png?v=1750413163"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-296-OM130.png?v=1750413163","width":2000},{"alt":null,"id":25735275774051,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-OM130_eab61fa5-818f-4c63-8146-0a64bd2b2669.png?v=1750821346"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-OM130_eab61fa5-818f-4c63-8146-0a64bd2b2669.png?v=1750821346","width":2000},{"alt":null,"id":25908054786147,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/492dfd49a2f59b45e263c6313e759e4fd5e4cd6a.webp?v=1755066718"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/492dfd49a2f59b45e263c6313e759e4fd5e4cd6a.webp?v=1755066718","width":2000},{"alt":null,"id":25908054949987,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a12e0d30297c9901739b7ddd2e95d12f6982d21.webp?v=1755066719"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a12e0d30297c9901739b7ddd2e95d12f6982d21.webp?v=1755066719","width":2000},{"alt":null,"id":25908055081059,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/063cd7c8afd3e7b82e85be0139fd363809696751.webp?v=1755066719"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/063cd7c8afd3e7b82e85be0139fd363809696751.webp?v=1755066719","width":2000},{"alt":null,"id":25908055212131,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9be14fa07d0ce4796087019e864ab7ba8ddc1f9.webp?v=1755066720"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9be14fa07d0ce4796087019e864ab7ba8ddc1f9.webp?v=1755066720","width":2000},{"alt":null,"id":25908055408739,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a0e1812eb7d2cf64b65f9c7bccaf85154c36772.webp?v=1755066720"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a0e1812eb7d2cf64b65f9c7bccaf85154c36772.webp?v=1755066720","width":2000},{"alt":null,"id":25908055670883,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16f355f2a73888fc3f819ae40c305ff1b69265da.webp?v=1755066721"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16f355f2a73888fc3f819ae40c305ff1b69265da.webp?v=1755066721","width":2000},{"alt":null,"id":25908055867491,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2c8c26e5df81498699ae12a467b2fccc878f48d.webp?v=1755066721"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2c8c26e5df81498699ae12a467b2fccc878f48d.webp?v=1755066721","width":2000},{"alt":null,"id":25908056064099,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30e8a21b13db18ca0fa6e3246f93084c1c721062.webp?v=1755066722"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30e8a21b13db18ca0fa6e3246f93084c1c721062.webp?v=1755066722","width":2000},{"alt":null,"id":25908056359011,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/849228b5664a557dd61c97376ea69b4fb20d896a.webp?v=1755066722"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/849228b5664a557dd61c97376ea69b4fb20d896a.webp?v=1755066722","width":2000},{"alt":null,"id":25908056555619,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4d4b259c27b9d5abc987d305a990ca09cdd795e.webp?v=1755066723"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4d4b259c27b9d5abc987d305a990ca09cdd795e.webp?v=1755066723","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43478791422051,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-OM130","requires_shipping":true,"taxable":true,"featured_image":{"id":34322699452515,"product_id":7824398319715,"position":9,"created_at":"2025-08-13T14:31:59+08:00","updated_at":"2025-08-13T14:32:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2c8c26e5df81498699ae12a467b2fccc878f48d.webp?v=1755066721","variant_ids":[43478791422051]},"available":true,"name":"iPhone 15 Plus SolidX One Piece 未來島蛋頭篇 - 大集合 - 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-OM130","featured_media":{"alt":null,"id":25908055867491,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2c8c26e5df81498699ae12a467b2fccc878f48d.webp?v=1755066721"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43478793781347,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"NST01296O8-OM130","requires_shipping":true,"taxable":true,"featured_image":{"id":34322697027683,"product_id":7824398319715,"position":3,"created_at":"2025-08-13T14:31:56+08:00","updated_at":"2025-08-13T14:31:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/492dfd49a2f59b45e263c6313e759e4fd5e4cd6a.webp?v=1755066718","variant_ids":[43478793781347]},"available":true,"name":"iPhone 15 Plus SolidX One Piece 未來島蛋頭篇 - 大集合 - 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-OM130","featured_media":{"alt":null,"id":25908054786147,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/492dfd49a2f59b45e263c6313e759e4fd5e4cd6a.webp?v=1755066718"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43478793977955,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-OM130","requires_shipping":true,"taxable":true,"featured_image":{"id":34322697781347,"product_id":7824398319715,"position":5,"created_at":"2025-08-13T14:31:57+08:00","updated_at":"2025-08-13T14:31:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/063cd7c8afd3e7b82e85be0139fd363809696751.webp?v=1755066719","variant_ids":[43478793977955]},"available":true,"name":"iPhone 15 Plus SolidX One Piece 未來島蛋頭篇 - 大集合 - 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-OM130","featured_media":{"alt":null,"id":25908055081059,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/063cd7c8afd3e7b82e85be0139fd363809696751.webp?v=1755066719"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43478791422051,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-OM130","requires_shipping":true,"taxable":true,"featured_image":{"id":34322699452515,"product_id":7824398319715,"position":9,"created_at":"2025-08-13T14:31:59+08:00","updated_at":"2025-08-13T14:32:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2c8c26e5df81498699ae12a467b2fccc878f48d.webp?v=1755066721","variant_ids":[43478791422051]},"available":true,"name":"iPhone 15 Plus SolidX One Piece 未來島蛋頭篇 - 大集合 - 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-OM130","featured_media":{"alt":null,"id":25908055867491,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2c8c26e5df81498699ae12a467b2fccc878f48d.webp?v=1755066721"}},"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: "停產" }