$product = {"id":7411226214499,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Batman - 小丑女圖騰","handle":"iphone-14-plus-mod-nx-magsafe-printable-sb17","description":null,"published_at":"2024-06-11T17:39:16+08:00","created_at":"2024-05-04T23:48:56+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Batman","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-batman","device-iPhone 14 Plus","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-batman","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":41896228618339,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-SB17","requires_shipping":true,"taxable":true,"featured_image":{"id":31479894999139,"product_id":7411226214499,"position":3,"created_at":"2024-05-04T23:49:03+08:00","updated_at":"2024-05-04T23:49:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d7055148a59ad7a6b40565fa3a2ea4748e6bd38_6bf6687a-7c70-441c-9a70-9ab1515f9561.webp?v=1714837743","variant_ids":[41896228618339]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Batman - 小丑女圖騰 - 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":"MPB0126124-SB17","featured_media":{"alt":null,"id":23885145407587,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d7055148a59ad7a6b40565fa3a2ea4748e6bd38_6bf6687a-7c70-441c-9a70-9ab1515f9561.webp?v=1714837743"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27cfb1823d83af9f1fd9ea0ade36c778b7290563_8d84172f-d8ee-4c0d-b7b0-a95e620c79f2.webp?v=1714837738","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fd30ea6b7a3e5fa95a25cd41ede63c66ad412ab_1ad4d7be-5224-47a5-99b0-7a28f8819383.webp?v=1714837741","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d7055148a59ad7a6b40565fa3a2ea4748e6bd38_6bf6687a-7c70-441c-9a70-9ab1515f9561.webp?v=1714837743","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24d7380419fd2435a69a4f4c36f7cc74fd9c6425_327f7899-969e-409f-a4c1-391587526d4d.webp?v=1714837746","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f522334c43b0bdc504a38b5799f7fc6cde932abc_12c7824e-cc4c-4719-8c96-fd4d3fec8082.webp?v=1714837748","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f431e46fd813bf649bc6af4ebc537378428db41_88169523-2a0a-42a4-b11d-aa6e60476436.webp?v=1714837751","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ced63f3b01d056b95e2b40297efb04f6635c8a1f_4e330463-6e58-4def-a21f-a48b86125029.webp?v=1714837753","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dd11803823cda9ee9e70f9e092d5ca4adf36d1d_0a52b4a2-0e0f-4be6-861f-c5bd07df9b5b.webp?v=1714837756","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab8d2333958a71232e4f24cd8b05c9fd8b7144e5_2ea59f9b-78da-40bf-984d-ee084bb9504c.webp?v=1714837758","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ec3018a5d48f85c12a56f5f9f2556822deaa2ba_8bfe018b-7dcc-4ae1-b802-6d5dde662ade.webp?v=1714837761"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27cfb1823d83af9f1fd9ea0ade36c778b7290563_8d84172f-d8ee-4c0d-b7b0-a95e620c79f2.webp?v=1714837738","options":["color"],"media":[{"alt":null,"id":23885144227939,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27cfb1823d83af9f1fd9ea0ade36c778b7290563_8d84172f-d8ee-4c0d-b7b0-a95e620c79f2.webp?v=1714837738"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27cfb1823d83af9f1fd9ea0ade36c778b7290563_8d84172f-d8ee-4c0d-b7b0-a95e620c79f2.webp?v=1714837738","width":2000},{"alt":null,"id":23885144784995,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fd30ea6b7a3e5fa95a25cd41ede63c66ad412ab_1ad4d7be-5224-47a5-99b0-7a28f8819383.webp?v=1714837741"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fd30ea6b7a3e5fa95a25cd41ede63c66ad412ab_1ad4d7be-5224-47a5-99b0-7a28f8819383.webp?v=1714837741","width":2000},{"alt":null,"id":23885145407587,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d7055148a59ad7a6b40565fa3a2ea4748e6bd38_6bf6687a-7c70-441c-9a70-9ab1515f9561.webp?v=1714837743"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d7055148a59ad7a6b40565fa3a2ea4748e6bd38_6bf6687a-7c70-441c-9a70-9ab1515f9561.webp?v=1714837743","width":2000},{"alt":null,"id":23885145899107,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24d7380419fd2435a69a4f4c36f7cc74fd9c6425_327f7899-969e-409f-a4c1-391587526d4d.webp?v=1714837746"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24d7380419fd2435a69a4f4c36f7cc74fd9c6425_327f7899-969e-409f-a4c1-391587526d4d.webp?v=1714837746","width":2000},{"alt":null,"id":23885146751075,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f522334c43b0bdc504a38b5799f7fc6cde932abc_12c7824e-cc4c-4719-8c96-fd4d3fec8082.webp?v=1714837748"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f522334c43b0bdc504a38b5799f7fc6cde932abc_12c7824e-cc4c-4719-8c96-fd4d3fec8082.webp?v=1714837748","width":2000},{"alt":null,"id":23885147668579,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f431e46fd813bf649bc6af4ebc537378428db41_88169523-2a0a-42a4-b11d-aa6e60476436.webp?v=1714837751"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f431e46fd813bf649bc6af4ebc537378428db41_88169523-2a0a-42a4-b11d-aa6e60476436.webp?v=1714837751","width":2000},{"alt":null,"id":23885148422243,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ced63f3b01d056b95e2b40297efb04f6635c8a1f_4e330463-6e58-4def-a21f-a48b86125029.webp?v=1714837753"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ced63f3b01d056b95e2b40297efb04f6635c8a1f_4e330463-6e58-4def-a21f-a48b86125029.webp?v=1714837753","width":2000},{"alt":null,"id":23885149044835,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dd11803823cda9ee9e70f9e092d5ca4adf36d1d_0a52b4a2-0e0f-4be6-861f-c5bd07df9b5b.webp?v=1714837756"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dd11803823cda9ee9e70f9e092d5ca4adf36d1d_0a52b4a2-0e0f-4be6-861f-c5bd07df9b5b.webp?v=1714837756","width":2000},{"alt":null,"id":23885149634659,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab8d2333958a71232e4f24cd8b05c9fd8b7144e5_2ea59f9b-78da-40bf-984d-ee084bb9504c.webp?v=1714837758"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab8d2333958a71232e4f24cd8b05c9fd8b7144e5_2ea59f9b-78da-40bf-984d-ee084bb9504c.webp?v=1714837758","width":2000},{"alt":null,"id":23885150257251,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ec3018a5d48f85c12a56f5f9f2556822deaa2ba_8bfe018b-7dcc-4ae1-b802-6d5dde662ade.webp?v=1714837761"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ec3018a5d48f85c12a56f5f9f2556822deaa2ba_8bfe018b-7dcc-4ae1-b802-6d5dde662ade.webp?v=1714837761","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41896228618339,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-SB17","requires_shipping":true,"taxable":true,"featured_image":{"id":31479894999139,"product_id":7411226214499,"position":3,"created_at":"2024-05-04T23:49:03+08:00","updated_at":"2024-05-04T23:49:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d7055148a59ad7a6b40565fa3a2ea4748e6bd38_6bf6687a-7c70-441c-9a70-9ab1515f9561.webp?v=1714837743","variant_ids":[41896228618339]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Batman - 小丑女圖騰 - 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":"MPB0126124-SB17","featured_media":{"alt":null,"id":23885145407587,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d7055148a59ad7a6b40565fa3a2ea4748e6bd38_6bf6687a-7c70-441c-9a70-9ab1515f9561.webp?v=1714837743"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41896228618339,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-SB17","requires_shipping":true,"taxable":true,"featured_image":{"id":31479894999139,"product_id":7411226214499,"position":3,"created_at":"2024-05-04T23:49:03+08:00","updated_at":"2024-05-04T23:49:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d7055148a59ad7a6b40565fa3a2ea4748e6bd38_6bf6687a-7c70-441c-9a70-9ab1515f9561.webp?v=1714837743","variant_ids":[41896228618339]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Batman - 小丑女圖騰 - 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":"MPB0126124-SB17","featured_media":{"alt":null,"id":23885145407587,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d7055148a59ad7a6b40565fa3a2ea4748e6bd38_6bf6687a-7c70-441c-9a70-9ab1515f9561.webp?v=1714837743"}},"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: "停產" }