$product = {"id":7411119849571,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Look - 大自然的傑作(錫安國家公園)","handle":"iphone-15-plus-mod-nx-magsafe-printable-af14","description":null,"published_at":"2024-06-11T17:36:49+08:00","created_at":"2024-05-04T22:46:50+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":41895164477539,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-AF14","requires_shipping":true,"taxable":true,"featured_image":{"id":31479568793699,"product_id":7411119849571,"position":9,"created_at":"2024-05-04T22:47:15+08:00","updated_at":"2024-05-04T22:47:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b336fd2db9593d5ee26a4bffd9c0d78967c5dc15_56f54ea6-7820-4762-977f-c335da9cd3dc.webp?v=1714834035","variant_ids":[41895164477539]},"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-AF14","featured_media":{"alt":null,"id":23884816482403,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b336fd2db9593d5ee26a4bffd9c0d78967c5dc15_56f54ea6-7820-4762-977f-c335da9cd3dc.webp?v=1714834035"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41895164641379,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-AF14","requires_shipping":true,"taxable":true,"featured_image":{"id":31479567614051,"product_id":7411119849571,"position":7,"created_at":"2024-05-04T22:47:10+08:00","updated_at":"2024-05-04T22:47:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb123a25c4eb25a1fe2093d29bd9b132d3ad4e80_b8a5a27a-58f6-41ca-ae94-ce2c7d600759.webp?v=1714834030","variant_ids":[41895164641379]},"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-AF14","featured_media":{"alt":null,"id":23884815302755,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb123a25c4eb25a1fe2093d29bd9b132d3ad4e80_b8a5a27a-58f6-41ca-ae94-ce2c7d600759.webp?v=1714834030"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/787bb54963d2c3e69f1d0836a7302b6a5ad81efe_d9ed9765-9c0e-433e-9806-2331942e630a.webp?v=1714834013","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20f1bef51febbbc11859baa23415b3fdc3ec5d06_1f3df91a-b3bb-4170-994a-02fe748ccdb6.webp?v=1714834015","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e463d365a3ce4a181ffe4186aa1c3ab03a87859d_0d48f680-d59b-49cd-a599-e9ba18ff0882.webp?v=1714834018","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bb1c11051231b7fcdb99fae0422b09525e01e89_fde5dc74-d51b-48ca-8e79-a830c7491689.webp?v=1714834020","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ad7de6df8aab886a377c481eebc5ba74449f7bd_e9bc2053-269d-4e66-bedb-3af486d7207b.webp?v=1714834023","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77d8b81cbf79f1557951a2e5d85c6306980ce32d_7d91a999-179e-4441-9e85-fea73be06c24.webp?v=1714834027","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb123a25c4eb25a1fe2093d29bd9b132d3ad4e80_b8a5a27a-58f6-41ca-ae94-ce2c7d600759.webp?v=1714834030","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8792f5786dd335e535624bb7d7af1b826a708f4_fdbd2a72-c4ef-47d9-8677-61c110d74407.webp?v=1714834032","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b336fd2db9593d5ee26a4bffd9c0d78967c5dc15_56f54ea6-7820-4762-977f-c335da9cd3dc.webp?v=1714834035"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/787bb54963d2c3e69f1d0836a7302b6a5ad81efe_d9ed9765-9c0e-433e-9806-2331942e630a.webp?v=1714834013","options":["color"],"media":[{"alt":null,"id":23884812222563,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/787bb54963d2c3e69f1d0836a7302b6a5ad81efe_d9ed9765-9c0e-433e-9806-2331942e630a.webp?v=1714834013"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/787bb54963d2c3e69f1d0836a7302b6a5ad81efe_d9ed9765-9c0e-433e-9806-2331942e630a.webp?v=1714834013","width":2000},{"alt":null,"id":23884812484707,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20f1bef51febbbc11859baa23415b3fdc3ec5d06_1f3df91a-b3bb-4170-994a-02fe748ccdb6.webp?v=1714834015"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20f1bef51febbbc11859baa23415b3fdc3ec5d06_1f3df91a-b3bb-4170-994a-02fe748ccdb6.webp?v=1714834015","width":2000},{"alt":null,"id":23884812648547,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e463d365a3ce4a181ffe4186aa1c3ab03a87859d_0d48f680-d59b-49cd-a599-e9ba18ff0882.webp?v=1714834018"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e463d365a3ce4a181ffe4186aa1c3ab03a87859d_0d48f680-d59b-49cd-a599-e9ba18ff0882.webp?v=1714834018","width":2000},{"alt":null,"id":23884813271139,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bb1c11051231b7fcdb99fae0422b09525e01e89_fde5dc74-d51b-48ca-8e79-a830c7491689.webp?v=1714834020"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bb1c11051231b7fcdb99fae0422b09525e01e89_fde5dc74-d51b-48ca-8e79-a830c7491689.webp?v=1714834020","width":2000},{"alt":null,"id":23884813992035,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ad7de6df8aab886a377c481eebc5ba74449f7bd_e9bc2053-269d-4e66-bedb-3af486d7207b.webp?v=1714834023"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ad7de6df8aab886a377c481eebc5ba74449f7bd_e9bc2053-269d-4e66-bedb-3af486d7207b.webp?v=1714834023","width":2000},{"alt":null,"id":23884814811235,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77d8b81cbf79f1557951a2e5d85c6306980ce32d_7d91a999-179e-4441-9e85-fea73be06c24.webp?v=1714834027"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77d8b81cbf79f1557951a2e5d85c6306980ce32d_7d91a999-179e-4441-9e85-fea73be06c24.webp?v=1714834027","width":2000},{"alt":null,"id":23884815302755,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb123a25c4eb25a1fe2093d29bd9b132d3ad4e80_b8a5a27a-58f6-41ca-ae94-ce2c7d600759.webp?v=1714834030"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb123a25c4eb25a1fe2093d29bd9b132d3ad4e80_b8a5a27a-58f6-41ca-ae94-ce2c7d600759.webp?v=1714834030","width":2000},{"alt":null,"id":23884815728739,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8792f5786dd335e535624bb7d7af1b826a708f4_fdbd2a72-c4ef-47d9-8677-61c110d74407.webp?v=1714834032"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8792f5786dd335e535624bb7d7af1b826a708f4_fdbd2a72-c4ef-47d9-8677-61c110d74407.webp?v=1714834032","width":2000},{"alt":null,"id":23884816482403,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b336fd2db9593d5ee26a4bffd9c0d78967c5dc15_56f54ea6-7820-4762-977f-c335da9cd3dc.webp?v=1714834035"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b336fd2db9593d5ee26a4bffd9c0d78967c5dc15_56f54ea6-7820-4762-977f-c335da9cd3dc.webp?v=1714834035","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41895164477539,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-AF14","requires_shipping":true,"taxable":true,"featured_image":{"id":31479568793699,"product_id":7411119849571,"position":9,"created_at":"2024-05-04T22:47:15+08:00","updated_at":"2024-05-04T22:47:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b336fd2db9593d5ee26a4bffd9c0d78967c5dc15_56f54ea6-7820-4762-977f-c335da9cd3dc.webp?v=1714834035","variant_ids":[41895164477539]},"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-AF14","featured_media":{"alt":null,"id":23884816482403,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b336fd2db9593d5ee26a4bffd9c0d78967c5dc15_56f54ea6-7820-4762-977f-c335da9cd3dc.webp?v=1714834035"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41895164641379,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-AF14","requires_shipping":true,"taxable":true,"featured_image":{"id":31479567614051,"product_id":7411119849571,"position":7,"created_at":"2024-05-04T22:47:10+08:00","updated_at":"2024-05-04T22:47:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb123a25c4eb25a1fe2093d29bd9b132d3ad4e80_b8a5a27a-58f6-41ca-ae94-ce2c7d600759.webp?v=1714834030","variant_ids":[41895164641379]},"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-AF14","featured_media":{"alt":null,"id":23884815302755,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb123a25c4eb25a1fe2093d29bd9b132d3ad4e80_b8a5a27a-58f6-41ca-ae94-ce2c7d600759.webp?v=1714834030"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41895164477539,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-AF14","requires_shipping":true,"taxable":true,"featured_image":{"id":31479568793699,"product_id":7411119849571,"position":9,"created_at":"2024-05-04T22:47:15+08:00","updated_at":"2024-05-04T22:47:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b336fd2db9593d5ee26a4bffd9c0d78967c5dc15_56f54ea6-7820-4762-977f-c335da9cd3dc.webp?v=1714834035","variant_ids":[41895164477539]},"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-AF14","featured_media":{"alt":null,"id":23884816482403,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b336fd2db9593d5ee26a4bffd9c0d78967c5dc15_56f54ea6-7820-4762-977f-c335da9cd3dc.webp?v=1714834035"}},"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: "停產" }