$product = {"id":7769912410211,"title":"iPhone 15 Pro Max Clear ilovedoodle Overwhalemed 鯨魚","handle":"iphone-15-pro-max-jellytint-xf12","description":null,"published_at":"2025-04-16T13:35:11+08:00","created_at":"2025-04-15T22:01:59+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師JellyTint專區-I Love Doodle","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-ilovedoodle","device-iPhone 15 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":43304558919779,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012980G-XF12","requires_shipping":true,"taxable":true,"featured_image":{"id":35581224157283,"product_id":7769912410211,"position":8,"created_at":"2026-04-02T14:28:25+08:00","updated_at":"2026-04-02T14:28:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33e2fcdd9a664d1cb60a131439a67afb3c739a21_642ba537-95cc-4d29-bdf9-9dfe9ffd6fce.webp?v=1775111307","variant_ids":[43304558919779]},"available":true,"name":"iPhone 15 Pro Max Clear ilovedoodle Overwhalemed 鯨魚 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012980G-XF12","featured_media":{"alt":null,"id":27113844375651,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33e2fcdd9a664d1cb60a131439a67afb3c739a21_642ba537-95cc-4d29-bdf9-9dfe9ffd6fce.webp?v=1775111307"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43304562360419,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012980J-XF12","requires_shipping":true,"taxable":true,"featured_image":{"id":35581224058979,"product_id":7769912410211,"position":7,"created_at":"2026-04-02T14:28:24+08:00","updated_at":"2026-04-02T14:28:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c77a015e7ec32fc2d5c8a1428f4075615d391d81_7542c062-d780-4b54-9144-b40a74169813.webp?v=1775111306","variant_ids":[43304562360419]},"available":true,"name":"iPhone 15 Pro Max Clear ilovedoodle Overwhalemed 鯨魚 - 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":"CCN012980J-XF12","featured_media":{"alt":null,"id":27113844277347,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c77a015e7ec32fc2d5c8a1428f4075615d391d81_7542c062-d780-4b54-9144-b40a74169813.webp?v=1775111306"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43304562393187,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012980I-XF12","requires_shipping":true,"taxable":true,"featured_image":{"id":35581224255587,"product_id":7769912410211,"position":9,"created_at":"2026-04-02T14:28:25+08:00","updated_at":"2026-04-02T14:28:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/079c7c6ce8890dc63d387300c8f47963e904ed47_64b3127f-dc7e-4ab2-89ba-1639f54a216e.webp?v=1775111307","variant_ids":[43304562393187]},"available":true,"name":"iPhone 15 Pro Max Clear ilovedoodle Overwhalemed 鯨魚 - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012980I-XF12","featured_media":{"alt":null,"id":27113844473955,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/079c7c6ce8890dc63d387300c8f47963e904ed47_64b3127f-dc7e-4ab2-89ba-1639f54a216e.webp?v=1775111307"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b366e3ff360614d2ab17de9ab64b44635eac398a.webp?v=1744725725","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c77a015e7ec32fc2d5c8a1428f4075615d391d81.webp?v=1774939810","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e574705b700e88ac8fb691222266be583d4fc8c.webp?v=1774939811","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/079c7c6ce8890dc63d387300c8f47963e904ed47.webp?v=1774939812","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33e2fcdd9a664d1cb60a131439a67afb3c739a21.webp?v=1774939813","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e574705b700e88ac8fb691222266be583d4fc8c_709e5924-14ad-47bb-aabb-5315e4791ea7.webp?v=1775111305","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c77a015e7ec32fc2d5c8a1428f4075615d391d81_7542c062-d780-4b54-9144-b40a74169813.webp?v=1775111306","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33e2fcdd9a664d1cb60a131439a67afb3c739a21_642ba537-95cc-4d29-bdf9-9dfe9ffd6fce.webp?v=1775111307","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/079c7c6ce8890dc63d387300c8f47963e904ed47_64b3127f-dc7e-4ab2-89ba-1639f54a216e.webp?v=1775111307"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b366e3ff360614d2ab17de9ab64b44635eac398a.webp?v=1744725725","options":["color"],"media":[{"alt":null,"id":25496493850723,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b366e3ff360614d2ab17de9ab64b44635eac398a.webp?v=1744725725"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b366e3ff360614d2ab17de9ab64b44635eac398a.webp?v=1744725725","width":2000},{"alt":null,"id":27102385930339,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c77a015e7ec32fc2d5c8a1428f4075615d391d81.webp?v=1774939810"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c77a015e7ec32fc2d5c8a1428f4075615d391d81.webp?v=1774939810","width":2000},{"alt":null,"id":27102386126947,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e574705b700e88ac8fb691222266be583d4fc8c.webp?v=1774939811"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e574705b700e88ac8fb691222266be583d4fc8c.webp?v=1774939811","width":2000},{"alt":null,"id":27102386487395,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/079c7c6ce8890dc63d387300c8f47963e904ed47.webp?v=1774939812"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/079c7c6ce8890dc63d387300c8f47963e904ed47.webp?v=1774939812","width":2000},{"alt":null,"id":27102386782307,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33e2fcdd9a664d1cb60a131439a67afb3c739a21.webp?v=1774939813"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33e2fcdd9a664d1cb60a131439a67afb3c739a21.webp?v=1774939813","width":2000},{"alt":null,"id":27113844146275,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e574705b700e88ac8fb691222266be583d4fc8c_709e5924-14ad-47bb-aabb-5315e4791ea7.webp?v=1775111305"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e574705b700e88ac8fb691222266be583d4fc8c_709e5924-14ad-47bb-aabb-5315e4791ea7.webp?v=1775111305","width":2000},{"alt":null,"id":27113844277347,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c77a015e7ec32fc2d5c8a1428f4075615d391d81_7542c062-d780-4b54-9144-b40a74169813.webp?v=1775111306"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c77a015e7ec32fc2d5c8a1428f4075615d391d81_7542c062-d780-4b54-9144-b40a74169813.webp?v=1775111306","width":2000},{"alt":null,"id":27113844375651,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33e2fcdd9a664d1cb60a131439a67afb3c739a21_642ba537-95cc-4d29-bdf9-9dfe9ffd6fce.webp?v=1775111307"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33e2fcdd9a664d1cb60a131439a67afb3c739a21_642ba537-95cc-4d29-bdf9-9dfe9ffd6fce.webp?v=1775111307","width":2000},{"alt":null,"id":27113844473955,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/079c7c6ce8890dc63d387300c8f47963e904ed47_64b3127f-dc7e-4ab2-89ba-1639f54a216e.webp?v=1775111307"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/079c7c6ce8890dc63d387300c8f47963e904ed47_64b3127f-dc7e-4ab2-89ba-1639f54a216e.webp?v=1775111307","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43304558919779,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012980G-XF12","requires_shipping":true,"taxable":true,"featured_image":{"id":35581224157283,"product_id":7769912410211,"position":8,"created_at":"2026-04-02T14:28:25+08:00","updated_at":"2026-04-02T14:28:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33e2fcdd9a664d1cb60a131439a67afb3c739a21_642ba537-95cc-4d29-bdf9-9dfe9ffd6fce.webp?v=1775111307","variant_ids":[43304558919779]},"available":true,"name":"iPhone 15 Pro Max Clear ilovedoodle Overwhalemed 鯨魚 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012980G-XF12","featured_media":{"alt":null,"id":27113844375651,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33e2fcdd9a664d1cb60a131439a67afb3c739a21_642ba537-95cc-4d29-bdf9-9dfe9ffd6fce.webp?v=1775111307"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43304562360419,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012980J-XF12","requires_shipping":true,"taxable":true,"featured_image":{"id":35581224058979,"product_id":7769912410211,"position":7,"created_at":"2026-04-02T14:28:24+08:00","updated_at":"2026-04-02T14:28:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c77a015e7ec32fc2d5c8a1428f4075615d391d81_7542c062-d780-4b54-9144-b40a74169813.webp?v=1775111306","variant_ids":[43304562360419]},"available":true,"name":"iPhone 15 Pro Max Clear ilovedoodle Overwhalemed 鯨魚 - 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":"CCN012980J-XF12","featured_media":{"alt":null,"id":27113844277347,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c77a015e7ec32fc2d5c8a1428f4075615d391d81_7542c062-d780-4b54-9144-b40a74169813.webp?v=1775111306"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43304562393187,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012980I-XF12","requires_shipping":true,"taxable":true,"featured_image":{"id":35581224255587,"product_id":7769912410211,"position":9,"created_at":"2026-04-02T14:28:25+08:00","updated_at":"2026-04-02T14:28:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/079c7c6ce8890dc63d387300c8f47963e904ed47_64b3127f-dc7e-4ab2-89ba-1639f54a216e.webp?v=1775111307","variant_ids":[43304562393187]},"available":true,"name":"iPhone 15 Pro Max Clear ilovedoodle Overwhalemed 鯨魚 - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012980I-XF12","featured_media":{"alt":null,"id":27113844473955,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/079c7c6ce8890dc63d387300c8f47963e904ed47_64b3127f-dc7e-4ab2-89ba-1639f54a216e.webp?v=1775111307"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43304558919779,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012980G-XF12","requires_shipping":true,"taxable":true,"featured_image":{"id":35581224157283,"product_id":7769912410211,"position":8,"created_at":"2026-04-02T14:28:25+08:00","updated_at":"2026-04-02T14:28:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33e2fcdd9a664d1cb60a131439a67afb3c739a21_642ba537-95cc-4d29-bdf9-9dfe9ffd6fce.webp?v=1775111307","variant_ids":[43304558919779]},"available":true,"name":"iPhone 15 Pro Max Clear ilovedoodle Overwhalemed 鯨魚 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012980G-XF12","featured_media":{"alt":null,"id":27113844375651,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33e2fcdd9a664d1cb60a131439a67afb3c739a21_642ba537-95cc-4d29-bdf9-9dfe9ffd6fce.webp?v=1775111307"}},"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: "停產" }