$product = {"id":7769524666467,"title":"iPhone 12 Pro Max Mod NX (MagSafe 兼容) ilovedoodle The Sun and Cat - 太陽與貓","handle":"iphone-12-pro-max-mod-nx-magsafe-printable-xf52","description":null,"published_at":"2025-07-16T17:27:05+08:00","created_at":"2025-04-15T17:18:46+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區I Love Doodle","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-ilovedoodle","device-iPhone 12 Pro Max","merge","reseller-ilovedoodle"],"price":110000,"price_min":110000,"price_max":110000,"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":43302755270755,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118724-XF52","requires_shipping":true,"taxable":true,"featured_image":{"id":34197761425507,"product_id":7769524666467,"position":7,"created_at":"2025-07-16T15:22:12+08:00","updated_at":"2025-07-16T15:22:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9edbe6fd5223688cfa561c1017c1ffd745572361_bddb951b-e97f-4c0c-b6d3-db795661e466.webp?v=1752650534","variant_ids":[43302755270755]},"available":true,"name":"iPhone 12 Pro Max Mod NX (MagSafe 兼容) ilovedoodle The Sun and Cat - 太陽與貓 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118724-XF52","featured_media":{"alt":null,"id":25830088605795,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9edbe6fd5223688cfa561c1017c1ffd745572361_bddb951b-e97f-4c0c-b6d3-db795661e466.webp?v=1752650534"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/277964875685c1a00c1d2c17866fd4b0b1fabe1d.webp?v=1744708733","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/828c776224a602f29aeb434d28260f10be3d3a4c_6db06cd7-09e9-4afe-9c2c-65be9be7a6df.webp?v=1752650531","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b177d1286b34f48297c0f22742432007f6ded28_d96d03df-998f-42fb-8af1-774d64a6fe1f.webp?v=1752650532","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d828f060a64c4d9586d6295aa61f8e76dd8b9528_82031555-3fe7-4a4b-8a67-3d9883fee8d2.webp?v=1752650532","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/479defe3903ae064adcc5f526cfb277a0f61b606_9a814147-57fb-4d30-aa34-96fc9b6ca563.webp?v=1752650533","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/220a31006f5a101c91dfee91d7662c0d14dfafae_77a36207-f3d0-4617-9604-d663f709d460.webp?v=1752650533","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9edbe6fd5223688cfa561c1017c1ffd745572361_bddb951b-e97f-4c0c-b6d3-db795661e466.webp?v=1752650534","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6228ae6f21514be7e1b0f6a431dfd41c5102094_bf216666-e746-4022-b88a-c64b895b8d73.webp?v=1752650534","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b56b5908c177c41c4fcdbdf04dd1036bfdd44a8_14019645-0005-4172-9cf0-5c54832380ae.webp?v=1752650535","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae4a83fea4fc8db80d00eff81e363e4fddc51ffd_32b41c88-20e8-463b-8e67-64c0057591f4.webp?v=1752650535","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c75913035b6ef85d37a0073b251a83916a0040a8_07a88da6-26f6-4812-b364-ff05ccc384e7.webp?v=1752650536"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/277964875685c1a00c1d2c17866fd4b0b1fabe1d.webp?v=1744708733","options":["color"],"media":[{"alt":null,"id":25495699849315,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/277964875685c1a00c1d2c17866fd4b0b1fabe1d.webp?v=1744708733"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/277964875685c1a00c1d2c17866fd4b0b1fabe1d.webp?v=1744708733","width":2000},{"alt":null,"id":25830087262307,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/828c776224a602f29aeb434d28260f10be3d3a4c_6db06cd7-09e9-4afe-9c2c-65be9be7a6df.webp?v=1752650531"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/828c776224a602f29aeb434d28260f10be3d3a4c_6db06cd7-09e9-4afe-9c2c-65be9be7a6df.webp?v=1752650531","width":2000},{"alt":null,"id":25830087655523,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b177d1286b34f48297c0f22742432007f6ded28_d96d03df-998f-42fb-8af1-774d64a6fe1f.webp?v=1752650532"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b177d1286b34f48297c0f22742432007f6ded28_d96d03df-998f-42fb-8af1-774d64a6fe1f.webp?v=1752650532","width":2000},{"alt":null,"id":25830087852131,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d828f060a64c4d9586d6295aa61f8e76dd8b9528_82031555-3fe7-4a4b-8a67-3d9883fee8d2.webp?v=1752650532"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d828f060a64c4d9586d6295aa61f8e76dd8b9528_82031555-3fe7-4a4b-8a67-3d9883fee8d2.webp?v=1752650532","width":2000},{"alt":null,"id":25830088114275,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/479defe3903ae064adcc5f526cfb277a0f61b606_9a814147-57fb-4d30-aa34-96fc9b6ca563.webp?v=1752650533"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/479defe3903ae064adcc5f526cfb277a0f61b606_9a814147-57fb-4d30-aa34-96fc9b6ca563.webp?v=1752650533","width":2000},{"alt":null,"id":25830088376419,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/220a31006f5a101c91dfee91d7662c0d14dfafae_77a36207-f3d0-4617-9604-d663f709d460.webp?v=1752650533"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/220a31006f5a101c91dfee91d7662c0d14dfafae_77a36207-f3d0-4617-9604-d663f709d460.webp?v=1752650533","width":2000},{"alt":null,"id":25830088605795,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9edbe6fd5223688cfa561c1017c1ffd745572361_bddb951b-e97f-4c0c-b6d3-db795661e466.webp?v=1752650534"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9edbe6fd5223688cfa561c1017c1ffd745572361_bddb951b-e97f-4c0c-b6d3-db795661e466.webp?v=1752650534","width":2000},{"alt":null,"id":25830088900707,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6228ae6f21514be7e1b0f6a431dfd41c5102094_bf216666-e746-4022-b88a-c64b895b8d73.webp?v=1752650534"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6228ae6f21514be7e1b0f6a431dfd41c5102094_bf216666-e746-4022-b88a-c64b895b8d73.webp?v=1752650534","width":2000},{"alt":null,"id":25830089097315,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b56b5908c177c41c4fcdbdf04dd1036bfdd44a8_14019645-0005-4172-9cf0-5c54832380ae.webp?v=1752650535"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b56b5908c177c41c4fcdbdf04dd1036bfdd44a8_14019645-0005-4172-9cf0-5c54832380ae.webp?v=1752650535","width":2000},{"alt":null,"id":25830089424995,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae4a83fea4fc8db80d00eff81e363e4fddc51ffd_32b41c88-20e8-463b-8e67-64c0057591f4.webp?v=1752650535"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae4a83fea4fc8db80d00eff81e363e4fddc51ffd_32b41c88-20e8-463b-8e67-64c0057591f4.webp?v=1752650535","width":2000},{"alt":null,"id":25830089719907,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c75913035b6ef85d37a0073b251a83916a0040a8_07a88da6-26f6-4812-b364-ff05ccc384e7.webp?v=1752650536"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c75913035b6ef85d37a0073b251a83916a0040a8_07a88da6-26f6-4812-b364-ff05ccc384e7.webp?v=1752650536","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43302755270755,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118724-XF52","requires_shipping":true,"taxable":true,"featured_image":{"id":34197761425507,"product_id":7769524666467,"position":7,"created_at":"2025-07-16T15:22:12+08:00","updated_at":"2025-07-16T15:22:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9edbe6fd5223688cfa561c1017c1ffd745572361_bddb951b-e97f-4c0c-b6d3-db795661e466.webp?v=1752650534","variant_ids":[43302755270755]},"available":true,"name":"iPhone 12 Pro Max Mod NX (MagSafe 兼容) ilovedoodle The Sun and Cat - 太陽與貓 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118724-XF52","featured_media":{"alt":null,"id":25830088605795,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9edbe6fd5223688cfa561c1017c1ffd745572361_bddb951b-e97f-4c0c-b6d3-db795661e466.webp?v=1752650534"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43302755270755,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118724-XF52","requires_shipping":true,"taxable":true,"featured_image":{"id":34197761425507,"product_id":7769524666467,"position":7,"created_at":"2025-07-16T15:22:12+08:00","updated_at":"2025-07-16T15:22:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9edbe6fd5223688cfa561c1017c1ffd745572361_bddb951b-e97f-4c0c-b6d3-db795661e466.webp?v=1752650534","variant_ids":[43302755270755]},"available":true,"name":"iPhone 12 Pro Max Mod NX (MagSafe 兼容) ilovedoodle The Sun and Cat - 太陽與貓 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118724-XF52","featured_media":{"alt":null,"id":25830088605795,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9edbe6fd5223688cfa561c1017c1ffd745572361_bddb951b-e97f-4c0c-b6d3-db795661e466.webp?v=1752650534"}},"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: "停產" }