$product = {"id":7414497640547,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - 美食派對","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-yb11","description":null,"published_at":"2024-06-11T17:51:41+08:00","created_at":"2024-05-05T14:28:04+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Care Bears","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-carebears","device-iPhone 13 Pro Max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-carebears","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":41906954862691,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-YB11","requires_shipping":true,"taxable":true,"featured_image":{"id":31485630283875,"product_id":7414497640547,"position":4,"created_at":"2024-05-05T14:28:13+08:00","updated_at":"2024-05-05T14:28:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08d3e0b5111d10a3d77c1f4b9e215ea8201d2769_94cb816d-0d28-4562-a649-3127d7b3da2c.webp?v=1714890493","variant_ids":[41906954862691]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - 美食派對 - 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":"MPB0123224-YB11","featured_media":{"alt":null,"id":23890946228323,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08d3e0b5111d10a3d77c1f4b9e215ea8201d2769_94cb816d-0d28-4562-a649-3127d7b3da2c.webp?v=1714890493"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906955157603,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-YB11","requires_shipping":true,"taxable":true,"featured_image":{"id":31485644570723,"product_id":7414497640547,"position":9,"created_at":"2024-05-05T14:28:25+08:00","updated_at":"2024-05-05T14:28:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cf085cad9a133272184d26d84dfb0c3ccc9393c_959940a9-4526-45a9-a871-151b6771f790.webp?v=1714890505","variant_ids":[41906955157603]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - 美食派對 - 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":"MPB01232J5-YB11","featured_media":{"alt":null,"id":23890961072227,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cf085cad9a133272184d26d84dfb0c3ccc9393c_959940a9-4526-45a9-a871-151b6771f790.webp?v=1714890505"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45b18c42d47092542b8746513d9e426fc9ba7205_d934ccef-02a1-4486-b574-3bd0363f7b75.webp?v=1714890486","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/466e3b701ad3ced3071c2aff57476561a098eea8_e99a2be7-544a-4f42-b19a-73ac55309db2.webp?v=1714890489","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51f28cc9490b0ff05471050ee93c5ccef4909c73_d37280f5-a671-4fa1-a32d-89fc709b3c4e.webp?v=1714890491","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08d3e0b5111d10a3d77c1f4b9e215ea8201d2769_94cb816d-0d28-4562-a649-3127d7b3da2c.webp?v=1714890493","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53e431fc927c83ba9f17901dfcb32076ae7b9d8d_74faf976-e1dc-48f8-bf82-eeb538ed53ca.webp?v=1714890496","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3a018e784e32ff152674f8781b6a88e0a265f6f_35633d8f-028a-4eb5-94b6-ec42d7a05d52.webp?v=1714890498","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/082ca9818c4aecc67d98f18498ac6bd40582e686_08f5f75f-91a7-43c1-bccb-46ee2cc8beab.webp?v=1714890501","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3952f7c116ea13bc1d83e75b9b538b4c413b394_ef6d3a13-f4f4-4f08-9ed6-91ac50220482.webp?v=1714890503","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cf085cad9a133272184d26d84dfb0c3ccc9393c_959940a9-4526-45a9-a871-151b6771f790.webp?v=1714890505","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e8106e2ca194ed1f49f656784b091ef4e61dbf6_f8e24c04-288d-4942-ae9b-a1626e026444.webp?v=1714890508","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dac7222a25fc0cbc5f4f56cfff504f33f7047589_9aa3e03d-0262-47d7-ab3b-6b191bce395b.webp?v=1714890510"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45b18c42d47092542b8746513d9e426fc9ba7205_d934ccef-02a1-4486-b574-3bd0363f7b75.webp?v=1714890486","options":["color"],"media":[{"alt":null,"id":23890941509731,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45b18c42d47092542b8746513d9e426fc9ba7205_d934ccef-02a1-4486-b574-3bd0363f7b75.webp?v=1714890486"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45b18c42d47092542b8746513d9e426fc9ba7205_d934ccef-02a1-4486-b574-3bd0363f7b75.webp?v=1714890486","width":2000},{"alt":null,"id":23890943115363,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/466e3b701ad3ced3071c2aff57476561a098eea8_e99a2be7-544a-4f42-b19a-73ac55309db2.webp?v=1714890489"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/466e3b701ad3ced3071c2aff57476561a098eea8_e99a2be7-544a-4f42-b19a-73ac55309db2.webp?v=1714890489","width":2000},{"alt":null,"id":23890944852067,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51f28cc9490b0ff05471050ee93c5ccef4909c73_d37280f5-a671-4fa1-a32d-89fc709b3c4e.webp?v=1714890491"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51f28cc9490b0ff05471050ee93c5ccef4909c73_d37280f5-a671-4fa1-a32d-89fc709b3c4e.webp?v=1714890491","width":2000},{"alt":null,"id":23890946228323,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08d3e0b5111d10a3d77c1f4b9e215ea8201d2769_94cb816d-0d28-4562-a649-3127d7b3da2c.webp?v=1714890493"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08d3e0b5111d10a3d77c1f4b9e215ea8201d2769_94cb816d-0d28-4562-a649-3127d7b3da2c.webp?v=1714890493","width":2000},{"alt":null,"id":23890949144675,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53e431fc927c83ba9f17901dfcb32076ae7b9d8d_74faf976-e1dc-48f8-bf82-eeb538ed53ca.webp?v=1714890496"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53e431fc927c83ba9f17901dfcb32076ae7b9d8d_74faf976-e1dc-48f8-bf82-eeb538ed53ca.webp?v=1714890496","width":2000},{"alt":null,"id":23890952683619,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3a018e784e32ff152674f8781b6a88e0a265f6f_35633d8f-028a-4eb5-94b6-ec42d7a05d52.webp?v=1714890498"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3a018e784e32ff152674f8781b6a88e0a265f6f_35633d8f-028a-4eb5-94b6-ec42d7a05d52.webp?v=1714890498","width":2000},{"alt":null,"id":23890956550243,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/082ca9818c4aecc67d98f18498ac6bd40582e686_08f5f75f-91a7-43c1-bccb-46ee2cc8beab.webp?v=1714890501"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/082ca9818c4aecc67d98f18498ac6bd40582e686_08f5f75f-91a7-43c1-bccb-46ee2cc8beab.webp?v=1714890501","width":2000},{"alt":null,"id":23890958647395,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3952f7c116ea13bc1d83e75b9b538b4c413b394_ef6d3a13-f4f4-4f08-9ed6-91ac50220482.webp?v=1714890503"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3952f7c116ea13bc1d83e75b9b538b4c413b394_ef6d3a13-f4f4-4f08-9ed6-91ac50220482.webp?v=1714890503","width":2000},{"alt":null,"id":23890961072227,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cf085cad9a133272184d26d84dfb0c3ccc9393c_959940a9-4526-45a9-a871-151b6771f790.webp?v=1714890505"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cf085cad9a133272184d26d84dfb0c3ccc9393c_959940a9-4526-45a9-a871-151b6771f790.webp?v=1714890505","width":2000},{"alt":null,"id":23890962972771,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e8106e2ca194ed1f49f656784b091ef4e61dbf6_f8e24c04-288d-4942-ae9b-a1626e026444.webp?v=1714890508"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e8106e2ca194ed1f49f656784b091ef4e61dbf6_f8e24c04-288d-4942-ae9b-a1626e026444.webp?v=1714890508","width":2000},{"alt":null,"id":23890965037155,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dac7222a25fc0cbc5f4f56cfff504f33f7047589_9aa3e03d-0262-47d7-ab3b-6b191bce395b.webp?v=1714890510"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dac7222a25fc0cbc5f4f56cfff504f33f7047589_9aa3e03d-0262-47d7-ab3b-6b191bce395b.webp?v=1714890510","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41906954862691,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-YB11","requires_shipping":true,"taxable":true,"featured_image":{"id":31485630283875,"product_id":7414497640547,"position":4,"created_at":"2024-05-05T14:28:13+08:00","updated_at":"2024-05-05T14:28:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08d3e0b5111d10a3d77c1f4b9e215ea8201d2769_94cb816d-0d28-4562-a649-3127d7b3da2c.webp?v=1714890493","variant_ids":[41906954862691]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - 美食派對 - 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":"MPB0123224-YB11","featured_media":{"alt":null,"id":23890946228323,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08d3e0b5111d10a3d77c1f4b9e215ea8201d2769_94cb816d-0d28-4562-a649-3127d7b3da2c.webp?v=1714890493"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906955157603,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-YB11","requires_shipping":true,"taxable":true,"featured_image":{"id":31485644570723,"product_id":7414497640547,"position":9,"created_at":"2024-05-05T14:28:25+08:00","updated_at":"2024-05-05T14:28:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cf085cad9a133272184d26d84dfb0c3ccc9393c_959940a9-4526-45a9-a871-151b6771f790.webp?v=1714890505","variant_ids":[41906955157603]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - 美食派對 - 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":"MPB01232J5-YB11","featured_media":{"alt":null,"id":23890961072227,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cf085cad9a133272184d26d84dfb0c3ccc9393c_959940a9-4526-45a9-a871-151b6771f790.webp?v=1714890505"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41906954862691,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-YB11","requires_shipping":true,"taxable":true,"featured_image":{"id":31485630283875,"product_id":7414497640547,"position":4,"created_at":"2024-05-05T14:28:13+08:00","updated_at":"2024-05-05T14:28:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08d3e0b5111d10a3d77c1f4b9e215ea8201d2769_94cb816d-0d28-4562-a649-3127d7b3da2c.webp?v=1714890493","variant_ids":[41906954862691]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - 美食派對 - 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":"MPB0123224-YB11","featured_media":{"alt":null,"id":23890946228323,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08d3e0b5111d10a3d77c1f4b9e215ea8201d2769_94cb816d-0d28-4562-a649-3127d7b3da2c.webp?v=1714890493"}},"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: "停產" }