$product = {"id":7164391784547,"title":"犀牛盾Clear (MagSafe 兼容) 防摔背蓋手機殼 - iPhone 14 Pro Max - 【聯名設計款】 - Snoopy 史努比 - 冰淇淋甜筒","handle":"iphone-14-pro-max-jellytint-magsafe-pl59","description":null,"published_at":"2024-01-30T22:54:43+08:00","created_at":"2024-01-30T22:54:26+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師JellyTint專區-Snoopy 史努比","tags":["20%","20240304-reseller-\u003ereplace_to-","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-snoopy","device-iPhone 14 Pro Max","merge","reseller-jellytint-snoopy","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":41237378760803,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MCN012630G-PL59","requires_shipping":true,"taxable":true,"featured_image":{"id":30868733689955,"product_id":7164391784547,"position":1,"created_at":"2024-01-30T22:54:29+08:00","updated_at":"2024-01-30T22:54:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6f4290a1a79090c17333b6603b22891b07f5c56_1011ad18-2c4d-492d-8af1-6d605e52c737.webp?v=1706626469","variant_ids":[41237378760803]},"available":true,"name":"犀牛盾Clear (MagSafe 兼容) 防摔背蓋手機殼 - iPhone 14 Pro Max - 【聯名設計款】 - Snoopy 史努比 - 冰淇淋甜筒 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":148000,"weight":1680,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012630G-PL59","featured_media":{"alt":null,"id":23240123678819,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6f4290a1a79090c17333b6603b22891b07f5c56_1011ad18-2c4d-492d-8af1-6d605e52c737.webp?v=1706626469"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41237378826339,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"MCN012630I-PL59","requires_shipping":true,"taxable":true,"featured_image":{"id":30868736999523,"product_id":7164391784547,"position":5,"created_at":"2024-01-30T22:54:40+08:00","updated_at":"2024-01-30T22:54:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/096893d7ecc9347f39508fabd4b61917076ced66_19128dd0-c985-4e6d-bd7f-1de329ed6550.webp?v=1706626480","variant_ids":[41237378826339]},"available":true,"name":"犀牛盾Clear (MagSafe 兼容) 防摔背蓋手機殼 - iPhone 14 Pro Max - 【聯名設計款】 - Snoopy 史努比 - 冰淇淋甜筒 - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":148000,"weight":1680,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012630I-PL59","featured_media":{"alt":null,"id":23240127021155,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/096893d7ecc9347f39508fabd4b61917076ced66_19128dd0-c985-4e6d-bd7f-1de329ed6550.webp?v=1706626480"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6f4290a1a79090c17333b6603b22891b07f5c56_1011ad18-2c4d-492d-8af1-6d605e52c737.webp?v=1706626469","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c41f43b07666093ef13c1b7c92ded4a851c679a2_6235e9e9-afae-4013-949a-ec6654142974.webp?v=1706626472","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2408106a81fd232d11496262560e210f83b7606_017402a8-a4fc-4c27-bb9e-9031964fc9db.webp?v=1706626474","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c56796ace46e7ddda7cf3746768edde934e3c8e_f13d6289-cc3c-4ebb-b0ad-af6ef931a564.webp?v=1706626477","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/096893d7ecc9347f39508fabd4b61917076ced66_19128dd0-c985-4e6d-bd7f-1de329ed6550.webp?v=1706626480","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db47f8d1b98ff7c6877aafdc012392ee9c5e2e9d_9b69ee29-5c36-4fec-8f58-4bd8ed2f820b.webp?v=1706626482"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6f4290a1a79090c17333b6603b22891b07f5c56_1011ad18-2c4d-492d-8af1-6d605e52c737.webp?v=1706626469","options":["color"],"media":[{"alt":null,"id":23240123678819,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6f4290a1a79090c17333b6603b22891b07f5c56_1011ad18-2c4d-492d-8af1-6d605e52c737.webp?v=1706626469"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6f4290a1a79090c17333b6603b22891b07f5c56_1011ad18-2c4d-492d-8af1-6d605e52c737.webp?v=1706626469","width":2000},{"alt":null,"id":23240124465251,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c41f43b07666093ef13c1b7c92ded4a851c679a2_6235e9e9-afae-4013-949a-ec6654142974.webp?v=1706626472"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c41f43b07666093ef13c1b7c92ded4a851c679a2_6235e9e9-afae-4013-949a-ec6654142974.webp?v=1706626472","width":2000},{"alt":null,"id":23240125087843,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2408106a81fd232d11496262560e210f83b7606_017402a8-a4fc-4c27-bb9e-9031964fc9db.webp?v=1706626474"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2408106a81fd232d11496262560e210f83b7606_017402a8-a4fc-4c27-bb9e-9031964fc9db.webp?v=1706626474","width":2000},{"alt":null,"id":23240126038115,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c56796ace46e7ddda7cf3746768edde934e3c8e_f13d6289-cc3c-4ebb-b0ad-af6ef931a564.webp?v=1706626477"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c56796ace46e7ddda7cf3746768edde934e3c8e_f13d6289-cc3c-4ebb-b0ad-af6ef931a564.webp?v=1706626477","width":2000},{"alt":null,"id":23240127021155,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/096893d7ecc9347f39508fabd4b61917076ced66_19128dd0-c985-4e6d-bd7f-1de329ed6550.webp?v=1706626480"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/096893d7ecc9347f39508fabd4b61917076ced66_19128dd0-c985-4e6d-bd7f-1de329ed6550.webp?v=1706626480","width":2000},{"alt":null,"id":23240127742051,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db47f8d1b98ff7c6877aafdc012392ee9c5e2e9d_9b69ee29-5c36-4fec-8f58-4bd8ed2f820b.webp?v=1706626482"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db47f8d1b98ff7c6877aafdc012392ee9c5e2e9d_9b69ee29-5c36-4fec-8f58-4bd8ed2f820b.webp?v=1706626482","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41237378760803,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MCN012630G-PL59","requires_shipping":true,"taxable":true,"featured_image":{"id":30868733689955,"product_id":7164391784547,"position":1,"created_at":"2024-01-30T22:54:29+08:00","updated_at":"2024-01-30T22:54:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6f4290a1a79090c17333b6603b22891b07f5c56_1011ad18-2c4d-492d-8af1-6d605e52c737.webp?v=1706626469","variant_ids":[41237378760803]},"available":true,"name":"犀牛盾Clear (MagSafe 兼容) 防摔背蓋手機殼 - iPhone 14 Pro Max - 【聯名設計款】 - Snoopy 史努比 - 冰淇淋甜筒 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":148000,"weight":1680,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012630G-PL59","featured_media":{"alt":null,"id":23240123678819,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6f4290a1a79090c17333b6603b22891b07f5c56_1011ad18-2c4d-492d-8af1-6d605e52c737.webp?v=1706626469"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41237378826339,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"MCN012630I-PL59","requires_shipping":true,"taxable":true,"featured_image":{"id":30868736999523,"product_id":7164391784547,"position":5,"created_at":"2024-01-30T22:54:40+08:00","updated_at":"2024-01-30T22:54:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/096893d7ecc9347f39508fabd4b61917076ced66_19128dd0-c985-4e6d-bd7f-1de329ed6550.webp?v=1706626480","variant_ids":[41237378826339]},"available":true,"name":"犀牛盾Clear (MagSafe 兼容) 防摔背蓋手機殼 - iPhone 14 Pro Max - 【聯名設計款】 - Snoopy 史努比 - 冰淇淋甜筒 - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":148000,"weight":1680,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012630I-PL59","featured_media":{"alt":null,"id":23240127021155,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/096893d7ecc9347f39508fabd4b61917076ced66_19128dd0-c985-4e6d-bd7f-1de329ed6550.webp?v=1706626480"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41237378760803,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MCN012630G-PL59","requires_shipping":true,"taxable":true,"featured_image":{"id":30868733689955,"product_id":7164391784547,"position":1,"created_at":"2024-01-30T22:54:29+08:00","updated_at":"2024-01-30T22:54:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6f4290a1a79090c17333b6603b22891b07f5c56_1011ad18-2c4d-492d-8af1-6d605e52c737.webp?v=1706626469","variant_ids":[41237378760803]},"available":true,"name":"犀牛盾Clear (MagSafe 兼容) 防摔背蓋手機殼 - iPhone 14 Pro Max - 【聯名設計款】 - Snoopy 史努比 - 冰淇淋甜筒 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":148000,"weight":1680,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012630G-PL59","featured_media":{"alt":null,"id":23240123678819,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6f4290a1a79090c17333b6603b22891b07f5c56_1011ad18-2c4d-492d-8af1-6d605e52c737.webp?v=1706626469"}},"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: "停產" }