$product = {"id":7164002730083,"title":"犀牛盾Clear 防摔背蓋手機殼 - iPhone 15 Pro - 【聯名設計款】 - Snoopy 史努比 - 溜滑梯","handle":"iphone-15-pro-jellytint-pl62","description":null,"published_at":"2024-01-30T11:49:49+08:00","created_at":"2024-01-30T10:08:32+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 15 Pro","merge","reseller-jellytint-snoopy","Top50","type-jellytint"],"price":118000,"price_min":118000,"price_max":118000,"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":41235292225635,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012970G-PL62","requires_shipping":true,"taxable":true,"featured_image":{"id":30865770315875,"product_id":7164002730083,"position":5,"created_at":"2024-01-30T10:08:44+08:00","updated_at":"2024-01-30T10:08:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01c33a13bd1f9d27a7e624f60c586666ab059ad4_cad98dc8-bc98-4f03-8b55-9ca2e71e75e3.webp?v=1706580524","variant_ids":[41235292225635]},"available":true,"name":"犀牛盾Clear 防摔背蓋手機殼 - iPhone 15 Pro - 【聯名設計款】 - Snoopy 史努比 - 溜滑梯 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":118000,"weight":1180,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012970G-PL62","featured_media":{"alt":null,"id":23237124128867,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01c33a13bd1f9d27a7e624f60c586666ab059ad4_cad98dc8-bc98-4f03-8b55-9ca2e71e75e3.webp?v=1706580524"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41235292258403,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"CCN012970H-PL62","requires_shipping":true,"taxable":true,"featured_image":{"id":30865773166691,"product_id":7164002730083,"position":7,"created_at":"2024-01-30T10:08:51+08:00","updated_at":"2024-01-30T10:08:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd97461c716fdb194a66756cfa4a6f82279cce0b_dc374f61-c5b4-41d1-b72d-7d2b3a2a8e2f.webp?v=1706580531","variant_ids":[41235292258403]},"available":true,"name":"犀牛盾Clear 防摔背蓋手機殼 - iPhone 15 Pro - 【聯名設計款】 - Snoopy 史努比 - 溜滑梯 - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":118000,"weight":1180,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012970H-PL62","featured_media":{"alt":null,"id":23237126979683,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd97461c716fdb194a66756cfa4a6f82279cce0b_dc374f61-c5b4-41d1-b72d-7d2b3a2a8e2f.webp?v=1706580531"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41235292291171,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012970I-PL62","requires_shipping":true,"taxable":true,"featured_image":{"id":30865772085347,"product_id":7164002730083,"position":6,"created_at":"2024-01-30T10:08:48+08:00","updated_at":"2024-01-30T10:08:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c15da18171d13db27cd8a0c54111d2742b459d63_31996c2f-f371-4862-bc35-d375da5f67c2.webp?v=1706580528","variant_ids":[41235292291171]},"available":true,"name":"犀牛盾Clear 防摔背蓋手機殼 - iPhone 15 Pro - 【聯名設計款】 - Snoopy 史努比 - 溜滑梯 - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":118000,"weight":1180,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012970I-PL62","featured_media":{"alt":null,"id":23237125898339,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c15da18171d13db27cd8a0c54111d2742b459d63_31996c2f-f371-4862-bc35-d375da5f67c2.webp?v=1706580528"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22374011699594e0767a1cd7536ec419386e924a_f3aa6f99-eecc-4994-b7e2-0f9e729345df.webp?v=1706580515","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00762f6cec10c8e85823e239fdbd2d2d80338308_c0b7e5b5-548e-4a36-8874-9feff7b5f6f6.webp?v=1706580517","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30ba1847529637c6830be96c8682ff342d80c496_7d2c6a69-88c9-40f5-8322-6a3b77b04fcd.webp?v=1706580519","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e33cebd3d368b767041bff97b01ebffabfc5f91e_da8d0560-d9c4-4827-9025-4ce911ec30ab.webp?v=1706580521","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01c33a13bd1f9d27a7e624f60c586666ab059ad4_cad98dc8-bc98-4f03-8b55-9ca2e71e75e3.webp?v=1706580524","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c15da18171d13db27cd8a0c54111d2742b459d63_31996c2f-f371-4862-bc35-d375da5f67c2.webp?v=1706580528","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd97461c716fdb194a66756cfa4a6f82279cce0b_dc374f61-c5b4-41d1-b72d-7d2b3a2a8e2f.webp?v=1706580531"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22374011699594e0767a1cd7536ec419386e924a_f3aa6f99-eecc-4994-b7e2-0f9e729345df.webp?v=1706580515","options":["color"],"media":[{"alt":null,"id":23237120262243,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22374011699594e0767a1cd7536ec419386e924a_f3aa6f99-eecc-4994-b7e2-0f9e729345df.webp?v=1706580515"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22374011699594e0767a1cd7536ec419386e924a_f3aa6f99-eecc-4994-b7e2-0f9e729345df.webp?v=1706580515","width":2000},{"alt":null,"id":23237121146979,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00762f6cec10c8e85823e239fdbd2d2d80338308_c0b7e5b5-548e-4a36-8874-9feff7b5f6f6.webp?v=1706580517"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00762f6cec10c8e85823e239fdbd2d2d80338308_c0b7e5b5-548e-4a36-8874-9feff7b5f6f6.webp?v=1706580517","width":2000},{"alt":null,"id":23237122457699,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30ba1847529637c6830be96c8682ff342d80c496_7d2c6a69-88c9-40f5-8322-6a3b77b04fcd.webp?v=1706580519"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30ba1847529637c6830be96c8682ff342d80c496_7d2c6a69-88c9-40f5-8322-6a3b77b04fcd.webp?v=1706580519","width":2000},{"alt":null,"id":23237123276899,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e33cebd3d368b767041bff97b01ebffabfc5f91e_da8d0560-d9c4-4827-9025-4ce911ec30ab.webp?v=1706580521"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e33cebd3d368b767041bff97b01ebffabfc5f91e_da8d0560-d9c4-4827-9025-4ce911ec30ab.webp?v=1706580521","width":2000},{"alt":null,"id":23237124128867,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01c33a13bd1f9d27a7e624f60c586666ab059ad4_cad98dc8-bc98-4f03-8b55-9ca2e71e75e3.webp?v=1706580524"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01c33a13bd1f9d27a7e624f60c586666ab059ad4_cad98dc8-bc98-4f03-8b55-9ca2e71e75e3.webp?v=1706580524","width":2000},{"alt":null,"id":23237125898339,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c15da18171d13db27cd8a0c54111d2742b459d63_31996c2f-f371-4862-bc35-d375da5f67c2.webp?v=1706580528"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c15da18171d13db27cd8a0c54111d2742b459d63_31996c2f-f371-4862-bc35-d375da5f67c2.webp?v=1706580528","width":2000},{"alt":null,"id":23237126979683,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd97461c716fdb194a66756cfa4a6f82279cce0b_dc374f61-c5b4-41d1-b72d-7d2b3a2a8e2f.webp?v=1706580531"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd97461c716fdb194a66756cfa4a6f82279cce0b_dc374f61-c5b4-41d1-b72d-7d2b3a2a8e2f.webp?v=1706580531","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41235292225635,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012970G-PL62","requires_shipping":true,"taxable":true,"featured_image":{"id":30865770315875,"product_id":7164002730083,"position":5,"created_at":"2024-01-30T10:08:44+08:00","updated_at":"2024-01-30T10:08:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01c33a13bd1f9d27a7e624f60c586666ab059ad4_cad98dc8-bc98-4f03-8b55-9ca2e71e75e3.webp?v=1706580524","variant_ids":[41235292225635]},"available":true,"name":"犀牛盾Clear 防摔背蓋手機殼 - iPhone 15 Pro - 【聯名設計款】 - Snoopy 史努比 - 溜滑梯 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":118000,"weight":1180,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012970G-PL62","featured_media":{"alt":null,"id":23237124128867,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01c33a13bd1f9d27a7e624f60c586666ab059ad4_cad98dc8-bc98-4f03-8b55-9ca2e71e75e3.webp?v=1706580524"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41235292258403,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"CCN012970H-PL62","requires_shipping":true,"taxable":true,"featured_image":{"id":30865773166691,"product_id":7164002730083,"position":7,"created_at":"2024-01-30T10:08:51+08:00","updated_at":"2024-01-30T10:08:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd97461c716fdb194a66756cfa4a6f82279cce0b_dc374f61-c5b4-41d1-b72d-7d2b3a2a8e2f.webp?v=1706580531","variant_ids":[41235292258403]},"available":true,"name":"犀牛盾Clear 防摔背蓋手機殼 - iPhone 15 Pro - 【聯名設計款】 - Snoopy 史努比 - 溜滑梯 - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":118000,"weight":1180,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012970H-PL62","featured_media":{"alt":null,"id":23237126979683,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd97461c716fdb194a66756cfa4a6f82279cce0b_dc374f61-c5b4-41d1-b72d-7d2b3a2a8e2f.webp?v=1706580531"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41235292291171,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012970I-PL62","requires_shipping":true,"taxable":true,"featured_image":{"id":30865772085347,"product_id":7164002730083,"position":6,"created_at":"2024-01-30T10:08:48+08:00","updated_at":"2024-01-30T10:08:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c15da18171d13db27cd8a0c54111d2742b459d63_31996c2f-f371-4862-bc35-d375da5f67c2.webp?v=1706580528","variant_ids":[41235292291171]},"available":true,"name":"犀牛盾Clear 防摔背蓋手機殼 - iPhone 15 Pro - 【聯名設計款】 - Snoopy 史努比 - 溜滑梯 - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":118000,"weight":1180,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012970I-PL62","featured_media":{"alt":null,"id":23237125898339,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c15da18171d13db27cd8a0c54111d2742b459d63_31996c2f-f371-4862-bc35-d375da5f67c2.webp?v=1706580528"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41235292225635,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012970G-PL62","requires_shipping":true,"taxable":true,"featured_image":{"id":30865770315875,"product_id":7164002730083,"position":5,"created_at":"2024-01-30T10:08:44+08:00","updated_at":"2024-01-30T10:08:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01c33a13bd1f9d27a7e624f60c586666ab059ad4_cad98dc8-bc98-4f03-8b55-9ca2e71e75e3.webp?v=1706580524","variant_ids":[41235292225635]},"available":true,"name":"犀牛盾Clear 防摔背蓋手機殼 - iPhone 15 Pro - 【聯名設計款】 - Snoopy 史努比 - 溜滑梯 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":118000,"weight":1180,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012970G-PL62","featured_media":{"alt":null,"id":23237124128867,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01c33a13bd1f9d27a7e624f60c586666ab059ad4_cad98dc8-bc98-4f03-8b55-9ca2e71e75e3.webp?v=1706580524"}},"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: "停產" }