$product = {"id":7824512811107,"title":"iPhone 15 Plus SolidX One Piece 未來島蛋頭篇 - Q版大集合","handle":"iphone-15-plus-solidx-om131","description":null,"published_at":"2025-07-01T17:39:06+08:00","created_at":"2025-06-20T18:04:57+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":43479924310115,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-OM131","requires_shipping":true,"taxable":true,"featured_image":{"id":34322611437667,"product_id":7824512811107,"position":11,"created_at":"2025-08-13T14:29:34+08:00","updated_at":"2025-08-13T14:29:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67c8a33fca660fcf418041355b1c4933e351ebdd.webp?v=1755066576","variant_ids":[43479924310115]},"available":true,"name":"iPhone 15 Plus SolidX One Piece 未來島蛋頭篇 - Q版大集合 - 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-OM131","featured_media":{"alt":null,"id":25908011696227,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67c8a33fca660fcf418041355b1c4933e351ebdd.webp?v=1755066576"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43479928963171,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-OM131","requires_shipping":true,"taxable":true,"featured_image":{"id":34322608816227,"product_id":7824512811107,"position":4,"created_at":"2025-08-13T14:29:30+08:00","updated_at":"2025-08-13T14:29:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0888367661b16c66505ddc3e9ccd87e30db9aca9.webp?v=1755066572","variant_ids":[43479928963171]},"available":true,"name":"iPhone 15 Plus SolidX One Piece 未來島蛋頭篇 - Q版大集合 - 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-OM131","featured_media":{"alt":null,"id":25908010156131,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0888367661b16c66505ddc3e9ccd87e30db9aca9.webp?v=1755066572"}},"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-OM131_80f95a25-8408-4b96-bb39-89e7ec0cfc1d.png?v=1750413900","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-OM131_1c2a1bc8-ec7f-4c4b-a989-8aecb7698270.png?v=1750820895","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4730aa8604a28d9887fd1a1f0601b7e65d49a10c.webp?v=1755066572","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0888367661b16c66505ddc3e9ccd87e30db9aca9.webp?v=1755066572","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8ba7f255e240840c8c64bdadf7ba07520a01e8d.webp?v=1755066572","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7f7bbbd66cf3d8138a4f2563c25144dffc1d962.webp?v=1755066573","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28e6f04b33c901e96e4a5d39d891181158ec2c65.webp?v=1755066574","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25cefb2ce961342aeedbe0fc494e850417300576.webp?v=1755066575","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6d46d38b33ec31a3df15c304b6f24d0342ca905.webp?v=1755066575","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c4ce6a4a7bef7b676b9909f88d103c7f21c1dfb.webp?v=1755066576","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67c8a33fca660fcf418041355b1c4933e351ebdd.webp?v=1755066576","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/204efb4e44732a54f8a1f7e9fed4b6e502e16f27.webp?v=1755066577"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-296-OM131_80f95a25-8408-4b96-bb39-89e7ec0cfc1d.png?v=1750413900","options":["color"],"media":[{"alt":null,"id":25722175586403,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-296-OM131_80f95a25-8408-4b96-bb39-89e7ec0cfc1d.png?v=1750413900"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-296-OM131_80f95a25-8408-4b96-bb39-89e7ec0cfc1d.png?v=1750413900","width":2000},{"alt":null,"id":25735190413411,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-OM131_1c2a1bc8-ec7f-4c4b-a989-8aecb7698270.png?v=1750820895"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-OM131_1c2a1bc8-ec7f-4c4b-a989-8aecb7698270.png?v=1750820895","width":2000},{"alt":null,"id":25908009992291,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4730aa8604a28d9887fd1a1f0601b7e65d49a10c.webp?v=1755066572"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4730aa8604a28d9887fd1a1f0601b7e65d49a10c.webp?v=1755066572","width":2000},{"alt":null,"id":25908010156131,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0888367661b16c66505ddc3e9ccd87e30db9aca9.webp?v=1755066572"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0888367661b16c66505ddc3e9ccd87e30db9aca9.webp?v=1755066572","width":2000},{"alt":null,"id":25908010418275,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8ba7f255e240840c8c64bdadf7ba07520a01e8d.webp?v=1755066572"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8ba7f255e240840c8c64bdadf7ba07520a01e8d.webp?v=1755066572","width":2000},{"alt":null,"id":25908010713187,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7f7bbbd66cf3d8138a4f2563c25144dffc1d962.webp?v=1755066573"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7f7bbbd66cf3d8138a4f2563c25144dffc1d962.webp?v=1755066573","width":2000},{"alt":null,"id":25908011073635,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28e6f04b33c901e96e4a5d39d891181158ec2c65.webp?v=1755066574"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28e6f04b33c901e96e4a5d39d891181158ec2c65.webp?v=1755066574","width":2000},{"alt":null,"id":25908011237475,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25cefb2ce961342aeedbe0fc494e850417300576.webp?v=1755066575"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25cefb2ce961342aeedbe0fc494e850417300576.webp?v=1755066575","width":2000},{"alt":null,"id":25908011368547,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6d46d38b33ec31a3df15c304b6f24d0342ca905.webp?v=1755066575"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6d46d38b33ec31a3df15c304b6f24d0342ca905.webp?v=1755066575","width":2000},{"alt":null,"id":25908011532387,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c4ce6a4a7bef7b676b9909f88d103c7f21c1dfb.webp?v=1755066576"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c4ce6a4a7bef7b676b9909f88d103c7f21c1dfb.webp?v=1755066576","width":2000},{"alt":null,"id":25908011696227,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67c8a33fca660fcf418041355b1c4933e351ebdd.webp?v=1755066576"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67c8a33fca660fcf418041355b1c4933e351ebdd.webp?v=1755066576","width":2000},{"alt":null,"id":25908011827299,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/204efb4e44732a54f8a1f7e9fed4b6e502e16f27.webp?v=1755066577"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/204efb4e44732a54f8a1f7e9fed4b6e502e16f27.webp?v=1755066577","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43479924310115,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-OM131","requires_shipping":true,"taxable":true,"featured_image":{"id":34322611437667,"product_id":7824512811107,"position":11,"created_at":"2025-08-13T14:29:34+08:00","updated_at":"2025-08-13T14:29:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67c8a33fca660fcf418041355b1c4933e351ebdd.webp?v=1755066576","variant_ids":[43479924310115]},"available":true,"name":"iPhone 15 Plus SolidX One Piece 未來島蛋頭篇 - Q版大集合 - 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-OM131","featured_media":{"alt":null,"id":25908011696227,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67c8a33fca660fcf418041355b1c4933e351ebdd.webp?v=1755066576"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43479928963171,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-OM131","requires_shipping":true,"taxable":true,"featured_image":{"id":34322608816227,"product_id":7824512811107,"position":4,"created_at":"2025-08-13T14:29:30+08:00","updated_at":"2025-08-13T14:29:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0888367661b16c66505ddc3e9ccd87e30db9aca9.webp?v=1755066572","variant_ids":[43479928963171]},"available":true,"name":"iPhone 15 Plus SolidX One Piece 未來島蛋頭篇 - Q版大集合 - 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-OM131","featured_media":{"alt":null,"id":25908010156131,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0888367661b16c66505ddc3e9ccd87e30db9aca9.webp?v=1755066572"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43479924310115,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-OM131","requires_shipping":true,"taxable":true,"featured_image":{"id":34322611437667,"product_id":7824512811107,"position":11,"created_at":"2025-08-13T14:29:34+08:00","updated_at":"2025-08-13T14:29:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67c8a33fca660fcf418041355b1c4933e351ebdd.webp?v=1755066576","variant_ids":[43479924310115]},"available":true,"name":"iPhone 15 Plus SolidX One Piece 未來島蛋頭篇 - Q版大集合 - 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-OM131","featured_media":{"alt":null,"id":25908011696227,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67c8a33fca660fcf418041355b1c4933e351ebdd.webp?v=1755066576"}},"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: "停產" }