$product = {"id":7931237302371,"title":"iPhone 15 Plus SolidX 白白日記 By Darylhochi 眾裏尋他 (彩色)","handle":"iphone-15-plus-solidx-ei78","description":null,"published_at":"2025-11-28T11:09:44+08:00","created_at":"2025-11-28T09:37:45+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-darylhochi","device-iPhone 15 Plus","merge","reseller-darylhochi"],"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":43860695449699,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-EI78","requires_shipping":true,"taxable":true,"featured_image":{"id":34861401866339,"product_id":7931237302371,"position":8,"created_at":"2025-11-28T09:56:50+08:00","updated_at":"2025-11-28T09:56:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/714607556b3e1333496ef6d408a0225727dccbc3_a5a012eb-ef45-4e4d-b40b-ac45bf50f622.webp?v=1764295012","variant_ids":[43860695449699]},"available":true,"name":"iPhone 15 Plus SolidX 白白日記 By Darylhochi 眾裏尋他 (彩色) - 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-EI78","featured_media":{"alt":null,"id":26425821528163,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/714607556b3e1333496ef6d408a0225727dccbc3_a5a012eb-ef45-4e4d-b40b-ac45bf50f622.webp?v=1764295012"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43860815282275,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-EI78","requires_shipping":true,"taxable":true,"featured_image":{"id":34861402194019,"product_id":7931237302371,"position":10,"created_at":"2025-11-28T09:56:51+08:00","updated_at":"2025-11-28T09:56:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59221fc539f895b6fdab14c13853cf80c93bb00e.webp?v=1764295013","variant_ids":[43860815282275]},"available":true,"name":"iPhone 15 Plus SolidX 白白日記 By Darylhochi 眾裏尋他 (彩色) - 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-EI78","featured_media":{"alt":null,"id":26425821823075,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59221fc539f895b6fdab14c13853cf80c93bb00e.webp?v=1764295013"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/714607556b3e1333496ef6d408a0225727dccbc3.webp?v=1764293872","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98e04668e5f49b76bf153299841c31ef9bb19195.webp?v=1764293872","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6007cf6e83cbd70ac7beba118b767e4456a2c144.webp?v=1764293875","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4bd2533588b439ad2134e9df6b5bf64bcdeb721.webp?v=1764293882","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fc6ad46b4908ef9d38be9ee70b01bf806ce49e7.webp?v=1764295012","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40ee4378a330062bf30ef177d81c0790bed80244.webp?v=1764295011","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1184b9543a7d5785181e5334aaab0f669ba6661.webp?v=1764295012","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/714607556b3e1333496ef6d408a0225727dccbc3_a5a012eb-ef45-4e4d-b40b-ac45bf50f622.webp?v=1764295012","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4bd2533588b439ad2134e9df6b5bf64bcdeb721_74c5b3a3-ee77-4483-ad60-eb0e1d5ee81f.webp?v=1764295012","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59221fc539f895b6fdab14c13853cf80c93bb00e.webp?v=1764295013","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/caf3347adf74aed8a457783c6b3b294733ff6fea.webp?v=1764295013","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98e04668e5f49b76bf153299841c31ef9bb19195_cbdb2630-41fb-4c1b-a4fe-51e326b1409d.webp?v=1764295014","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5d299e1d9d6bda88b3b73d046d83ef63f4c8fa0.webp?v=1764295014","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6007cf6e83cbd70ac7beba118b767e4456a2c144_0a99825c-e46d-430f-9678-c75e746a3dd0.webp?v=1764295015"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/714607556b3e1333496ef6d408a0225727dccbc3.webp?v=1764293872","options":["color"],"media":[{"alt":null,"id":26425655984227,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/714607556b3e1333496ef6d408a0225727dccbc3.webp?v=1764293872"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/714607556b3e1333496ef6d408a0225727dccbc3.webp?v=1764293872","width":2000},{"alt":null,"id":26425656115299,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98e04668e5f49b76bf153299841c31ef9bb19195.webp?v=1764293872"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98e04668e5f49b76bf153299841c31ef9bb19195.webp?v=1764293872","width":2000},{"alt":null,"id":26425656344675,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6007cf6e83cbd70ac7beba118b767e4456a2c144.webp?v=1764293875"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6007cf6e83cbd70ac7beba118b767e4456a2c144.webp?v=1764293875","width":2000},{"alt":null,"id":26425656836195,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4bd2533588b439ad2134e9df6b5bf64bcdeb721.webp?v=1764293882"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4bd2533588b439ad2134e9df6b5bf64bcdeb721.webp?v=1764293882","width":2000},{"alt":null,"id":26425821200483,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fc6ad46b4908ef9d38be9ee70b01bf806ce49e7.webp?v=1764295012"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fc6ad46b4908ef9d38be9ee70b01bf806ce49e7.webp?v=1764295012","width":2000},{"alt":null,"id":26425821364323,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40ee4378a330062bf30ef177d81c0790bed80244.webp?v=1764295011"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40ee4378a330062bf30ef177d81c0790bed80244.webp?v=1764295011","width":2000},{"alt":null,"id":26425821462627,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1184b9543a7d5785181e5334aaab0f669ba6661.webp?v=1764295012"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1184b9543a7d5785181e5334aaab0f669ba6661.webp?v=1764295012","width":2000},{"alt":null,"id":26425821528163,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/714607556b3e1333496ef6d408a0225727dccbc3_a5a012eb-ef45-4e4d-b40b-ac45bf50f622.webp?v=1764295012"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/714607556b3e1333496ef6d408a0225727dccbc3_a5a012eb-ef45-4e4d-b40b-ac45bf50f622.webp?v=1764295012","width":2000},{"alt":null,"id":26425821692003,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4bd2533588b439ad2134e9df6b5bf64bcdeb721_74c5b3a3-ee77-4483-ad60-eb0e1d5ee81f.webp?v=1764295012"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4bd2533588b439ad2134e9df6b5bf64bcdeb721_74c5b3a3-ee77-4483-ad60-eb0e1d5ee81f.webp?v=1764295012","width":2000},{"alt":null,"id":26425821823075,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59221fc539f895b6fdab14c13853cf80c93bb00e.webp?v=1764295013"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59221fc539f895b6fdab14c13853cf80c93bb00e.webp?v=1764295013","width":2000},{"alt":null,"id":26425822052451,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/caf3347adf74aed8a457783c6b3b294733ff6fea.webp?v=1764295013"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/caf3347adf74aed8a457783c6b3b294733ff6fea.webp?v=1764295013","width":2000},{"alt":null,"id":26425822576739,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98e04668e5f49b76bf153299841c31ef9bb19195_cbdb2630-41fb-4c1b-a4fe-51e326b1409d.webp?v=1764295014"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98e04668e5f49b76bf153299841c31ef9bb19195_cbdb2630-41fb-4c1b-a4fe-51e326b1409d.webp?v=1764295014","width":2000},{"alt":null,"id":26425822806115,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5d299e1d9d6bda88b3b73d046d83ef63f4c8fa0.webp?v=1764295014"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5d299e1d9d6bda88b3b73d046d83ef63f4c8fa0.webp?v=1764295014","width":2000},{"alt":null,"id":26425823330403,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6007cf6e83cbd70ac7beba118b767e4456a2c144_0a99825c-e46d-430f-9678-c75e746a3dd0.webp?v=1764295015"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6007cf6e83cbd70ac7beba118b767e4456a2c144_0a99825c-e46d-430f-9678-c75e746a3dd0.webp?v=1764295015","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43860695449699,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-EI78","requires_shipping":true,"taxable":true,"featured_image":{"id":34861401866339,"product_id":7931237302371,"position":8,"created_at":"2025-11-28T09:56:50+08:00","updated_at":"2025-11-28T09:56:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/714607556b3e1333496ef6d408a0225727dccbc3_a5a012eb-ef45-4e4d-b40b-ac45bf50f622.webp?v=1764295012","variant_ids":[43860695449699]},"available":true,"name":"iPhone 15 Plus SolidX 白白日記 By Darylhochi 眾裏尋他 (彩色) - 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-EI78","featured_media":{"alt":null,"id":26425821528163,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/714607556b3e1333496ef6d408a0225727dccbc3_a5a012eb-ef45-4e4d-b40b-ac45bf50f622.webp?v=1764295012"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43860815282275,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-EI78","requires_shipping":true,"taxable":true,"featured_image":{"id":34861402194019,"product_id":7931237302371,"position":10,"created_at":"2025-11-28T09:56:51+08:00","updated_at":"2025-11-28T09:56:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59221fc539f895b6fdab14c13853cf80c93bb00e.webp?v=1764295013","variant_ids":[43860815282275]},"available":true,"name":"iPhone 15 Plus SolidX 白白日記 By Darylhochi 眾裏尋他 (彩色) - 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-EI78","featured_media":{"alt":null,"id":26425821823075,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59221fc539f895b6fdab14c13853cf80c93bb00e.webp?v=1764295013"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43860695449699,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-EI78","requires_shipping":true,"taxable":true,"featured_image":{"id":34861401866339,"product_id":7931237302371,"position":8,"created_at":"2025-11-28T09:56:50+08:00","updated_at":"2025-11-28T09:56:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/714607556b3e1333496ef6d408a0225727dccbc3_a5a012eb-ef45-4e4d-b40b-ac45bf50f622.webp?v=1764295012","variant_ids":[43860695449699]},"available":true,"name":"iPhone 15 Plus SolidX 白白日記 By Darylhochi 眾裏尋他 (彩色) - 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-EI78","featured_media":{"alt":null,"id":26425821528163,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/714607556b3e1333496ef6d408a0225727dccbc3_a5a012eb-ef45-4e4d-b40b-ac45bf50f622.webp?v=1764295012"}},"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: "停產" }