$product = {"id":7415082745955,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - The Powerpuff Girls - 愛心徽章","handle":"iphone-12-pro-max-mod-nx-magsafe-printable-sr02","description":null,"published_at":"2024-06-11T17:57:30+08:00","created_at":"2024-05-05T20:19:29+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 12 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":41911680893027,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-SR02","requires_shipping":true,"taxable":true,"featured_image":{"id":31488113508451,"product_id":7415082745955,"position":6,"created_at":"2024-05-05T20:19:43+08:00","updated_at":"2024-05-05T20:19:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d652c6ec831118b299a111491d60c1d1b1f728e_dad5a20a-c15e-40ea-91da-5ee6885cab1a.webp?v=1714911583","variant_ids":[41911680893027]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 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":"MPB0118724-SR02","featured_media":{"alt":null,"id":23893458026595,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d652c6ec831118b299a111491d60c1d1b1f728e_dad5a20a-c15e-40ea-91da-5ee6885cab1a.webp?v=1714911583"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c38abad8ed5cec6f3d0c777ab53a444a667d7bc6_c8739cbe-328a-47b3-bd59-7cd20cef00d9.webp?v=1714911571","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89e1dd23735a9f25d9bc2bb94ecdc9559c7c08e7_5e33ed03-f982-4c0b-9c4d-a4d7d979f875.webp?v=1714911574","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85e97b24f247333de3d0783a160b19de07718427_ac8fe16d-58ff-42f8-8d65-3ecedf2d4dcd.webp?v=1714911576","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1546c5d1798983cd04eef674fc2de263df7614fb_646a7738-47d8-41d7-a7d5-06091724954b.webp?v=1714911578","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4ffe5901f10a23f5fbd42416b2731dd827969e2_b439d79c-0686-4d8e-80e9-dd5b83511013.webp?v=1714911580","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d652c6ec831118b299a111491d60c1d1b1f728e_dad5a20a-c15e-40ea-91da-5ee6885cab1a.webp?v=1714911583","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d886c015c9bb3e05f532c1fae649e13b98c99d32_9e039b7a-4631-4a25-a3b3-57a2677f3515.webp?v=1714911585","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97c93e542a1c4878b1f819090ace523279a60075_acad654b-8d22-4e4a-a8db-c7f80e500b46.webp?v=1714911587","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab11339691a086b8e4150700a8157a435d4d2642_e847f5e9-c15c-4953-aa2b-96a106c056d7.webp?v=1714911589","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09f026a1c39b9ad3544f0cccca8fe2a0efa84185_b6f62092-612b-4340-b55e-3d8e5f280003.webp?v=1714911591"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c38abad8ed5cec6f3d0c777ab53a444a667d7bc6_c8739cbe-328a-47b3-bd59-7cd20cef00d9.webp?v=1714911571","options":["color"],"media":[{"alt":null,"id":23893455470691,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c38abad8ed5cec6f3d0c777ab53a444a667d7bc6_c8739cbe-328a-47b3-bd59-7cd20cef00d9.webp?v=1714911571"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c38abad8ed5cec6f3d0c777ab53a444a667d7bc6_c8739cbe-328a-47b3-bd59-7cd20cef00d9.webp?v=1714911571","width":2000},{"alt":null,"id":23893455929443,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89e1dd23735a9f25d9bc2bb94ecdc9559c7c08e7_5e33ed03-f982-4c0b-9c4d-a4d7d979f875.webp?v=1714911574"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89e1dd23735a9f25d9bc2bb94ecdc9559c7c08e7_5e33ed03-f982-4c0b-9c4d-a4d7d979f875.webp?v=1714911574","width":2000},{"alt":null,"id":23893456650339,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85e97b24f247333de3d0783a160b19de07718427_ac8fe16d-58ff-42f8-8d65-3ecedf2d4dcd.webp?v=1714911576"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85e97b24f247333de3d0783a160b19de07718427_ac8fe16d-58ff-42f8-8d65-3ecedf2d4dcd.webp?v=1714911576","width":2000},{"alt":null,"id":23893457240163,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1546c5d1798983cd04eef674fc2de263df7614fb_646a7738-47d8-41d7-a7d5-06091724954b.webp?v=1714911578"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1546c5d1798983cd04eef674fc2de263df7614fb_646a7738-47d8-41d7-a7d5-06091724954b.webp?v=1714911578","width":2000},{"alt":null,"id":23893457666147,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4ffe5901f10a23f5fbd42416b2731dd827969e2_b439d79c-0686-4d8e-80e9-dd5b83511013.webp?v=1714911580"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4ffe5901f10a23f5fbd42416b2731dd827969e2_b439d79c-0686-4d8e-80e9-dd5b83511013.webp?v=1714911580","width":2000},{"alt":null,"id":23893458026595,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d652c6ec831118b299a111491d60c1d1b1f728e_dad5a20a-c15e-40ea-91da-5ee6885cab1a.webp?v=1714911583"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d652c6ec831118b299a111491d60c1d1b1f728e_dad5a20a-c15e-40ea-91da-5ee6885cab1a.webp?v=1714911583","width":2000},{"alt":null,"id":23893458583651,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d886c015c9bb3e05f532c1fae649e13b98c99d32_9e039b7a-4631-4a25-a3b3-57a2677f3515.webp?v=1714911585"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d886c015c9bb3e05f532c1fae649e13b98c99d32_9e039b7a-4631-4a25-a3b3-57a2677f3515.webp?v=1714911585","width":2000},{"alt":null,"id":23893459075171,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97c93e542a1c4878b1f819090ace523279a60075_acad654b-8d22-4e4a-a8db-c7f80e500b46.webp?v=1714911587"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97c93e542a1c4878b1f819090ace523279a60075_acad654b-8d22-4e4a-a8db-c7f80e500b46.webp?v=1714911587","width":2000},{"alt":null,"id":23893459501155,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab11339691a086b8e4150700a8157a435d4d2642_e847f5e9-c15c-4953-aa2b-96a106c056d7.webp?v=1714911589"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab11339691a086b8e4150700a8157a435d4d2642_e847f5e9-c15c-4953-aa2b-96a106c056d7.webp?v=1714911589","width":2000},{"alt":null,"id":23893459992675,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09f026a1c39b9ad3544f0cccca8fe2a0efa84185_b6f62092-612b-4340-b55e-3d8e5f280003.webp?v=1714911591"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09f026a1c39b9ad3544f0cccca8fe2a0efa84185_b6f62092-612b-4340-b55e-3d8e5f280003.webp?v=1714911591","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41911680893027,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-SR02","requires_shipping":true,"taxable":true,"featured_image":{"id":31488113508451,"product_id":7415082745955,"position":6,"created_at":"2024-05-05T20:19:43+08:00","updated_at":"2024-05-05T20:19:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d652c6ec831118b299a111491d60c1d1b1f728e_dad5a20a-c15e-40ea-91da-5ee6885cab1a.webp?v=1714911583","variant_ids":[41911680893027]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 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":"MPB0118724-SR02","featured_media":{"alt":null,"id":23893458026595,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d652c6ec831118b299a111491d60c1d1b1f728e_dad5a20a-c15e-40ea-91da-5ee6885cab1a.webp?v=1714911583"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41911680893027,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-SR02","requires_shipping":true,"taxable":true,"featured_image":{"id":31488113508451,"product_id":7415082745955,"position":6,"created_at":"2024-05-05T20:19:43+08:00","updated_at":"2024-05-05T20:19:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d652c6ec831118b299a111491d60c1d1b1f728e_dad5a20a-c15e-40ea-91da-5ee6885cab1a.webp?v=1714911583","variant_ids":[41911680893027]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 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":"MPB0118724-SR02","featured_media":{"alt":null,"id":23893458026595,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d652c6ec831118b299a111491d60c1d1b1f728e_dad5a20a-c15e-40ea-91da-5ee6885cab1a.webp?v=1714911583"}},"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: "停產" }