$product = {"id":7155879641187,"title":"犀牛盾SolidSuit手機殼 - iPhone XS - 【聯名設計款】 - 1G - yaya款","handle":"iphone-xs-solidsuit-classic-iv09","description":null,"published_at":"2024-01-24T16:46:35+08:00","created_at":"2024-01-23T17:03:00+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師SolidSuit專區1G","tags":["20%","20240304-reseller-\u003ereplace_to-","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-1chun","device-iPhone XS","merge","reseller-solidsuit-1chun","solidsuit","Top50","type-Solidsuit"],"price":83000,"price_min":83000,"price_max":83000,"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":41197094666339,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0106452-IV09","requires_shipping":true,"taxable":true,"featured_image":{"id":30837454536803,"product_id":7155879641187,"position":9,"created_at":"2024-01-24T11:11:32+08:00","updated_at":"2024-01-24T11:11:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89df37a4b10dee4266e3bf4b26299c98d27913c5_9ee72678-28f7-46e2-999c-fad06c962ba0.webp?v=1706065892","variant_ids":[41197094666339]},"available":true,"name":"犀牛盾SolidSuit手機殼 - iPhone XS - 【聯名設計款】 - 1G - yaya款 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":830,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":23208372240483,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89df37a4b10dee4266e3bf4b26299c98d27913c5_9ee72678-28f7-46e2-999c-fad06c962ba0.webp?v=1706065892"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41197095092323,"title":"Sage Green","option1":"Sage Green","option2":null,"option3":null,"sku":"SST01064P2-IV09","requires_shipping":true,"taxable":true,"featured_image":{"id":30837453717603,"product_id":7155879641187,"position":7,"created_at":"2024-01-24T11:11:27+08:00","updated_at":"2024-01-24T11:11:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6794b79f28024c16a361e892b90a71551b7c43a3_0352f20b-8106-4699-a7c2-87613e7f1ef6.webp?v=1706065887","variant_ids":[41197095092323]},"available":true,"name":"犀牛盾SolidSuit手機殼 - iPhone XS - 【聯名設計款】 - 1G - yaya款 - Sage Green","public_title":"Sage Green","options":["Sage Green"],"price":83000,"weight":830,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":23208371421283,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6794b79f28024c16a361e892b90a71551b7c43a3_0352f20b-8106-4699-a7c2-87613e7f1ef6.webp?v=1706065887"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/780070107c4e038a686c69174bef992fd9f03bc7_ea52b721-6ba8-4e34-bce0-9ef0ee2b9341.webp?v=1706000583","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89df37a4b10dee4266e3bf4b26299c98d27913c5_fbf4ff75-32e1-45e6-a984-22672e7efefd.webp?v=1706000587","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dcae2ae5d2d1af9222422d8c08842026cb10c8c7_75fe5064-0eb7-42cb-a9a7-d3c66ddfaf03.webp?v=1706000590","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f9856a7cd8dda343e7c99b18aa0079d707df6cd_76a4bb2d-1e60-4205-909f-049b4c739aa1.webp?v=1706000594","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5b58ba4a672de43d8db6bfa149c6707f26acb0f_bee1b07a-2e44-4886-96d2-44f9f08c4973.webp?v=1706000597","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/780070107c4e038a686c69174bef992fd9f03bc7_fef9908b-ef0e-42e7-a274-78cf9d9422fb.webp?v=1706065885","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6794b79f28024c16a361e892b90a71551b7c43a3_0352f20b-8106-4699-a7c2-87613e7f1ef6.webp?v=1706065887","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6befa09cb0a3349e21aa45a45c5b9d09ebfc5941_c7e5bb52-d1d5-475c-8fd7-a0fc3c574579.webp?v=1706065890","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89df37a4b10dee4266e3bf4b26299c98d27913c5_9ee72678-28f7-46e2-999c-fad06c962ba0.webp?v=1706065892","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5b58ba4a672de43d8db6bfa149c6707f26acb0f_280eda6a-ef18-4680-91bb-5553c9fed376.webp?v=1706065894","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dcae2ae5d2d1af9222422d8c08842026cb10c8c7_48b064a2-791d-4ab3-8fac-dccfb06cc719.webp?v=1706065897","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f9856a7cd8dda343e7c99b18aa0079d707df6cd_e07cd4c7-3188-4c1c-92af-39f74d67dcca.webp?v=1706065899"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/780070107c4e038a686c69174bef992fd9f03bc7_ea52b721-6ba8-4e34-bce0-9ef0ee2b9341.webp?v=1706000583","options":["color"],"media":[{"alt":null,"id":23201918419043,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/780070107c4e038a686c69174bef992fd9f03bc7_ea52b721-6ba8-4e34-bce0-9ef0ee2b9341.webp?v=1706000583"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/780070107c4e038a686c69174bef992fd9f03bc7_ea52b721-6ba8-4e34-bce0-9ef0ee2b9341.webp?v=1706000583","width":2000},{"alt":null,"id":23201919631459,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89df37a4b10dee4266e3bf4b26299c98d27913c5_fbf4ff75-32e1-45e6-a984-22672e7efefd.webp?v=1706000587"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89df37a4b10dee4266e3bf4b26299c98d27913c5_fbf4ff75-32e1-45e6-a984-22672e7efefd.webp?v=1706000587","width":2000},{"alt":null,"id":23201920319587,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dcae2ae5d2d1af9222422d8c08842026cb10c8c7_75fe5064-0eb7-42cb-a9a7-d3c66ddfaf03.webp?v=1706000590"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dcae2ae5d2d1af9222422d8c08842026cb10c8c7_75fe5064-0eb7-42cb-a9a7-d3c66ddfaf03.webp?v=1706000590","width":2000},{"alt":null,"id":23201921532003,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f9856a7cd8dda343e7c99b18aa0079d707df6cd_76a4bb2d-1e60-4205-909f-049b4c739aa1.webp?v=1706000594"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f9856a7cd8dda343e7c99b18aa0079d707df6cd_76a4bb2d-1e60-4205-909f-049b4c739aa1.webp?v=1706000594","width":2000},{"alt":null,"id":23201922089059,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5b58ba4a672de43d8db6bfa149c6707f26acb0f_bee1b07a-2e44-4886-96d2-44f9f08c4973.webp?v=1706000597"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5b58ba4a672de43d8db6bfa149c6707f26acb0f_bee1b07a-2e44-4886-96d2-44f9f08c4973.webp?v=1706000597","width":2000},{"alt":null,"id":23208370896995,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/780070107c4e038a686c69174bef992fd9f03bc7_fef9908b-ef0e-42e7-a274-78cf9d9422fb.webp?v=1706065885"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/780070107c4e038a686c69174bef992fd9f03bc7_fef9908b-ef0e-42e7-a274-78cf9d9422fb.webp?v=1706065885","width":2000},{"alt":null,"id":23208371421283,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6794b79f28024c16a361e892b90a71551b7c43a3_0352f20b-8106-4699-a7c2-87613e7f1ef6.webp?v=1706065887"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6794b79f28024c16a361e892b90a71551b7c43a3_0352f20b-8106-4699-a7c2-87613e7f1ef6.webp?v=1706065887","width":2000},{"alt":null,"id":23208371748963,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6befa09cb0a3349e21aa45a45c5b9d09ebfc5941_c7e5bb52-d1d5-475c-8fd7-a0fc3c574579.webp?v=1706065890"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6befa09cb0a3349e21aa45a45c5b9d09ebfc5941_c7e5bb52-d1d5-475c-8fd7-a0fc3c574579.webp?v=1706065890","width":2000},{"alt":null,"id":23208372240483,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89df37a4b10dee4266e3bf4b26299c98d27913c5_9ee72678-28f7-46e2-999c-fad06c962ba0.webp?v=1706065892"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89df37a4b10dee4266e3bf4b26299c98d27913c5_9ee72678-28f7-46e2-999c-fad06c962ba0.webp?v=1706065892","width":2000},{"alt":null,"id":23208372797539,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5b58ba4a672de43d8db6bfa149c6707f26acb0f_280eda6a-ef18-4680-91bb-5553c9fed376.webp?v=1706065894"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5b58ba4a672de43d8db6bfa149c6707f26acb0f_280eda6a-ef18-4680-91bb-5553c9fed376.webp?v=1706065894","width":2000},{"alt":null,"id":23208373747811,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dcae2ae5d2d1af9222422d8c08842026cb10c8c7_48b064a2-791d-4ab3-8fac-dccfb06cc719.webp?v=1706065897"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dcae2ae5d2d1af9222422d8c08842026cb10c8c7_48b064a2-791d-4ab3-8fac-dccfb06cc719.webp?v=1706065897","width":2000},{"alt":null,"id":23208374534243,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f9856a7cd8dda343e7c99b18aa0079d707df6cd_e07cd4c7-3188-4c1c-92af-39f74d67dcca.webp?v=1706065899"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f9856a7cd8dda343e7c99b18aa0079d707df6cd_e07cd4c7-3188-4c1c-92af-39f74d67dcca.webp?v=1706065899","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41197094666339,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0106452-IV09","requires_shipping":true,"taxable":true,"featured_image":{"id":30837454536803,"product_id":7155879641187,"position":9,"created_at":"2024-01-24T11:11:32+08:00","updated_at":"2024-01-24T11:11:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89df37a4b10dee4266e3bf4b26299c98d27913c5_9ee72678-28f7-46e2-999c-fad06c962ba0.webp?v=1706065892","variant_ids":[41197094666339]},"available":true,"name":"犀牛盾SolidSuit手機殼 - iPhone XS - 【聯名設計款】 - 1G - yaya款 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":830,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":23208372240483,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89df37a4b10dee4266e3bf4b26299c98d27913c5_9ee72678-28f7-46e2-999c-fad06c962ba0.webp?v=1706065892"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41197095092323,"title":"Sage Green","option1":"Sage Green","option2":null,"option3":null,"sku":"SST01064P2-IV09","requires_shipping":true,"taxable":true,"featured_image":{"id":30837453717603,"product_id":7155879641187,"position":7,"created_at":"2024-01-24T11:11:27+08:00","updated_at":"2024-01-24T11:11:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6794b79f28024c16a361e892b90a71551b7c43a3_0352f20b-8106-4699-a7c2-87613e7f1ef6.webp?v=1706065887","variant_ids":[41197095092323]},"available":true,"name":"犀牛盾SolidSuit手機殼 - iPhone XS - 【聯名設計款】 - 1G - yaya款 - Sage Green","public_title":"Sage Green","options":["Sage Green"],"price":83000,"weight":830,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":23208371421283,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6794b79f28024c16a361e892b90a71551b7c43a3_0352f20b-8106-4699-a7c2-87613e7f1ef6.webp?v=1706065887"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41197094666339,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0106452-IV09","requires_shipping":true,"taxable":true,"featured_image":{"id":30837454536803,"product_id":7155879641187,"position":9,"created_at":"2024-01-24T11:11:32+08:00","updated_at":"2024-01-24T11:11:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89df37a4b10dee4266e3bf4b26299c98d27913c5_9ee72678-28f7-46e2-999c-fad06c962ba0.webp?v=1706065892","variant_ids":[41197094666339]},"available":true,"name":"犀牛盾SolidSuit手機殼 - iPhone XS - 【聯名設計款】 - 1G - yaya款 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":830,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":23208372240483,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89df37a4b10dee4266e3bf4b26299c98d27913c5_9ee72678-28f7-46e2-999c-fad06c962ba0.webp?v=1706065892"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $type = ""; var sellingStatus if ($isMerge) { $(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: "停產" }