Plugins | JavaScript/HTML

Introduction

The price comparison can be integrated on every page with a few HTML and Javascript lines. It automatically fits on every page, so that all informations are visible at first glance.

Full Example

To generate commissions, please replace the pricemesh_token with your own token.
<div id='pricemesh'></div>

<script type='text/javascript'>
      /* * * Configuration: example * * */
      var pricemesh_token = 'demo-abcde-demo-12345-demo-abcde1234';
      var pricemesh_country = 'de';
      var pricemesh_pids = '5030938111313,B00CX7BXL8'; //barcodes des Produktes

      /* * * OPTIONAL * * */
      var pricemesh_initialitems = 5;
      var pricemesh_debug = false;


      var pricemesh_load = true;
      (function () {
          var pricemesh = document.createElement('script');
          pricemesh.type = 'text/javascript';
          pricemesh.async = true;
          pricemesh.src = 'https://www.pricemesh.io/static/external/js/pricemesh.min.js';
          (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(pricemesh);
      })();

</script>
Please replace the value in pricemesh_pids, with the unique product number of the product for which you would like to offer a price comparison.

Variables

Variable Description Value Type
pricemesh_token Token for the identification of your site. required
pricemesh_country Country Code de,us,uk,fr,es,it required
pricemesh_pids List of UPCs, EANs, ISBNs or ASINs, separated by a comma required
pricemesh_initialitems Number of immediately visible products 1-20 optional
pricemesh_debug Shows errors and warnings true,false optional

Settings

All other settings can be found on this page.