$product = {"id":7414328819811,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - The Powerpuff Girls - 魔人啾啾的攻擊","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-sr04","description":null,"published_at":"2024-06-11T17:50:48+08:00","created_at":"2024-05-05T14:22:11+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區The Powerpuff Girls","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-the-power-puff-girls","device-iPhone 13 Pro Max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-the-power-puff-girls","Top50","type-Mod NX Printable MagSafe Printable"],"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":41905770430563,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SR04","requires_shipping":true,"taxable":true,"featured_image":{"id":31485177233507,"product_id":7414328819811,"position":2,"created_at":"2024-05-05T14:22:16+08:00","updated_at":"2024-05-05T14:22:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0eb7f8a8b7b28515ccea21957fe9a84108a6b0bd_d15d20c7-f14f-4ce1-a878-049b7f8acbcd.webp?v=1714890136","variant_ids":[41905770430563]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - The Powerpuff Girls - 魔人啾啾的攻擊 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-SR04","featured_media":{"alt":null,"id":23890493669475,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0eb7f8a8b7b28515ccea21957fe9a84108a6b0bd_d15d20c7-f14f-4ce1-a878-049b7f8acbcd.webp?v=1714890136"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905771053155,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-SR04","requires_shipping":true,"taxable":true,"featured_image":{"id":31485173629027,"product_id":7414328819811,"position":1,"created_at":"2024-05-05T14:22:14+08:00","updated_at":"2024-05-05T14:22:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0db82580c69ac9721ea68643332e648ea4f96b0_6ad58261-69e8-49e7-af00-31d72499cd52.webp?v=1714890134","variant_ids":[41905771053155]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - The Powerpuff Girls - 魔人啾啾的攻擊 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01232J5-SR04","featured_media":{"alt":null,"id":23890489901155,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0db82580c69ac9721ea68643332e648ea4f96b0_6ad58261-69e8-49e7-af00-31d72499cd52.webp?v=1714890134"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0db82580c69ac9721ea68643332e648ea4f96b0_6ad58261-69e8-49e7-af00-31d72499cd52.webp?v=1714890134","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0eb7f8a8b7b28515ccea21957fe9a84108a6b0bd_d15d20c7-f14f-4ce1-a878-049b7f8acbcd.webp?v=1714890136","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a758f0a9220560dce3c9f2f2c2ea345a5aa3678_0de3c561-56a4-4e23-985d-394ed7f6d36a.webp?v=1714890139","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65d910843c9fcb474b99ae9a2dbd2b4b3dca3f90_03746d4d-1919-4156-bf7b-d8279c86c579.webp?v=1714890141","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbac615a3620964e3ae1448dc4f852e08f36c68b_d2457dcd-eedb-4eff-bf75-e9fd2b792848.webp?v=1714890143","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26f5801c62862b0ae3c6c6764d3f2fee8fee08f6_3afc64fd-7554-40b2-8496-fc50f1bfa7d7.webp?v=1714890146","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76b005f6014cf53ba4d1db65998f65c82417da39_e737174b-0b27-45e2-ace3-6baa997d5054.webp?v=1714890148","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dcfe918b9849c315715dcda03cd111a418de0c7a_f086f02d-3cf9-47b7-a35b-a4d09b9b481e.webp?v=1714890151","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c21b07cde053d8473e4f72ec2f8863ab949ace2e_a8d71dca-139b-4d34-b6de-438f116c55c8.webp?v=1714890153","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06d762aaecc158452bb87c1ef449b8a2b65d5931_88d59111-ed37-4828-bb1a-c6fe3709103e.webp?v=1714890155","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fa68112d76d027474212b4632acbd270d09e324_036cdb11-1b39-400c-8d0d-3771f4dc7326.webp?v=1714890158"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0db82580c69ac9721ea68643332e648ea4f96b0_6ad58261-69e8-49e7-af00-31d72499cd52.webp?v=1714890134","options":["color"],"media":[{"alt":null,"id":23890489901155,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0db82580c69ac9721ea68643332e648ea4f96b0_6ad58261-69e8-49e7-af00-31d72499cd52.webp?v=1714890134"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0db82580c69ac9721ea68643332e648ea4f96b0_6ad58261-69e8-49e7-af00-31d72499cd52.webp?v=1714890134","width":2000},{"alt":null,"id":23890493669475,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0eb7f8a8b7b28515ccea21957fe9a84108a6b0bd_d15d20c7-f14f-4ce1-a878-049b7f8acbcd.webp?v=1714890136"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0eb7f8a8b7b28515ccea21957fe9a84108a6b0bd_d15d20c7-f14f-4ce1-a878-049b7f8acbcd.webp?v=1714890136","width":2000},{"alt":null,"id":23890497142883,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a758f0a9220560dce3c9f2f2c2ea345a5aa3678_0de3c561-56a4-4e23-985d-394ed7f6d36a.webp?v=1714890139"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a758f0a9220560dce3c9f2f2c2ea345a5aa3678_0de3c561-56a4-4e23-985d-394ed7f6d36a.webp?v=1714890139","width":2000},{"alt":null,"id":23890500780131,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65d910843c9fcb474b99ae9a2dbd2b4b3dca3f90_03746d4d-1919-4156-bf7b-d8279c86c579.webp?v=1714890141"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65d910843c9fcb474b99ae9a2dbd2b4b3dca3f90_03746d4d-1919-4156-bf7b-d8279c86c579.webp?v=1714890141","width":2000},{"alt":null,"id":23890504319075,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbac615a3620964e3ae1448dc4f852e08f36c68b_d2457dcd-eedb-4eff-bf75-e9fd2b792848.webp?v=1714890143"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbac615a3620964e3ae1448dc4f852e08f36c68b_d2457dcd-eedb-4eff-bf75-e9fd2b792848.webp?v=1714890143","width":2000},{"alt":null,"id":23890508021859,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26f5801c62862b0ae3c6c6764d3f2fee8fee08f6_3afc64fd-7554-40b2-8496-fc50f1bfa7d7.webp?v=1714890146"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26f5801c62862b0ae3c6c6764d3f2fee8fee08f6_3afc64fd-7554-40b2-8496-fc50f1bfa7d7.webp?v=1714890146","width":2000},{"alt":null,"id":23890511396963,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76b005f6014cf53ba4d1db65998f65c82417da39_e737174b-0b27-45e2-ace3-6baa997d5054.webp?v=1714890148"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76b005f6014cf53ba4d1db65998f65c82417da39_e737174b-0b27-45e2-ace3-6baa997d5054.webp?v=1714890148","width":2000},{"alt":null,"id":23890514903139,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dcfe918b9849c315715dcda03cd111a418de0c7a_f086f02d-3cf9-47b7-a35b-a4d09b9b481e.webp?v=1714890151"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dcfe918b9849c315715dcda03cd111a418de0c7a_f086f02d-3cf9-47b7-a35b-a4d09b9b481e.webp?v=1714890151","width":2000},{"alt":null,"id":23890518409315,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c21b07cde053d8473e4f72ec2f8863ab949ace2e_a8d71dca-139b-4d34-b6de-438f116c55c8.webp?v=1714890153"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c21b07cde053d8473e4f72ec2f8863ab949ace2e_a8d71dca-139b-4d34-b6de-438f116c55c8.webp?v=1714890153","width":2000},{"alt":null,"id":23890521391203,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06d762aaecc158452bb87c1ef449b8a2b65d5931_88d59111-ed37-4828-bb1a-c6fe3709103e.webp?v=1714890155"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06d762aaecc158452bb87c1ef449b8a2b65d5931_88d59111-ed37-4828-bb1a-c6fe3709103e.webp?v=1714890155","width":2000},{"alt":null,"id":23890524799075,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fa68112d76d027474212b4632acbd270d09e324_036cdb11-1b39-400c-8d0d-3771f4dc7326.webp?v=1714890158"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fa68112d76d027474212b4632acbd270d09e324_036cdb11-1b39-400c-8d0d-3771f4dc7326.webp?v=1714890158","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41905770430563,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SR04","requires_shipping":true,"taxable":true,"featured_image":{"id":31485177233507,"product_id":7414328819811,"position":2,"created_at":"2024-05-05T14:22:16+08:00","updated_at":"2024-05-05T14:22:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0eb7f8a8b7b28515ccea21957fe9a84108a6b0bd_d15d20c7-f14f-4ce1-a878-049b7f8acbcd.webp?v=1714890136","variant_ids":[41905770430563]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - The Powerpuff Girls - 魔人啾啾的攻擊 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-SR04","featured_media":{"alt":null,"id":23890493669475,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0eb7f8a8b7b28515ccea21957fe9a84108a6b0bd_d15d20c7-f14f-4ce1-a878-049b7f8acbcd.webp?v=1714890136"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905771053155,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-SR04","requires_shipping":true,"taxable":true,"featured_image":{"id":31485173629027,"product_id":7414328819811,"position":1,"created_at":"2024-05-05T14:22:14+08:00","updated_at":"2024-05-05T14:22:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0db82580c69ac9721ea68643332e648ea4f96b0_6ad58261-69e8-49e7-af00-31d72499cd52.webp?v=1714890134","variant_ids":[41905771053155]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - The Powerpuff Girls - 魔人啾啾的攻擊 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01232J5-SR04","featured_media":{"alt":null,"id":23890489901155,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0db82580c69ac9721ea68643332e648ea4f96b0_6ad58261-69e8-49e7-af00-31d72499cd52.webp?v=1714890134"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41905770430563,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SR04","requires_shipping":true,"taxable":true,"featured_image":{"id":31485177233507,"product_id":7414328819811,"position":2,"created_at":"2024-05-05T14:22:16+08:00","updated_at":"2024-05-05T14:22:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0eb7f8a8b7b28515ccea21957fe9a84108a6b0bd_d15d20c7-f14f-4ce1-a878-049b7f8acbcd.webp?v=1714890136","variant_ids":[41905770430563]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - The Powerpuff Girls - 魔人啾啾的攻擊 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-SR04","featured_media":{"alt":null,"id":23890493669475,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0eb7f8a8b7b28515ccea21957fe9a84108a6b0bd_d15d20c7-f14f-4ce1-a878-049b7f8acbcd.webp?v=1714890136"}},"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: "停產" }