$product = {"id":7164414197859,"title":"犀牛盾Clear (MagSafe 兼容) 防摔背蓋手機殼 - iPhone 15 Pro Max - 【聯名設計款】 - Look - 大自然的傑作(優勝美地國家公園)","handle":"iphone-15-pro-max-jellytint-magsafe-af13","description":null,"published_at":"2024-01-31T11:10:42+08:00","created_at":"2024-01-30T23:28:12+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師JellyTint專區-Look","tags":["20%","20240304-reseller-\u003ereplace_to-","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-look","device-iPhone 15 Pro Max","merge","reseller-jellytint-look","Top50","type-jellytint"],"price":148000,"price_min":148000,"price_max":148000,"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":41237526118499,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MCN012980G-AF13","requires_shipping":true,"taxable":true,"featured_image":{"id":30868912963683,"product_id":7164414197859,"position":5,"created_at":"2024-01-30T23:28:27+08:00","updated_at":"2024-01-30T23:28:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6362c67c2875e3bafc79b1a493125cf505da3704_0d85da6d-4e25-482e-885d-33563e7b1e9f.webp?v=1706628507","variant_ids":[41237526118499]},"available":true,"name":"犀牛盾Clear (MagSafe 兼容) 防摔背蓋手機殼 - iPhone 15 Pro Max - 【聯名設計款】 - Look - 大自然的傑作(優勝美地國家公園) - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":148000,"weight":1350,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012980G-AF13","featured_media":{"alt":null,"id":23240303902819,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6362c67c2875e3bafc79b1a493125cf505da3704_0d85da6d-4e25-482e-885d-33563e7b1e9f.webp?v=1706628507"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41237526216803,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"MCN012980J-AF13","requires_shipping":true,"taxable":true,"featured_image":{"id":30868913815651,"product_id":7164414197859,"position":6,"created_at":"2024-01-30T23:28:30+08:00","updated_at":"2024-01-30T23:28:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6bb1473990d52d35f406eea550b46b0ca12506c8_28ad3c20-8587-4359-8927-7b1b1e7a24ec.webp?v=1706628510","variant_ids":[41237526216803]},"available":true,"name":"犀牛盾Clear (MagSafe 兼容) 防摔背蓋手機殼 - iPhone 15 Pro Max - 【聯名設計款】 - Look - 大自然的傑作(優勝美地國家公園) - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":148000,"weight":1350,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012980J-AF13","featured_media":{"alt":null,"id":23240304754787,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6bb1473990d52d35f406eea550b46b0ca12506c8_28ad3c20-8587-4359-8927-7b1b1e7a24ec.webp?v=1706628510"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3ebde1441ef20dbc3711c001548b0e9c5525b8a_ad3b4155-b20e-4b5c-a2f0-0111f386f314.webp?v=1706628495","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd23e543de6e92ed04a2d809bab5f38e51a7c76c_fbc121be-6053-49b1-8c0f-dcf5a983fe38.webp?v=1706628498","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d05bad774e0d3b3fa0538e1105d0a8c774bfd27e_82669363-970e-4642-b4e9-03c59ab8bfdf.webp?v=1706628500","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/deebea251801613a8afb950aefbe67528902ad0f_89e0b238-7b7c-47d0-a576-bf6635673995.webp?v=1706628504","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6362c67c2875e3bafc79b1a493125cf505da3704_0d85da6d-4e25-482e-885d-33563e7b1e9f.webp?v=1706628507","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6bb1473990d52d35f406eea550b46b0ca12506c8_28ad3c20-8587-4359-8927-7b1b1e7a24ec.webp?v=1706628510","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e5caaef7c28a0854d997b9b6eaa201439ef715b_c7a1f948-e97b-4252-bd9e-183e903f18e0.webp?v=1706628514"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3ebde1441ef20dbc3711c001548b0e9c5525b8a_ad3b4155-b20e-4b5c-a2f0-0111f386f314.webp?v=1706628495","options":["color"],"media":[{"alt":null,"id":23240300200035,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3ebde1441ef20dbc3711c001548b0e9c5525b8a_ad3b4155-b20e-4b5c-a2f0-0111f386f314.webp?v=1706628495"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3ebde1441ef20dbc3711c001548b0e9c5525b8a_ad3b4155-b20e-4b5c-a2f0-0111f386f314.webp?v=1706628495","width":2000},{"alt":null,"id":23240301084771,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd23e543de6e92ed04a2d809bab5f38e51a7c76c_fbc121be-6053-49b1-8c0f-dcf5a983fe38.webp?v=1706628498"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd23e543de6e92ed04a2d809bab5f38e51a7c76c_fbc121be-6053-49b1-8c0f-dcf5a983fe38.webp?v=1706628498","width":2000},{"alt":null,"id":23240301838435,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d05bad774e0d3b3fa0538e1105d0a8c774bfd27e_82669363-970e-4642-b4e9-03c59ab8bfdf.webp?v=1706628500"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d05bad774e0d3b3fa0538e1105d0a8c774bfd27e_82669363-970e-4642-b4e9-03c59ab8bfdf.webp?v=1706628500","width":2000},{"alt":null,"id":23240303050851,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/deebea251801613a8afb950aefbe67528902ad0f_89e0b238-7b7c-47d0-a576-bf6635673995.webp?v=1706628504"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/deebea251801613a8afb950aefbe67528902ad0f_89e0b238-7b7c-47d0-a576-bf6635673995.webp?v=1706628504","width":2000},{"alt":null,"id":23240303902819,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6362c67c2875e3bafc79b1a493125cf505da3704_0d85da6d-4e25-482e-885d-33563e7b1e9f.webp?v=1706628507"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6362c67c2875e3bafc79b1a493125cf505da3704_0d85da6d-4e25-482e-885d-33563e7b1e9f.webp?v=1706628507","width":2000},{"alt":null,"id":23240304754787,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6bb1473990d52d35f406eea550b46b0ca12506c8_28ad3c20-8587-4359-8927-7b1b1e7a24ec.webp?v=1706628510"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6bb1473990d52d35f406eea550b46b0ca12506c8_28ad3c20-8587-4359-8927-7b1b1e7a24ec.webp?v=1706628510","width":2000},{"alt":null,"id":23240305639523,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e5caaef7c28a0854d997b9b6eaa201439ef715b_c7a1f948-e97b-4252-bd9e-183e903f18e0.webp?v=1706628514"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e5caaef7c28a0854d997b9b6eaa201439ef715b_c7a1f948-e97b-4252-bd9e-183e903f18e0.webp?v=1706628514","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41237526118499,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MCN012980G-AF13","requires_shipping":true,"taxable":true,"featured_image":{"id":30868912963683,"product_id":7164414197859,"position":5,"created_at":"2024-01-30T23:28:27+08:00","updated_at":"2024-01-30T23:28:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6362c67c2875e3bafc79b1a493125cf505da3704_0d85da6d-4e25-482e-885d-33563e7b1e9f.webp?v=1706628507","variant_ids":[41237526118499]},"available":true,"name":"犀牛盾Clear (MagSafe 兼容) 防摔背蓋手機殼 - iPhone 15 Pro Max - 【聯名設計款】 - Look - 大自然的傑作(優勝美地國家公園) - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":148000,"weight":1350,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012980G-AF13","featured_media":{"alt":null,"id":23240303902819,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6362c67c2875e3bafc79b1a493125cf505da3704_0d85da6d-4e25-482e-885d-33563e7b1e9f.webp?v=1706628507"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41237526216803,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"MCN012980J-AF13","requires_shipping":true,"taxable":true,"featured_image":{"id":30868913815651,"product_id":7164414197859,"position":6,"created_at":"2024-01-30T23:28:30+08:00","updated_at":"2024-01-30T23:28:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6bb1473990d52d35f406eea550b46b0ca12506c8_28ad3c20-8587-4359-8927-7b1b1e7a24ec.webp?v=1706628510","variant_ids":[41237526216803]},"available":true,"name":"犀牛盾Clear (MagSafe 兼容) 防摔背蓋手機殼 - iPhone 15 Pro Max - 【聯名設計款】 - Look - 大自然的傑作(優勝美地國家公園) - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":148000,"weight":1350,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012980J-AF13","featured_media":{"alt":null,"id":23240304754787,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6bb1473990d52d35f406eea550b46b0ca12506c8_28ad3c20-8587-4359-8927-7b1b1e7a24ec.webp?v=1706628510"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41237526118499,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MCN012980G-AF13","requires_shipping":true,"taxable":true,"featured_image":{"id":30868912963683,"product_id":7164414197859,"position":5,"created_at":"2024-01-30T23:28:27+08:00","updated_at":"2024-01-30T23:28:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6362c67c2875e3bafc79b1a493125cf505da3704_0d85da6d-4e25-482e-885d-33563e7b1e9f.webp?v=1706628507","variant_ids":[41237526118499]},"available":true,"name":"犀牛盾Clear (MagSafe 兼容) 防摔背蓋手機殼 - iPhone 15 Pro Max - 【聯名設計款】 - Look - 大自然的傑作(優勝美地國家公園) - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":148000,"weight":1350,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012980G-AF13","featured_media":{"alt":null,"id":23240303902819,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6362c67c2875e3bafc79b1a493125cf505da3704_0d85da6d-4e25-482e-885d-33563e7b1e9f.webp?v=1706628507"}},"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: "停產" }