$product = {"id":7411272155235,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Pixel Jeff 皮傑 - Lollipop","handle":"iphone-14-plus-mod-nx-magsafe-printable-hq04","description":null,"published_at":"2024-06-11T17:40:28+08:00","created_at":"2024-05-04T23:57:49+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Pixel Jeff 皮傑","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-pixeljeff","device-iPhone 14 Plus","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-pixeljeff","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":41896800878691,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-HQ04","requires_shipping":true,"taxable":true,"featured_image":{"id":31480014045283,"product_id":7411272155235,"position":3,"created_at":"2024-05-04T23:57:57+08:00","updated_at":"2024-05-04T23:57:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72f0ec09e036b8f1574be6e2c37b9b5f3c29ad13_583d8043-a117-43e3-84d9-5a9c5d4451dc.webp?v=1714838277","variant_ids":[41896800878691]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Pixel Jeff 皮傑 - Lollipop - 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":"MPB0126124-HQ04","featured_media":{"alt":null,"id":23885264584803,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72f0ec09e036b8f1574be6e2c37b9b5f3c29ad13_583d8043-a117-43e3-84d9-5a9c5d4451dc.webp?v=1714838277"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb74f8008c6e3b1ff45cfef12efd4c1c8f6dba12_f6771888-82b7-45ea-9209-715290071aa7.webp?v=1714838272","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e6a34a85eb9feff4bfb3aa0df76c7e17292973b_ebb1ce98-1808-48b6-b9c3-1d81b4e4f7b4.webp?v=1714838274","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72f0ec09e036b8f1574be6e2c37b9b5f3c29ad13_583d8043-a117-43e3-84d9-5a9c5d4451dc.webp?v=1714838277","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79b0311a02ef339150e0b9cfad5708b5532b399c_a400e111-d87f-496c-8bc4-f17d4acd0d35.webp?v=1714838279","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44dbfaa16fa65a76d5c5fc83a85a031ceaabb144_4e1f367b-8836-46cd-af6b-d54103f965da.webp?v=1714838281","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a678891b2f87e838f54f5b5e9b0857b16fc6181_8c378376-8c2d-487c-bddd-2cc545e56466.webp?v=1714838283","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e2d28c3b2b08782c5bb917aba1d3ac64fc5cfb4_8b643c44-75d3-47fa-bdfd-d26a6896932a.webp?v=1714838286","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1afb8b05f38deb643c70db093c36d311b7f4cbf_314a1156-4f76-4743-b711-277380552e44.webp?v=1714838289","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b902082d4eefcabc84dcae195a3b0a74c91b9d4_11ebf8b6-5374-4c70-9f07-ed0a0e431ce8.webp?v=1714838291","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73fdddd562864c49a81c18251a875ccda635755a_d31e7294-6021-4119-99c0-53a5b1cef4fb.webp?v=1714838293"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb74f8008c6e3b1ff45cfef12efd4c1c8f6dba12_f6771888-82b7-45ea-9209-715290071aa7.webp?v=1714838272","options":["color"],"media":[{"alt":null,"id":23885263732835,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb74f8008c6e3b1ff45cfef12efd4c1c8f6dba12_f6771888-82b7-45ea-9209-715290071aa7.webp?v=1714838272"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb74f8008c6e3b1ff45cfef12efd4c1c8f6dba12_f6771888-82b7-45ea-9209-715290071aa7.webp?v=1714838272","width":2000},{"alt":null,"id":23885264257123,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e6a34a85eb9feff4bfb3aa0df76c7e17292973b_ebb1ce98-1808-48b6-b9c3-1d81b4e4f7b4.webp?v=1714838274"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e6a34a85eb9feff4bfb3aa0df76c7e17292973b_ebb1ce98-1808-48b6-b9c3-1d81b4e4f7b4.webp?v=1714838274","width":2000},{"alt":null,"id":23885264584803,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72f0ec09e036b8f1574be6e2c37b9b5f3c29ad13_583d8043-a117-43e3-84d9-5a9c5d4451dc.webp?v=1714838277"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72f0ec09e036b8f1574be6e2c37b9b5f3c29ad13_583d8043-a117-43e3-84d9-5a9c5d4451dc.webp?v=1714838277","width":2000},{"alt":null,"id":23885265305699,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79b0311a02ef339150e0b9cfad5708b5532b399c_a400e111-d87f-496c-8bc4-f17d4acd0d35.webp?v=1714838279"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79b0311a02ef339150e0b9cfad5708b5532b399c_a400e111-d87f-496c-8bc4-f17d4acd0d35.webp?v=1714838279","width":2000},{"alt":null,"id":23885265600611,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44dbfaa16fa65a76d5c5fc83a85a031ceaabb144_4e1f367b-8836-46cd-af6b-d54103f965da.webp?v=1714838281"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44dbfaa16fa65a76d5c5fc83a85a031ceaabb144_4e1f367b-8836-46cd-af6b-d54103f965da.webp?v=1714838281","width":2000},{"alt":null,"id":23885266157667,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a678891b2f87e838f54f5b5e9b0857b16fc6181_8c378376-8c2d-487c-bddd-2cc545e56466.webp?v=1714838283"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a678891b2f87e838f54f5b5e9b0857b16fc6181_8c378376-8c2d-487c-bddd-2cc545e56466.webp?v=1714838283","width":2000},{"alt":null,"id":23885266845795,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e2d28c3b2b08782c5bb917aba1d3ac64fc5cfb4_8b643c44-75d3-47fa-bdfd-d26a6896932a.webp?v=1714838286"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e2d28c3b2b08782c5bb917aba1d3ac64fc5cfb4_8b643c44-75d3-47fa-bdfd-d26a6896932a.webp?v=1714838286","width":2000},{"alt":null,"id":23885267468387,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1afb8b05f38deb643c70db093c36d311b7f4cbf_314a1156-4f76-4743-b711-277380552e44.webp?v=1714838289"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1afb8b05f38deb643c70db093c36d311b7f4cbf_314a1156-4f76-4743-b711-277380552e44.webp?v=1714838289","width":2000},{"alt":null,"id":23885268058211,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b902082d4eefcabc84dcae195a3b0a74c91b9d4_11ebf8b6-5374-4c70-9f07-ed0a0e431ce8.webp?v=1714838291"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b902082d4eefcabc84dcae195a3b0a74c91b9d4_11ebf8b6-5374-4c70-9f07-ed0a0e431ce8.webp?v=1714838291","width":2000},{"alt":null,"id":23885268713571,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73fdddd562864c49a81c18251a875ccda635755a_d31e7294-6021-4119-99c0-53a5b1cef4fb.webp?v=1714838293"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73fdddd562864c49a81c18251a875ccda635755a_d31e7294-6021-4119-99c0-53a5b1cef4fb.webp?v=1714838293","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41896800878691,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-HQ04","requires_shipping":true,"taxable":true,"featured_image":{"id":31480014045283,"product_id":7411272155235,"position":3,"created_at":"2024-05-04T23:57:57+08:00","updated_at":"2024-05-04T23:57:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72f0ec09e036b8f1574be6e2c37b9b5f3c29ad13_583d8043-a117-43e3-84d9-5a9c5d4451dc.webp?v=1714838277","variant_ids":[41896800878691]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Pixel Jeff 皮傑 - Lollipop - 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":"MPB0126124-HQ04","featured_media":{"alt":null,"id":23885264584803,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72f0ec09e036b8f1574be6e2c37b9b5f3c29ad13_583d8043-a117-43e3-84d9-5a9c5d4451dc.webp?v=1714838277"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41896800878691,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-HQ04","requires_shipping":true,"taxable":true,"featured_image":{"id":31480014045283,"product_id":7411272155235,"position":3,"created_at":"2024-05-04T23:57:57+08:00","updated_at":"2024-05-04T23:57:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72f0ec09e036b8f1574be6e2c37b9b5f3c29ad13_583d8043-a117-43e3-84d9-5a9c5d4451dc.webp?v=1714838277","variant_ids":[41896800878691]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Pixel Jeff 皮傑 - Lollipop - 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":"MPB0126124-HQ04","featured_media":{"alt":null,"id":23885264584803,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72f0ec09e036b8f1574be6e2c37b9b5f3c29ad13_583d8043-a117-43e3-84d9-5a9c5d4451dc.webp?v=1714838277"}},"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: "停產" }