$product = {"id":7164411707491,"title":"犀牛盾Clear (MagSafe 兼容) 防摔背蓋手機殼 - iPhone 15 Pro - 【聯名設計款】 - Look - 大自然的傑作(大堡礁)","handle":"iphone-15-pro-jellytint-magsafe-af11","description":null,"published_at":"2024-01-31T11:11:21+08:00","created_at":"2024-01-30T23:27:14+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","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":41237513175139,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MCN012970G-AF11","requires_shipping":true,"taxable":true,"featured_image":{"id":30868894122083,"product_id":7164411707491,"position":2,"created_at":"2024-01-30T23:27:20+08:00","updated_at":"2024-01-30T23:27:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eaf5307b32fa06e3728305679170b80c625cb2d9_6a1849d0-fae5-4761-baae-d182160e88a7.webp?v=1706628440","variant_ids":[41237513175139]},"available":true,"name":"犀牛盾Clear (MagSafe 兼容) 防摔背蓋手機殼 - iPhone 15 Pro - 【聯名設計款】 - 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":"MCN012970G-AF11","featured_media":{"alt":null,"id":23240285061219,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eaf5307b32fa06e3728305679170b80c625cb2d9_6a1849d0-fae5-4761-baae-d182160e88a7.webp?v=1706628440"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41237513240675,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"MCN012970I-AF11","requires_shipping":true,"taxable":true,"featured_image":{"id":30868898676835,"product_id":7164411707491,"position":7,"created_at":"2024-01-30T23:27:34+08:00","updated_at":"2024-01-30T23:27:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af638f0c6fbaf8b9e13ddbf2722bb8dd84c43912_f1e310b0-cfed-4d10-996b-68bb4ae1e664.webp?v=1706628454","variant_ids":[41237513240675]},"available":true,"name":"犀牛盾Clear (MagSafe 兼容) 防摔背蓋手機殼 - iPhone 15 Pro - 【聯名設計款】 - 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":"MCN012970I-AF11","featured_media":{"alt":null,"id":23240289615971,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af638f0c6fbaf8b9e13ddbf2722bb8dd84c43912_f1e310b0-cfed-4d10-996b-68bb4ae1e664.webp?v=1706628454"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ec680da3e8c2bf2616567c644744be61cf30655_202b3744-6f72-4619-aac0-df1c0f4af756.webp?v=1706628437","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eaf5307b32fa06e3728305679170b80c625cb2d9_6a1849d0-fae5-4761-baae-d182160e88a7.webp?v=1706628440","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c45dbd0b642dc47cbeb924636b2880695bd6a2f_2100ffee-ca30-4ac2-8fc9-068a2efc6b8b.webp?v=1706628442","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68c279fc27c2087be5522c860917ab28679fca59_ca92fc30-a8a6-4898-bd4e-9cf1d4bedad5.webp?v=1706628445","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c91a6395e2810cfc20b368d4653d8629cc0d094b_8e6a93e9-0178-493a-aca7-e030c67e6c82.webp?v=1706628448","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1023a110cfa44728fdbf5e82b9b38b0f1cca4579_3e170706-f0fe-411c-85e3-8e17a4a98aef.webp?v=1706628451","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af638f0c6fbaf8b9e13ddbf2722bb8dd84c43912_f1e310b0-cfed-4d10-996b-68bb4ae1e664.webp?v=1706628454"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ec680da3e8c2bf2616567c644744be61cf30655_202b3744-6f72-4619-aac0-df1c0f4af756.webp?v=1706628437","options":["color"],"media":[{"alt":null,"id":23240284340323,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ec680da3e8c2bf2616567c644744be61cf30655_202b3744-6f72-4619-aac0-df1c0f4af756.webp?v=1706628437"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ec680da3e8c2bf2616567c644744be61cf30655_202b3744-6f72-4619-aac0-df1c0f4af756.webp?v=1706628437","width":2000},{"alt":null,"id":23240285061219,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eaf5307b32fa06e3728305679170b80c625cb2d9_6a1849d0-fae5-4761-baae-d182160e88a7.webp?v=1706628440"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eaf5307b32fa06e3728305679170b80c625cb2d9_6a1849d0-fae5-4761-baae-d182160e88a7.webp?v=1706628440","width":2000},{"alt":null,"id":23240286044259,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c45dbd0b642dc47cbeb924636b2880695bd6a2f_2100ffee-ca30-4ac2-8fc9-068a2efc6b8b.webp?v=1706628442"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c45dbd0b642dc47cbeb924636b2880695bd6a2f_2100ffee-ca30-4ac2-8fc9-068a2efc6b8b.webp?v=1706628442","width":2000},{"alt":null,"id":23240287125603,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68c279fc27c2087be5522c860917ab28679fca59_ca92fc30-a8a6-4898-bd4e-9cf1d4bedad5.webp?v=1706628445"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68c279fc27c2087be5522c860917ab28679fca59_ca92fc30-a8a6-4898-bd4e-9cf1d4bedad5.webp?v=1706628445","width":2000},{"alt":null,"id":23240287846499,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c91a6395e2810cfc20b368d4653d8629cc0d094b_8e6a93e9-0178-493a-aca7-e030c67e6c82.webp?v=1706628448"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c91a6395e2810cfc20b368d4653d8629cc0d094b_8e6a93e9-0178-493a-aca7-e030c67e6c82.webp?v=1706628448","width":2000},{"alt":null,"id":23240288600163,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1023a110cfa44728fdbf5e82b9b38b0f1cca4579_3e170706-f0fe-411c-85e3-8e17a4a98aef.webp?v=1706628451"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1023a110cfa44728fdbf5e82b9b38b0f1cca4579_3e170706-f0fe-411c-85e3-8e17a4a98aef.webp?v=1706628451","width":2000},{"alt":null,"id":23240289615971,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af638f0c6fbaf8b9e13ddbf2722bb8dd84c43912_f1e310b0-cfed-4d10-996b-68bb4ae1e664.webp?v=1706628454"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af638f0c6fbaf8b9e13ddbf2722bb8dd84c43912_f1e310b0-cfed-4d10-996b-68bb4ae1e664.webp?v=1706628454","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41237513175139,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MCN012970G-AF11","requires_shipping":true,"taxable":true,"featured_image":{"id":30868894122083,"product_id":7164411707491,"position":2,"created_at":"2024-01-30T23:27:20+08:00","updated_at":"2024-01-30T23:27:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eaf5307b32fa06e3728305679170b80c625cb2d9_6a1849d0-fae5-4761-baae-d182160e88a7.webp?v=1706628440","variant_ids":[41237513175139]},"available":true,"name":"犀牛盾Clear (MagSafe 兼容) 防摔背蓋手機殼 - iPhone 15 Pro - 【聯名設計款】 - 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":"MCN012970G-AF11","featured_media":{"alt":null,"id":23240285061219,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eaf5307b32fa06e3728305679170b80c625cb2d9_6a1849d0-fae5-4761-baae-d182160e88a7.webp?v=1706628440"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41237513240675,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"MCN012970I-AF11","requires_shipping":true,"taxable":true,"featured_image":{"id":30868898676835,"product_id":7164411707491,"position":7,"created_at":"2024-01-30T23:27:34+08:00","updated_at":"2024-01-30T23:27:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af638f0c6fbaf8b9e13ddbf2722bb8dd84c43912_f1e310b0-cfed-4d10-996b-68bb4ae1e664.webp?v=1706628454","variant_ids":[41237513240675]},"available":true,"name":"犀牛盾Clear (MagSafe 兼容) 防摔背蓋手機殼 - iPhone 15 Pro - 【聯名設計款】 - 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":"MCN012970I-AF11","featured_media":{"alt":null,"id":23240289615971,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af638f0c6fbaf8b9e13ddbf2722bb8dd84c43912_f1e310b0-cfed-4d10-996b-68bb4ae1e664.webp?v=1706628454"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41237513175139,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MCN012970G-AF11","requires_shipping":true,"taxable":true,"featured_image":{"id":30868894122083,"product_id":7164411707491,"position":2,"created_at":"2024-01-30T23:27:20+08:00","updated_at":"2024-01-30T23:27:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eaf5307b32fa06e3728305679170b80c625cb2d9_6a1849d0-fae5-4761-baae-d182160e88a7.webp?v=1706628440","variant_ids":[41237513175139]},"available":true,"name":"犀牛盾Clear (MagSafe 兼容) 防摔背蓋手機殼 - iPhone 15 Pro - 【聯名設計款】 - 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":"MCN012970G-AF11","featured_media":{"alt":null,"id":23240285061219,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eaf5307b32fa06e3728305679170b80c625cb2d9_6a1849d0-fae5-4761-baae-d182160e88a7.webp?v=1706628440"}},"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: "停產" }