$product = {"id":7164391391331,"title":"犀牛盾Clear (MagSafe 兼容) 防摔背蓋手機殼 - iPhone 14 Pro Max - 【聯名設計款】 - Look - 大自然的傑作(黃石國家公園)","handle":"iphone-14-pro-max-jellytint-magsafe-af12","description":null,"published_at":"2024-01-31T11:11:46+08:00","created_at":"2024-01-30T22:54:13+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 14 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":41237377056867,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MCN012630G-AF12","requires_shipping":true,"taxable":true,"featured_image":{"id":30868734574691,"product_id":7164391391331,"position":7,"created_at":"2024-01-30T22:54:32+08:00","updated_at":"2024-01-30T22:54:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82f435d692e50d724e2093c85ff7ec8e19740e12_2d9c7149-ae15-40b6-ab74-5c44841e95a3.webp?v=1706626472","variant_ids":[41237377056867]},"available":true,"name":"犀牛盾Clear (MagSafe 兼容) 防摔背蓋手機殼 - iPhone 14 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":"MCN012630G-AF12","featured_media":{"alt":null,"id":23240124596323,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82f435d692e50d724e2093c85ff7ec8e19740e12_2d9c7149-ae15-40b6-ab74-5c44841e95a3.webp?v=1706626472"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41237377122403,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"MCN012630I-AF12","requires_shipping":true,"taxable":true,"featured_image":{"id":30868733001827,"product_id":7164391391331,"position":5,"created_at":"2024-01-30T22:54:27+08:00","updated_at":"2024-01-30T22:54:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c006ad985200b076004a225e1d8512fb52c78f19_fbea63e6-1aa1-4b57-a104-27afcbee9627.webp?v=1706626467","variant_ids":[41237377122403]},"available":true,"name":"犀牛盾Clear (MagSafe 兼容) 防摔背蓋手機殼 - iPhone 14 Pro Max - 【聯名設計款】 - Look - 大自然的傑作(黃石國家公園) - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":148000,"weight":1350,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012630I-AF12","featured_media":{"alt":null,"id":23240122990691,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c006ad985200b076004a225e1d8512fb52c78f19_fbea63e6-1aa1-4b57-a104-27afcbee9627.webp?v=1706626467"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e2f2f2a7e1fc35d6afe3ee6ef3090dfb58444e3_c90cf697-af0a-469e-95c3-bb0fba211848.webp?v=1706626456","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6abe17bc974b3ad70c25b1683249033437a688f0_05da9646-9bec-49e9-b079-f7ebf9ad131a.webp?v=1706626458","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6da2108d201d8b5c0599a84ae70d2e26b23836af_68082d76-0434-4bdb-bd32-a8a14b7e7896.webp?v=1706626461","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97350267ab3183c28552e58e6442ec9b3421984f_04341835-775f-464a-947a-1dcd0eff7790.webp?v=1706626464","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c006ad985200b076004a225e1d8512fb52c78f19_fbea63e6-1aa1-4b57-a104-27afcbee9627.webp?v=1706626467","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81c914521882c9ff9ef17598bed1e297f22721ba_602a92af-8add-4234-a382-ace4d523da52.webp?v=1706626470","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82f435d692e50d724e2093c85ff7ec8e19740e12_2d9c7149-ae15-40b6-ab74-5c44841e95a3.webp?v=1706626472"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e2f2f2a7e1fc35d6afe3ee6ef3090dfb58444e3_c90cf697-af0a-469e-95c3-bb0fba211848.webp?v=1706626456","options":["color"],"media":[{"alt":null,"id":23240119779427,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e2f2f2a7e1fc35d6afe3ee6ef3090dfb58444e3_c90cf697-af0a-469e-95c3-bb0fba211848.webp?v=1706626456"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e2f2f2a7e1fc35d6afe3ee6ef3090dfb58444e3_c90cf697-af0a-469e-95c3-bb0fba211848.webp?v=1706626456","width":2000},{"alt":null,"id":23240120795235,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6abe17bc974b3ad70c25b1683249033437a688f0_05da9646-9bec-49e9-b079-f7ebf9ad131a.webp?v=1706626458"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6abe17bc974b3ad70c25b1683249033437a688f0_05da9646-9bec-49e9-b079-f7ebf9ad131a.webp?v=1706626458","width":2000},{"alt":null,"id":23240121647203,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6da2108d201d8b5c0599a84ae70d2e26b23836af_68082d76-0434-4bdb-bd32-a8a14b7e7896.webp?v=1706626461"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6da2108d201d8b5c0599a84ae70d2e26b23836af_68082d76-0434-4bdb-bd32-a8a14b7e7896.webp?v=1706626461","width":2000},{"alt":null,"id":23240122531939,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97350267ab3183c28552e58e6442ec9b3421984f_04341835-775f-464a-947a-1dcd0eff7790.webp?v=1706626464"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97350267ab3183c28552e58e6442ec9b3421984f_04341835-775f-464a-947a-1dcd0eff7790.webp?v=1706626464","width":2000},{"alt":null,"id":23240122990691,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c006ad985200b076004a225e1d8512fb52c78f19_fbea63e6-1aa1-4b57-a104-27afcbee9627.webp?v=1706626467"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c006ad985200b076004a225e1d8512fb52c78f19_fbea63e6-1aa1-4b57-a104-27afcbee9627.webp?v=1706626467","width":2000},{"alt":null,"id":23240123875427,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81c914521882c9ff9ef17598bed1e297f22721ba_602a92af-8add-4234-a382-ace4d523da52.webp?v=1706626470"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81c914521882c9ff9ef17598bed1e297f22721ba_602a92af-8add-4234-a382-ace4d523da52.webp?v=1706626470","width":2000},{"alt":null,"id":23240124596323,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82f435d692e50d724e2093c85ff7ec8e19740e12_2d9c7149-ae15-40b6-ab74-5c44841e95a3.webp?v=1706626472"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82f435d692e50d724e2093c85ff7ec8e19740e12_2d9c7149-ae15-40b6-ab74-5c44841e95a3.webp?v=1706626472","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41237377056867,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MCN012630G-AF12","requires_shipping":true,"taxable":true,"featured_image":{"id":30868734574691,"product_id":7164391391331,"position":7,"created_at":"2024-01-30T22:54:32+08:00","updated_at":"2024-01-30T22:54:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82f435d692e50d724e2093c85ff7ec8e19740e12_2d9c7149-ae15-40b6-ab74-5c44841e95a3.webp?v=1706626472","variant_ids":[41237377056867]},"available":true,"name":"犀牛盾Clear (MagSafe 兼容) 防摔背蓋手機殼 - iPhone 14 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":"MCN012630G-AF12","featured_media":{"alt":null,"id":23240124596323,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82f435d692e50d724e2093c85ff7ec8e19740e12_2d9c7149-ae15-40b6-ab74-5c44841e95a3.webp?v=1706626472"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41237377122403,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"MCN012630I-AF12","requires_shipping":true,"taxable":true,"featured_image":{"id":30868733001827,"product_id":7164391391331,"position":5,"created_at":"2024-01-30T22:54:27+08:00","updated_at":"2024-01-30T22:54:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c006ad985200b076004a225e1d8512fb52c78f19_fbea63e6-1aa1-4b57-a104-27afcbee9627.webp?v=1706626467","variant_ids":[41237377122403]},"available":true,"name":"犀牛盾Clear (MagSafe 兼容) 防摔背蓋手機殼 - iPhone 14 Pro Max - 【聯名設計款】 - Look - 大自然的傑作(黃石國家公園) - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":148000,"weight":1350,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012630I-AF12","featured_media":{"alt":null,"id":23240122990691,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c006ad985200b076004a225e1d8512fb52c78f19_fbea63e6-1aa1-4b57-a104-27afcbee9627.webp?v=1706626467"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41237377056867,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MCN012630G-AF12","requires_shipping":true,"taxable":true,"featured_image":{"id":30868734574691,"product_id":7164391391331,"position":7,"created_at":"2024-01-30T22:54:32+08:00","updated_at":"2024-01-30T22:54:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82f435d692e50d724e2093c85ff7ec8e19740e12_2d9c7149-ae15-40b6-ab74-5c44841e95a3.webp?v=1706626472","variant_ids":[41237377056867]},"available":true,"name":"犀牛盾Clear (MagSafe 兼容) 防摔背蓋手機殼 - iPhone 14 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":"MCN012630G-AF12","featured_media":{"alt":null,"id":23240124596323,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82f435d692e50d724e2093c85ff7ec8e19740e12_2d9c7149-ae15-40b6-ab74-5c44841e95a3.webp?v=1706626472"}},"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: "停產" }