$product = {"id":7415994646627,"title":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 1G - 抱一個","handle":"iphone-xs-max-mod-nx-printable-iv03","description":null,"published_at":"2024-06-11T16:49:55+08:00","created_at":"2024-05-06T12:38:54+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-1G","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-1chun","device-iPhone XS Max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-1chun","Top50","type-Mod NX Printable"],"price":90000,"price_min":90000,"price_max":90000,"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":41916317565027,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-IV03","requires_shipping":true,"taxable":true,"featured_image":{"id":31490940141667,"product_id":7415994646627,"position":7,"created_at":"2024-05-06T12:39:11+08:00","updated_at":"2024-05-06T12:39:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cba9d06a84bb492665652fa9530836e5c1341257_dc0ea11b-b5a6-42cf-9b70-5eb5cce10a52.webp?v=1714970351","variant_ids":[41916317565027]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 1G - 抱一個 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108624-IV03","featured_media":{"alt":null,"id":23896347312227,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cba9d06a84bb492665652fa9530836e5c1341257_dc0ea11b-b5a6-42cf-9b70-5eb5cce10a52.webp?v=1714970351"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b79561cbf678523d6bd7c20b7e9511182da1d3c_03374066-4f9a-49b8-9b4e-1e609dcc34e8.webp?v=1714970336","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/064bd0c97cc15e7a4d7cd255b43ca17cf96c2a2b_00e33dfa-3c41-4e59-906d-3dd6fa4f75f9.webp?v=1714970339","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3316f7adc78da895ca532da8e8283e76818ff309_d9f0bdf2-7a9b-4a9d-9c66-5d992d2e3b25.webp?v=1714970341","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35b83468adfbb7fd8885fbf1c7d4b977e83c9e99_0d5360d2-2d88-4c7f-9a24-6b6affccb37f.webp?v=1714970344","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd9032d6f10800339fdb2049dfc57fb541ad459f_2ada1e62-d2a8-440b-bef9-f4dd3b36839b.webp?v=1714970346","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/842307b1ad53892315810392da82de50b789884a_91d71a7f-9396-4243-bc99-c6d437d945b2.webp?v=1714970348","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cba9d06a84bb492665652fa9530836e5c1341257_dc0ea11b-b5a6-42cf-9b70-5eb5cce10a52.webp?v=1714970351","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/224aa4c82dd310ef0480bae9584d37bd8ebb96db_a56e007b-f35b-4e67-93db-823d6795e832.webp?v=1714970353","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/654ad7135643c465bdf3f03ddd35bf529dbeb493_c707b566-0041-4115-86c3-534632ac9cd9.webp?v=1714970356","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1839e119f5c5d7e20baf2edcb1e6c6996860ce7_40c46c6d-772d-4661-b965-668266a7bdfb.webp?v=1714970358"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b79561cbf678523d6bd7c20b7e9511182da1d3c_03374066-4f9a-49b8-9b4e-1e609dcc34e8.webp?v=1714970336","options":["color"],"media":[{"alt":null,"id":23896343085155,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b79561cbf678523d6bd7c20b7e9511182da1d3c_03374066-4f9a-49b8-9b4e-1e609dcc34e8.webp?v=1714970336"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b79561cbf678523d6bd7c20b7e9511182da1d3c_03374066-4f9a-49b8-9b4e-1e609dcc34e8.webp?v=1714970336","width":2000},{"alt":null,"id":23896343773283,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/064bd0c97cc15e7a4d7cd255b43ca17cf96c2a2b_00e33dfa-3c41-4e59-906d-3dd6fa4f75f9.webp?v=1714970339"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/064bd0c97cc15e7a4d7cd255b43ca17cf96c2a2b_00e33dfa-3c41-4e59-906d-3dd6fa4f75f9.webp?v=1714970339","width":2000},{"alt":null,"id":23896344461411,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3316f7adc78da895ca532da8e8283e76818ff309_d9f0bdf2-7a9b-4a9d-9c66-5d992d2e3b25.webp?v=1714970341"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3316f7adc78da895ca532da8e8283e76818ff309_d9f0bdf2-7a9b-4a9d-9c66-5d992d2e3b25.webp?v=1714970341","width":2000},{"alt":null,"id":23896345378915,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35b83468adfbb7fd8885fbf1c7d4b977e83c9e99_0d5360d2-2d88-4c7f-9a24-6b6affccb37f.webp?v=1714970344"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35b83468adfbb7fd8885fbf1c7d4b977e83c9e99_0d5360d2-2d88-4c7f-9a24-6b6affccb37f.webp?v=1714970344","width":2000},{"alt":null,"id":23896345903203,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd9032d6f10800339fdb2049dfc57fb541ad459f_2ada1e62-d2a8-440b-bef9-f4dd3b36839b.webp?v=1714970346"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd9032d6f10800339fdb2049dfc57fb541ad459f_2ada1e62-d2a8-440b-bef9-f4dd3b36839b.webp?v=1714970346","width":2000},{"alt":null,"id":23896346296419,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/842307b1ad53892315810392da82de50b789884a_91d71a7f-9396-4243-bc99-c6d437d945b2.webp?v=1714970348"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/842307b1ad53892315810392da82de50b789884a_91d71a7f-9396-4243-bc99-c6d437d945b2.webp?v=1714970348","width":2000},{"alt":null,"id":23896347312227,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cba9d06a84bb492665652fa9530836e5c1341257_dc0ea11b-b5a6-42cf-9b70-5eb5cce10a52.webp?v=1714970351"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cba9d06a84bb492665652fa9530836e5c1341257_dc0ea11b-b5a6-42cf-9b70-5eb5cce10a52.webp?v=1714970351","width":2000},{"alt":null,"id":23896347967587,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/224aa4c82dd310ef0480bae9584d37bd8ebb96db_a56e007b-f35b-4e67-93db-823d6795e832.webp?v=1714970353"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/224aa4c82dd310ef0480bae9584d37bd8ebb96db_a56e007b-f35b-4e67-93db-823d6795e832.webp?v=1714970353","width":2000},{"alt":null,"id":23896348459107,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/654ad7135643c465bdf3f03ddd35bf529dbeb493_c707b566-0041-4115-86c3-534632ac9cd9.webp?v=1714970356"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/654ad7135643c465bdf3f03ddd35bf529dbeb493_c707b566-0041-4115-86c3-534632ac9cd9.webp?v=1714970356","width":2000},{"alt":null,"id":23896348885091,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1839e119f5c5d7e20baf2edcb1e6c6996860ce7_40c46c6d-772d-4661-b965-668266a7bdfb.webp?v=1714970358"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1839e119f5c5d7e20baf2edcb1e6c6996860ce7_40c46c6d-772d-4661-b965-668266a7bdfb.webp?v=1714970358","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41916317565027,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-IV03","requires_shipping":true,"taxable":true,"featured_image":{"id":31490940141667,"product_id":7415994646627,"position":7,"created_at":"2024-05-06T12:39:11+08:00","updated_at":"2024-05-06T12:39:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cba9d06a84bb492665652fa9530836e5c1341257_dc0ea11b-b5a6-42cf-9b70-5eb5cce10a52.webp?v=1714970351","variant_ids":[41916317565027]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 1G - 抱一個 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108624-IV03","featured_media":{"alt":null,"id":23896347312227,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cba9d06a84bb492665652fa9530836e5c1341257_dc0ea11b-b5a6-42cf-9b70-5eb5cce10a52.webp?v=1714970351"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41916317565027,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-IV03","requires_shipping":true,"taxable":true,"featured_image":{"id":31490940141667,"product_id":7415994646627,"position":7,"created_at":"2024-05-06T12:39:11+08:00","updated_at":"2024-05-06T12:39:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cba9d06a84bb492665652fa9530836e5c1341257_dc0ea11b-b5a6-42cf-9b70-5eb5cce10a52.webp?v=1714970351","variant_ids":[41916317565027]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 1G - 抱一個 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108624-IV03","featured_media":{"alt":null,"id":23896347312227,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cba9d06a84bb492665652fa9530836e5c1341257_dc0ea11b-b5a6-42cf-9b70-5eb5cce10a52.webp?v=1714970351"}},"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: "停產" }