$product = {"id":7414924443747,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Pixel Jeff 皮傑 - 街頭潮流","handle":"iphone-12-pro-max-mod-nx-magsafe-printable-hq06","description":null,"published_at":"2024-06-11T17:53:12+08:00","created_at":"2024-05-05T19:49:56+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 12 pro max","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":41909983084643,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-HQ06","requires_shipping":true,"taxable":true,"featured_image":{"id":31487696797795,"product_id":7414924443747,"position":6,"created_at":"2024-05-05T19:50:11+08:00","updated_at":"2024-05-05T19:50:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed54f51a3f53149bb035912dc145f6c29337e2c8_ff9347ca-cc54-45b8-8e64-6bd267791238.webp?v=1714909811","variant_ids":[41909983084643]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Pixel Jeff 皮傑 - 街頭潮流 - 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":"MPB0118724-HQ06","featured_media":{"alt":null,"id":23893040627811,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed54f51a3f53149bb035912dc145f6c29337e2c8_ff9347ca-cc54-45b8-8e64-6bd267791238.webp?v=1714909811"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d00c962b5982567007981ff1e1b92641c8f422e_232c55b5-2cba-4e1d-9aec-dd1c2c84fba8.webp?v=1714909798","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff02b0338abdc9e5f44e00bb444645e88bbc27e8_fea07b2a-3899-4a7b-bdde-98d3f9b48e46.webp?v=1714909801","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26d9163204aaeee8fcff70cdba565b20cf988ccf_4b589308-bb79-4c68-8d2a-afb0cbc0bd0d.webp?v=1714909803","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/073af65ac6a1fa7f511fae3ff2641ad37dcf01c7_8ba07ce8-3fbd-49c0-9bf5-ba3e25c030a4.webp?v=1714909806","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb2b4f0d1591c36faeae213ab041a085b420b1e0_4b566109-3be8-4c71-bea7-034634e5da49.webp?v=1714909808","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed54f51a3f53149bb035912dc145f6c29337e2c8_ff9347ca-cc54-45b8-8e64-6bd267791238.webp?v=1714909811","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba42856f7b30fcdabeb5612e563fe36890309be1_d0e40abd-eef9-4c91-a5e5-008532f61a50.webp?v=1714909813","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8c7b2961003812e1f6da5b5376ff19788f05e93_d7efa15b-c443-4306-a92d-690d26ae4f30.webp?v=1714909816","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ecf3278563364a8c497a82d021748b37ca78981_6a232e9d-6928-488f-a937-0d3ba33e9f2b.webp?v=1714909818","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/119b6ad009fba22b8f5975a300bc79df0bf892d5_2b46d258-4a0f-492e-adeb-3f7db98468d9.webp?v=1714909821"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d00c962b5982567007981ff1e1b92641c8f422e_232c55b5-2cba-4e1d-9aec-dd1c2c84fba8.webp?v=1714909798","options":["color"],"media":[{"alt":null,"id":23893037613155,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d00c962b5982567007981ff1e1b92641c8f422e_232c55b5-2cba-4e1d-9aec-dd1c2c84fba8.webp?v=1714909798"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d00c962b5982567007981ff1e1b92641c8f422e_232c55b5-2cba-4e1d-9aec-dd1c2c84fba8.webp?v=1714909798","width":2000},{"alt":null,"id":23893038170211,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff02b0338abdc9e5f44e00bb444645e88bbc27e8_fea07b2a-3899-4a7b-bdde-98d3f9b48e46.webp?v=1714909801"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff02b0338abdc9e5f44e00bb444645e88bbc27e8_fea07b2a-3899-4a7b-bdde-98d3f9b48e46.webp?v=1714909801","width":2000},{"alt":null,"id":23893038858339,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26d9163204aaeee8fcff70cdba565b20cf988ccf_4b589308-bb79-4c68-8d2a-afb0cbc0bd0d.webp?v=1714909803"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26d9163204aaeee8fcff70cdba565b20cf988ccf_4b589308-bb79-4c68-8d2a-afb0cbc0bd0d.webp?v=1714909803","width":2000},{"alt":null,"id":23893039415395,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/073af65ac6a1fa7f511fae3ff2641ad37dcf01c7_8ba07ce8-3fbd-49c0-9bf5-ba3e25c030a4.webp?v=1714909806"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/073af65ac6a1fa7f511fae3ff2641ad37dcf01c7_8ba07ce8-3fbd-49c0-9bf5-ba3e25c030a4.webp?v=1714909806","width":2000},{"alt":null,"id":23893039775843,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb2b4f0d1591c36faeae213ab041a085b420b1e0_4b566109-3be8-4c71-bea7-034634e5da49.webp?v=1714909808"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb2b4f0d1591c36faeae213ab041a085b420b1e0_4b566109-3be8-4c71-bea7-034634e5da49.webp?v=1714909808","width":2000},{"alt":null,"id":23893040627811,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed54f51a3f53149bb035912dc145f6c29337e2c8_ff9347ca-cc54-45b8-8e64-6bd267791238.webp?v=1714909811"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed54f51a3f53149bb035912dc145f6c29337e2c8_ff9347ca-cc54-45b8-8e64-6bd267791238.webp?v=1714909811","width":2000},{"alt":null,"id":23893040955491,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba42856f7b30fcdabeb5612e563fe36890309be1_d0e40abd-eef9-4c91-a5e5-008532f61a50.webp?v=1714909813"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba42856f7b30fcdabeb5612e563fe36890309be1_d0e40abd-eef9-4c91-a5e5-008532f61a50.webp?v=1714909813","width":2000},{"alt":null,"id":23893041643619,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8c7b2961003812e1f6da5b5376ff19788f05e93_d7efa15b-c443-4306-a92d-690d26ae4f30.webp?v=1714909816"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8c7b2961003812e1f6da5b5376ff19788f05e93_d7efa15b-c443-4306-a92d-690d26ae4f30.webp?v=1714909816","width":2000},{"alt":null,"id":23893041971299,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ecf3278563364a8c497a82d021748b37ca78981_6a232e9d-6928-488f-a937-0d3ba33e9f2b.webp?v=1714909818"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ecf3278563364a8c497a82d021748b37ca78981_6a232e9d-6928-488f-a937-0d3ba33e9f2b.webp?v=1714909818","width":2000},{"alt":null,"id":23893042593891,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/119b6ad009fba22b8f5975a300bc79df0bf892d5_2b46d258-4a0f-492e-adeb-3f7db98468d9.webp?v=1714909821"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/119b6ad009fba22b8f5975a300bc79df0bf892d5_2b46d258-4a0f-492e-adeb-3f7db98468d9.webp?v=1714909821","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41909983084643,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-HQ06","requires_shipping":true,"taxable":true,"featured_image":{"id":31487696797795,"product_id":7414924443747,"position":6,"created_at":"2024-05-05T19:50:11+08:00","updated_at":"2024-05-05T19:50:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed54f51a3f53149bb035912dc145f6c29337e2c8_ff9347ca-cc54-45b8-8e64-6bd267791238.webp?v=1714909811","variant_ids":[41909983084643]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Pixel Jeff 皮傑 - 街頭潮流 - 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":"MPB0118724-HQ06","featured_media":{"alt":null,"id":23893040627811,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed54f51a3f53149bb035912dc145f6c29337e2c8_ff9347ca-cc54-45b8-8e64-6bd267791238.webp?v=1714909811"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41909983084643,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-HQ06","requires_shipping":true,"taxable":true,"featured_image":{"id":31487696797795,"product_id":7414924443747,"position":6,"created_at":"2024-05-05T19:50:11+08:00","updated_at":"2024-05-05T19:50:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed54f51a3f53149bb035912dc145f6c29337e2c8_ff9347ca-cc54-45b8-8e64-6bd267791238.webp?v=1714909811","variant_ids":[41909983084643]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Pixel Jeff 皮傑 - 街頭潮流 - 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":"MPB0118724-HQ06","featured_media":{"alt":null,"id":23893040627811,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed54f51a3f53149bb035912dc145f6c29337e2c8_ff9347ca-cc54-45b8-8e64-6bd267791238.webp?v=1714909811"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $type = ""; var sellingStatus if ($isMerge) { $(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: "停產" }