$product = {"id":7411103727715,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Look - 人在做 加納利群島在看","handle":"iphone-15-plus-mod-nx-magsafe-printable-af08","description":null,"published_at":"2024-06-11T17:36:24+08:00","created_at":"2024-05-04T22:43:33+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Look","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-look","device-iPhone 15 Plus","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-look","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":41895005651043,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-AF08","requires_shipping":true,"taxable":true,"featured_image":{"id":31479522197603,"product_id":7411103727715,"position":9,"created_at":"2024-05-04T22:43:53+08:00","updated_at":"2024-05-04T22:43:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aaf5a4a1bb040263f8b6e1668235c15fb140d19c_c21f6d34-a6af-47bb-bd64-8462fe7226f5.webp?v=1714833833","variant_ids":[41895005651043]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Look - 人在做 加納利群島在看 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129624-AF08","featured_media":{"alt":null,"id":23884769919075,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aaf5a4a1bb040263f8b6e1668235c15fb140d19c_c21f6d34-a6af-47bb-bd64-8462fe7226f5.webp?v=1714833833"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41895006044259,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-AF08","requires_shipping":true,"taxable":true,"featured_image":{"id":31479520526435,"product_id":7411103727715,"position":4,"created_at":"2024-05-04T22:43:42+08:00","updated_at":"2024-05-04T22:43:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0bc8c6808c227c8ed7bc88087e08af13bb67f48_fa5a6b79-cd13-4c3b-b9af-32f2f3926e42.webp?v=1714833822","variant_ids":[41895006044259]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Look - 人在做 加納利群島在看 - Mod NX-櫻花粉邊框","public_title":"Mod NX-櫻花粉邊框","options":["Mod NX-櫻花粉邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129657-AF08","featured_media":{"alt":null,"id":23884768280675,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0bc8c6808c227c8ed7bc88087e08af13bb67f48_fa5a6b79-cd13-4c3b-b9af-32f2f3926e42.webp?v=1714833822"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bf806a01bab32dd2be7bf4506a844b0d8332ec2_d3bd2d56-834f-4429-bd0c-ba811c7478ce.webp?v=1714833815","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db94d1a178efd9294f56a72b1e17a15f3b30de02_2d5e50f7-0242-4267-8fba-2e241506a7a6.webp?v=1714833817","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6eef698a8e6f88b703aeb2de9210a11e785a00c6_0ad30233-cfa2-4842-832c-8376e69c5302.webp?v=1714833820","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0bc8c6808c227c8ed7bc88087e08af13bb67f48_fa5a6b79-cd13-4c3b-b9af-32f2f3926e42.webp?v=1714833822","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9f91a2b5b060844c5cc04797c6e57a2c53ad704_3e62d50b-77b0-4f99-9b2b-6a72cd94eb8e.webp?v=1714833824","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53418de1d1f9946c30f125f0efa3d7f90d6ec393_16d00824-456b-4075-bfe2-55a689d20697.webp?v=1714833826","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25fc57e624515dc74f350ec2615554e596f9494d_ff9d2dc0-fc04-4757-95b3-830254d4627f.webp?v=1714833829","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bef082fd8252d2e4940373b36cc2a6bd38e9fb4f_62a6983a-9175-4646-a710-b42ee29588fa.webp?v=1714833831","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aaf5a4a1bb040263f8b6e1668235c15fb140d19c_c21f6d34-a6af-47bb-bd64-8462fe7226f5.webp?v=1714833833","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0e9926c4adac5f248ebe375e3edc262c7751ec6_9066662f-f02a-4b8e-9b0f-402aa14cd885.webp?v=1714833836"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bf806a01bab32dd2be7bf4506a844b0d8332ec2_d3bd2d56-834f-4429-bd0c-ba811c7478ce.webp?v=1714833815","options":["color"],"media":[{"alt":null,"id":23884766281827,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bf806a01bab32dd2be7bf4506a844b0d8332ec2_d3bd2d56-834f-4429-bd0c-ba811c7478ce.webp?v=1714833815"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bf806a01bab32dd2be7bf4506a844b0d8332ec2_d3bd2d56-834f-4429-bd0c-ba811c7478ce.webp?v=1714833815","width":2000},{"alt":null,"id":23884766838883,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db94d1a178efd9294f56a72b1e17a15f3b30de02_2d5e50f7-0242-4267-8fba-2e241506a7a6.webp?v=1714833817"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db94d1a178efd9294f56a72b1e17a15f3b30de02_2d5e50f7-0242-4267-8fba-2e241506a7a6.webp?v=1714833817","width":2000},{"alt":null,"id":23884767559779,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6eef698a8e6f88b703aeb2de9210a11e785a00c6_0ad30233-cfa2-4842-832c-8376e69c5302.webp?v=1714833820"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6eef698a8e6f88b703aeb2de9210a11e785a00c6_0ad30233-cfa2-4842-832c-8376e69c5302.webp?v=1714833820","width":2000},{"alt":null,"id":23884768280675,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0bc8c6808c227c8ed7bc88087e08af13bb67f48_fa5a6b79-cd13-4c3b-b9af-32f2f3926e42.webp?v=1714833822"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0bc8c6808c227c8ed7bc88087e08af13bb67f48_fa5a6b79-cd13-4c3b-b9af-32f2f3926e42.webp?v=1714833822","width":2000},{"alt":null,"id":23884768641123,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9f91a2b5b060844c5cc04797c6e57a2c53ad704_3e62d50b-77b0-4f99-9b2b-6a72cd94eb8e.webp?v=1714833824"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9f91a2b5b060844c5cc04797c6e57a2c53ad704_3e62d50b-77b0-4f99-9b2b-6a72cd94eb8e.webp?v=1714833824","width":2000},{"alt":null,"id":23884768903267,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53418de1d1f9946c30f125f0efa3d7f90d6ec393_16d00824-456b-4075-bfe2-55a689d20697.webp?v=1714833826"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53418de1d1f9946c30f125f0efa3d7f90d6ec393_16d00824-456b-4075-bfe2-55a689d20697.webp?v=1714833826","width":2000},{"alt":null,"id":23884769132643,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25fc57e624515dc74f350ec2615554e596f9494d_ff9d2dc0-fc04-4757-95b3-830254d4627f.webp?v=1714833829"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25fc57e624515dc74f350ec2615554e596f9494d_ff9d2dc0-fc04-4757-95b3-830254d4627f.webp?v=1714833829","width":2000},{"alt":null,"id":23884769362019,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bef082fd8252d2e4940373b36cc2a6bd38e9fb4f_62a6983a-9175-4646-a710-b42ee29588fa.webp?v=1714833831"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bef082fd8252d2e4940373b36cc2a6bd38e9fb4f_62a6983a-9175-4646-a710-b42ee29588fa.webp?v=1714833831","width":2000},{"alt":null,"id":23884769919075,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aaf5a4a1bb040263f8b6e1668235c15fb140d19c_c21f6d34-a6af-47bb-bd64-8462fe7226f5.webp?v=1714833833"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aaf5a4a1bb040263f8b6e1668235c15fb140d19c_c21f6d34-a6af-47bb-bd64-8462fe7226f5.webp?v=1714833833","width":2000},{"alt":null,"id":23884770410595,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0e9926c4adac5f248ebe375e3edc262c7751ec6_9066662f-f02a-4b8e-9b0f-402aa14cd885.webp?v=1714833836"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0e9926c4adac5f248ebe375e3edc262c7751ec6_9066662f-f02a-4b8e-9b0f-402aa14cd885.webp?v=1714833836","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41895005651043,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-AF08","requires_shipping":true,"taxable":true,"featured_image":{"id":31479522197603,"product_id":7411103727715,"position":9,"created_at":"2024-05-04T22:43:53+08:00","updated_at":"2024-05-04T22:43:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aaf5a4a1bb040263f8b6e1668235c15fb140d19c_c21f6d34-a6af-47bb-bd64-8462fe7226f5.webp?v=1714833833","variant_ids":[41895005651043]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Look - 人在做 加納利群島在看 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129624-AF08","featured_media":{"alt":null,"id":23884769919075,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aaf5a4a1bb040263f8b6e1668235c15fb140d19c_c21f6d34-a6af-47bb-bd64-8462fe7226f5.webp?v=1714833833"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41895006044259,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-AF08","requires_shipping":true,"taxable":true,"featured_image":{"id":31479520526435,"product_id":7411103727715,"position":4,"created_at":"2024-05-04T22:43:42+08:00","updated_at":"2024-05-04T22:43:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0bc8c6808c227c8ed7bc88087e08af13bb67f48_fa5a6b79-cd13-4c3b-b9af-32f2f3926e42.webp?v=1714833822","variant_ids":[41895006044259]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Look - 人在做 加納利群島在看 - Mod NX-櫻花粉邊框","public_title":"Mod NX-櫻花粉邊框","options":["Mod NX-櫻花粉邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129657-AF08","featured_media":{"alt":null,"id":23884768280675,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0bc8c6808c227c8ed7bc88087e08af13bb67f48_fa5a6b79-cd13-4c3b-b9af-32f2f3926e42.webp?v=1714833822"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41895005651043,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-AF08","requires_shipping":true,"taxable":true,"featured_image":{"id":31479522197603,"product_id":7411103727715,"position":9,"created_at":"2024-05-04T22:43:53+08:00","updated_at":"2024-05-04T22:43:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aaf5a4a1bb040263f8b6e1668235c15fb140d19c_c21f6d34-a6af-47bb-bd64-8462fe7226f5.webp?v=1714833833","variant_ids":[41895005651043]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Look - 人在做 加納利群島在看 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129624-AF08","featured_media":{"alt":null,"id":23884769919075,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aaf5a4a1bb040263f8b6e1668235c15fb140d19c_c21f6d34-a6af-47bb-bd64-8462fe7226f5.webp?v=1714833833"}},"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: "停產" }