$product = {"id":7769762496611,"title":"iPhone 16 Pro Max Clear ilovedoodle Cat Dive - 跳水貓咪","handle":"iphone-16-pro-max-jellytint-xf51","description":null,"published_at":"2025-07-16T17:01:45+08:00","created_at":"2025-04-15T20:20:12+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師JellyTint專區-I Love Doodle","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-ilovedoodle","device-iPhone 16 Pro Max","merge","reseller-ilovedoodle"],"price":128000,"price_min":128000,"price_max":128000,"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":43303866630243,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"CCN013280H-XF51","requires_shipping":true,"taxable":true,"featured_image":{"id":34197598208099,"product_id":7769762496611,"position":3,"created_at":"2025-07-16T15:09:59+08:00","updated_at":"2025-07-16T15:10:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/819a4e67c9cb3298a3f15d7dd10a6c8b12c5aca5_8c5f590c-3c5b-409a-92b3-47a2f254c84e.webp?v=1752649801","variant_ids":[43303866630243]},"available":true,"name":"iPhone 16 Pro Max Clear ilovedoodle Cat Dive - 跳水貓咪 - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN013280H-XF51","featured_media":{"alt":null,"id":25829984600163,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/819a4e67c9cb3298a3f15d7dd10a6c8b12c5aca5_8c5f590c-3c5b-409a-92b3-47a2f254c84e.webp?v=1752649801"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43303866663011,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN013280J-XF51","requires_shipping":true,"taxable":true,"featured_image":{"id":34197597749347,"product_id":7769762496611,"position":2,"created_at":"2025-07-16T15:09:58+08:00","updated_at":"2025-07-16T15:10:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7f721c21a13339beb93b64ab253d556efdb653c_0562a7f2-f892-426b-bc95-fa120efdd188.webp?v=1752649800","variant_ids":[43303866663011]},"available":true,"name":"iPhone 16 Pro Max Clear ilovedoodle Cat Dive - 跳水貓咪 - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN013280J-XF51","featured_media":{"alt":null,"id":25829984403555,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7f721c21a13339beb93b64ab253d556efdb653c_0562a7f2-f892-426b-bc95-fa120efdd188.webp?v=1752649800"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a30d8d74eacefd4115944f3f48e006a9ea8eed89.webp?v=1744719619","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7f721c21a13339beb93b64ab253d556efdb653c_0562a7f2-f892-426b-bc95-fa120efdd188.webp?v=1752649800","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/819a4e67c9cb3298a3f15d7dd10a6c8b12c5aca5_8c5f590c-3c5b-409a-92b3-47a2f254c84e.webp?v=1752649801","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b82fff1a741b22c68963a7c5758e3651898a6b1_8411d0d1-6aa7-4531-be1e-8392c5b5d765.webp?v=1752649802","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b47bc92b31bd03a26dce29de7df734135a2802d_ff27540a-6140-46a5-abad-9132ef3aa6a8.webp?v=1752649802"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a30d8d74eacefd4115944f3f48e006a9ea8eed89.webp?v=1744719619","options":["color"],"media":[{"alt":null,"id":25496251990115,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a30d8d74eacefd4115944f3f48e006a9ea8eed89.webp?v=1744719619"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a30d8d74eacefd4115944f3f48e006a9ea8eed89.webp?v=1744719619","width":2000},{"alt":null,"id":25829984403555,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7f721c21a13339beb93b64ab253d556efdb653c_0562a7f2-f892-426b-bc95-fa120efdd188.webp?v=1752649800"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7f721c21a13339beb93b64ab253d556efdb653c_0562a7f2-f892-426b-bc95-fa120efdd188.webp?v=1752649800","width":2000},{"alt":null,"id":25829984600163,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/819a4e67c9cb3298a3f15d7dd10a6c8b12c5aca5_8c5f590c-3c5b-409a-92b3-47a2f254c84e.webp?v=1752649801"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/819a4e67c9cb3298a3f15d7dd10a6c8b12c5aca5_8c5f590c-3c5b-409a-92b3-47a2f254c84e.webp?v=1752649801","width":2000},{"alt":null,"id":25829984927843,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b82fff1a741b22c68963a7c5758e3651898a6b1_8411d0d1-6aa7-4531-be1e-8392c5b5d765.webp?v=1752649802"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b82fff1a741b22c68963a7c5758e3651898a6b1_8411d0d1-6aa7-4531-be1e-8392c5b5d765.webp?v=1752649802","width":2000},{"alt":null,"id":25829985255523,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b47bc92b31bd03a26dce29de7df734135a2802d_ff27540a-6140-46a5-abad-9132ef3aa6a8.webp?v=1752649802"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b47bc92b31bd03a26dce29de7df734135a2802d_ff27540a-6140-46a5-abad-9132ef3aa6a8.webp?v=1752649802","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43303866630243,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"CCN013280H-XF51","requires_shipping":true,"taxable":true,"featured_image":{"id":34197598208099,"product_id":7769762496611,"position":3,"created_at":"2025-07-16T15:09:59+08:00","updated_at":"2025-07-16T15:10:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/819a4e67c9cb3298a3f15d7dd10a6c8b12c5aca5_8c5f590c-3c5b-409a-92b3-47a2f254c84e.webp?v=1752649801","variant_ids":[43303866630243]},"available":true,"name":"iPhone 16 Pro Max Clear ilovedoodle Cat Dive - 跳水貓咪 - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN013280H-XF51","featured_media":{"alt":null,"id":25829984600163,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/819a4e67c9cb3298a3f15d7dd10a6c8b12c5aca5_8c5f590c-3c5b-409a-92b3-47a2f254c84e.webp?v=1752649801"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43303866663011,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN013280J-XF51","requires_shipping":true,"taxable":true,"featured_image":{"id":34197597749347,"product_id":7769762496611,"position":2,"created_at":"2025-07-16T15:09:58+08:00","updated_at":"2025-07-16T15:10:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7f721c21a13339beb93b64ab253d556efdb653c_0562a7f2-f892-426b-bc95-fa120efdd188.webp?v=1752649800","variant_ids":[43303866663011]},"available":true,"name":"iPhone 16 Pro Max Clear ilovedoodle Cat Dive - 跳水貓咪 - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN013280J-XF51","featured_media":{"alt":null,"id":25829984403555,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7f721c21a13339beb93b64ab253d556efdb653c_0562a7f2-f892-426b-bc95-fa120efdd188.webp?v=1752649800"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43303866630243,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"CCN013280H-XF51","requires_shipping":true,"taxable":true,"featured_image":{"id":34197598208099,"product_id":7769762496611,"position":3,"created_at":"2025-07-16T15:09:59+08:00","updated_at":"2025-07-16T15:10:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/819a4e67c9cb3298a3f15d7dd10a6c8b12c5aca5_8c5f590c-3c5b-409a-92b3-47a2f254c84e.webp?v=1752649801","variant_ids":[43303866630243]},"available":true,"name":"iPhone 16 Pro Max Clear ilovedoodle Cat Dive - 跳水貓咪 - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN013280H-XF51","featured_media":{"alt":null,"id":25829984600163,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/819a4e67c9cb3298a3f15d7dd10a6c8b12c5aca5_8c5f590c-3c5b-409a-92b3-47a2f254c84e.webp?v=1752649801"}},"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: "停產" }