{"id":12,"date":"2026-01-31T13:53:46","date_gmt":"2026-01-31T13:53:46","guid":{"rendered":"https:\/\/alrowadpico.com\/ar\/product-comparison\/"},"modified":"2026-01-31T13:53:46","modified_gmt":"2026-01-31T13:53:46","slug":"product-comparison","status":"publish","type":"page","link":"https:\/\/alrowadpico.com\/ar\/product-comparison\/","title":{"rendered":"Product Comparison"},"content":{"rendered":"        <style>\r\n        .iab2b-comparison-page { padding: 40px 0; max-width: 1200px; margin: 0 auto; }\r\n        .iab2b-comparison-loading, .iab2b-comparison-empty { text-align: center; padding: 60px 20px; }\r\n        .iab2b-comparison-empty svg { margin-bottom: 16px; }\r\n        .iab2b-comparison-empty h3 { font-size: 20px; color: #334155; margin: 0 0 8px; }\r\n        .iab2b-comparison-empty p { color: #64748b; margin: 0 0 20px; }\r\n        .iab2b-btn { display: inline-block; padding: 12px 24px; border-radius: 8px; font-weight: 600; text-decoration: none; cursor: pointer; }\r\n        .iab2b-btn--primary { background: linear-gradient(135deg, #00D4E6 0%, #4B71D1 100%); color: #fff; }\r\n        .iab2b-comparison-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.08); }\r\n        .iab2b-comparison-table th { background: #0F2942; color: #fff; padding: 16px; text-align: left; font-weight: 600; width: 150px; vertical-align: top; }\r\n        .iab2b-comparison-table td { padding: 16px; border-bottom: 1px solid #e2e8f0; vertical-align: top; }\r\n        .iab2b-comparison-table tr:last-child td { border-bottom: none; }\r\n        .iab2b-comparison-table img { max-width: 120px; height: auto; border-radius: 8px; }\r\n        .compare-rfq-btn { background: linear-gradient(135deg, #00D4E6 0%, #4B71D1 100%); color: #fff; border: none; padding: 10px 20px; border-radius: 6px; cursor: pointer; font-weight: 600; }\r\n        .compare-rfq-btn:hover { opacity: 0.9; }\r\n        <\/style>\r\n        <div id=\"iab2b-comparison-page\" class=\"iab2b-comparison-page\">\r\n            <div class=\"iab2b-comparison-loading\" id=\"comparisonLoading\">\r\n                <span>Loading products...<\/span>\r\n            <\/div>\r\n            <div class=\"iab2b-comparison-empty\" id=\"comparisonEmpty\" style=\"display: none;\">\r\n                <svg width=\"64\" height=\"64\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"#94a3b8\" stroke-width=\"1.5\">\r\n                    <line x1=\"18\" y1=\"20\" x2=\"18\" y2=\"10\"><\/line>\r\n                    <line x1=\"12\" y1=\"20\" x2=\"12\" y2=\"4\"><\/line>\r\n                    <line x1=\"6\" y1=\"20\" x2=\"6\" y2=\"14\"><\/line>\r\n                <\/svg>\r\n                <h3>No products to compare<\/h3>\r\n                <p>Add products from the shop to compare them.<\/p>\r\n                <a href=\"https:\/\/alrowadpico.com\/ar\/shop\/\" class=\"iab2b-btn iab2b-btn--primary\">\r\n                    Browse Products                <\/a>\r\n            <\/div>\r\n            <div class=\"iab2b-comparison-table-wrap\" id=\"comparisonTableWrap\" style=\"display: none;\">\r\n                <table class=\"iab2b-comparison-table\" id=\"comparisonTable\"><\/table>\r\n            <\/div>\r\n        <\/div>\r\n        \r\n        <script>\r\n        jQuery(function($) {\r\n            const items = JSON.parse(localStorage.getItem('iab2b_compare_products') || '[]');\r\n            \r\n            if (items.length === 0) {\r\n                $('#comparisonLoading').hide();\r\n                $('#comparisonEmpty').show();\r\n                return;\r\n            }\r\n            \r\n            const productIds = items.map(item => item.id);\r\n            \r\n            $.ajax({\r\n                url: 'https:\/\/alrowadpico.com\/ar\/wp-admin\/admin-ajax.php',\r\n                type: 'POST',\r\n                data: {\r\n                    action: 'iab2b_get_compare_data',\r\n                    product_ids: productIds,\r\n                    nonce: '1eb08c3f43'\r\n                },\r\n                success: function(response) {\r\n                    $('#comparisonLoading').hide();\r\n                    if (response.success && response.data.length > 0) {\r\n                        renderTable(response.data);\r\n                        $('#comparisonTableWrap').show();\r\n                    } else {\r\n                        $('#comparisonEmpty').show();\r\n                    }\r\n                },\r\n                error: function() {\r\n                    $('#comparisonLoading').hide();\r\n                    $('#comparisonEmpty').show();\r\n                }\r\n            });\r\n            \r\n            function renderTable(products) {\r\n                const attrs = ['image', 'name', 'sku', 'category', 'description', 'attributes', 'action'];\r\n                const labels = {\r\n                    image: '',\r\n                    name: 'Product',\r\n                    sku: 'SKU',\r\n                    category: 'Category',\r\n                    description: 'Description',\r\n                    attributes: 'Specifications',\r\n                    action: ''\r\n                };\r\n                \r\n                let html = '';\r\n                attrs.forEach(attr => {\r\n                    html += '<tr>';\r\n                    html += '<th>' + labels[attr] + '<\/th>';\r\n                    products.forEach(p => {\r\n                        if (attr === 'image') {\r\n                            html += '<td><img decoding=\"async\" src=\"' + p.image + '\" alt=\"' + p.name + '\" class=\"compare-img\"><\/td>';\r\n                        } else if (attr === 'name') {\r\n                            html += '<td><a href=\"' + p.url + '\" class=\"compare-name\">' + p.name + '<\/a><\/td>';\r\n                        } else if (attr === 'attributes') {\r\n                            let attrsHtml = '<ul class=\"compare-attrs\">';\r\n                            for (let key in p.attributes) {\r\n                                attrsHtml += '<li><strong>' + key + ':<\/strong> ' + p.attributes[key] + '<\/li>';\r\n                            }\r\n                            attrsHtml += '<\/ul>';\r\n                            html += '<td>' + attrsHtml + '<\/td>';\r\n                        } else if (attr === 'action') {\r\n                            html += '<td><button class=\"iab2b-btn iab2b-btn--primary compare-rfq-btn\" data-product-id=\"' + p.id + '\" data-product-name=\"' + p.name + '\">Request Quote<\/button><\/td>';\r\n                        } else {\r\n                            html += '<td>' + (p[attr] || '-') + '<\/td>';\r\n                        }\r\n                    });\r\n                    html += '<\/tr>';\r\n                });\r\n                \r\n                $('#comparisonTable').html(html);\r\n            }\r\n        });\r\n        <\/script>\r\n        \n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-12","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Product Comparison - \u0627\u0644\u0631\u0648\u0627\u062f \u0627\u0644\u062f\u0648\u0644\u064a\u0629 \u0628\u064a\u0643\u0648<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/alrowadpico.com\/ar\/product-comparison\/\" \/>\n<meta property=\"og:locale\" content=\"ar_AR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Product Comparison - \u0627\u0644\u0631\u0648\u0627\u062f \u0627\u0644\u062f\u0648\u0644\u064a\u0629 \u0628\u064a\u0643\u0648\" \/>\n<meta property=\"og:url\" content=\"https:\/\/alrowadpico.com\/ar\/product-comparison\/\" \/>\n<meta property=\"og:site_name\" content=\"\u0627\u0644\u0631\u0648\u0627\u062f \u0627\u0644\u062f\u0648\u0644\u064a\u0629 \u0628\u064a\u0643\u0648\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/alrowadpico.com\\\/ar\\\/product-comparison\\\/\",\"url\":\"https:\\\/\\\/alrowadpico.com\\\/ar\\\/product-comparison\\\/\",\"name\":\"Product Comparison - \u0627\u0644\u0631\u0648\u0627\u062f \u0627\u0644\u062f\u0648\u0644\u064a\u0629 \u0628\u064a\u0643\u0648\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/alrowadpico.com\\\/ar\\\/#website\"},\"datePublished\":\"2026-01-31T13:53:46+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/alrowadpico.com\\\/ar\\\/product-comparison\\\/#breadcrumb\"},\"inLanguage\":\"ar\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/alrowadpico.com\\\/ar\\\/product-comparison\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/alrowadpico.com\\\/ar\\\/product-comparison\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u0627\u0644\u0631\u0626\u064a\u0633\u064a\u0629\",\"item\":\"https:\\\/\\\/alrowadpico.com\\\/ar\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Product Comparison\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/alrowadpico.com\\\/ar\\\/#website\",\"url\":\"https:\\\/\\\/alrowadpico.com\\\/ar\\\/\",\"name\":\"\u0627\u0644\u0631\u0648\u0627\u062f \u0627\u0644\u062f\u0648\u0644\u064a\u0629 \u0628\u064a\u0643\u0648\",\"description\":\"\u062d\u0644\u0648\u0644 \u0635\u0646\u0627\u0639\u064a\u0629 \u0648\u0637\u0628\u064a\u0629 \u0639\u0627\u0644\u0645\u064a\u0629\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/alrowadpico.com\\\/ar\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ar\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Product Comparison - \u0627\u0644\u0631\u0648\u0627\u062f \u0627\u0644\u062f\u0648\u0644\u064a\u0629 \u0628\u064a\u0643\u0648","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/alrowadpico.com\/ar\/product-comparison\/","og_locale":"ar_AR","og_type":"article","og_title":"Product Comparison - \u0627\u0644\u0631\u0648\u0627\u062f \u0627\u0644\u062f\u0648\u0644\u064a\u0629 \u0628\u064a\u0643\u0648","og_url":"https:\/\/alrowadpico.com\/ar\/product-comparison\/","og_site_name":"\u0627\u0644\u0631\u0648\u0627\u062f \u0627\u0644\u062f\u0648\u0644\u064a\u0629 \u0628\u064a\u0643\u0648","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/alrowadpico.com\/ar\/product-comparison\/","url":"https:\/\/alrowadpico.com\/ar\/product-comparison\/","name":"Product Comparison - \u0627\u0644\u0631\u0648\u0627\u062f \u0627\u0644\u062f\u0648\u0644\u064a\u0629 \u0628\u064a\u0643\u0648","isPartOf":{"@id":"https:\/\/alrowadpico.com\/ar\/#website"},"datePublished":"2026-01-31T13:53:46+00:00","breadcrumb":{"@id":"https:\/\/alrowadpico.com\/ar\/product-comparison\/#breadcrumb"},"inLanguage":"ar","potentialAction":[{"@type":"ReadAction","target":["https:\/\/alrowadpico.com\/ar\/product-comparison\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/alrowadpico.com\/ar\/product-comparison\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u0627\u0644\u0631\u0626\u064a\u0633\u064a\u0629","item":"https:\/\/alrowadpico.com\/ar\/"},{"@type":"ListItem","position":2,"name":"Product Comparison"}]},{"@type":"WebSite","@id":"https:\/\/alrowadpico.com\/ar\/#website","url":"https:\/\/alrowadpico.com\/ar\/","name":"\u0627\u0644\u0631\u0648\u0627\u062f \u0627\u0644\u062f\u0648\u0644\u064a\u0629 \u0628\u064a\u0643\u0648","description":"\u062d\u0644\u0648\u0644 \u0635\u0646\u0627\u0639\u064a\u0629 \u0648\u0637\u0628\u064a\u0629 \u0639\u0627\u0644\u0645\u064a\u0629","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/alrowadpico.com\/ar\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ar"}]}},"_links":{"self":[{"href":"https:\/\/alrowadpico.com\/ar\/wp-json\/wp\/v2\/pages\/12","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alrowadpico.com\/ar\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/alrowadpico.com\/ar\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/alrowadpico.com\/ar\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/alrowadpico.com\/ar\/wp-json\/wp\/v2\/comments?post=12"}],"version-history":[{"count":0,"href":"https:\/\/alrowadpico.com\/ar\/wp-json\/wp\/v2\/pages\/12\/revisions"}],"wp:attachment":[{"href":"https:\/\/alrowadpico.com\/ar\/wp-json\/wp\/v2\/media?parent=12"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}