Widgets Edit the file on GitHub

Table of Contents

Prices for a specific product

Use the following code snippet to list prices for a specific product. You only have to replace the product id with the one that appears at the product web address, e.g.

http://www.skroutz.gr/s/2567463/Apple-iPad-mini-Wifi-16GB.html
Example
<div class="skroutz-widget">
  <script type="text/javascript" src="//www.skroutz.gr/javascripts/widget-v1.js" charset="utf-8"></script>
  <script type="text/javascript" charset="utf-8" >
    new SkroutzWidget().display_sku({id:2567463});
  </script>
  <p class="skwidget-footer">powered by <a href="http://www.skroutz.gr" title="Skroutz">Skroutz</a></p>
</div>
Result

Replace the keyphrase in the following code snippet to perform a general search in Skroutz.

Example
<div class="skroutz-widget">
  <script type="text/javascript" src="//www.skroutz.gr/javascripts/widget-v1.js" charset="utf-8"></script>
  <script type="text/javascript" charset="utf-8" >
    new SkroutzWidget().display_popular({keyphrase:'samsung'});
  </script>
  <p class="skwidget-footer">powered by <a href="http://www.skroutz.gr" title="Skroutz">Skroutz</a></p>
</div>
Result

Search results for a specific Category

Use the following code snippet to list results from a specific Category. You only have to replace the keyphrase and the category_id with the actual category_id as it appears at the category web address, e.g.

http://www.skroutz.gr/c/40/kinhta-thlefwna.html
Example
<div class="skroutz-widget">
  <script type="text/javascript" src="//www.skroutz.gr/javascripts/widget-v1.js" charset="utf-8"></script>
  <script type="text/javascript" charset="utf-8" >
    new SkroutzWidget().display_popular({category_id:40, keyphrase:'iphone'});
  </script>
  <p class="skwidget-footer">powered by <a href="http://www.skroutz.gr" title="Skroutz">Skroutz</a></p>
</div>
Result

Top category products

Use the following code snippet to retrieve the top products for a Category. You only have to replace the category_id with the actual category id as it appears at the category web address, e.g.

http://www.skroutz.gr/c/40/kinhta-thlefwna.html
Example
<div class="skroutz-widget">
  <script type="text/javascript" src="//www.skroutz.gr/javascripts/widget-v1.js" charset="utf-8"></script>
  <script type="text/javascript" charset="utf-8" >
    new SkroutzWidget().display_popular({category_id:40});
  </script>
  <p class="skwidget-footer">powered by <a href="http://www.skroutz.gr" title="Skroutz">Skroutz</a></p>
</div>
Result

Parameters

target
Links should open:
- within the same window (default): '_top'
- in a new window: '_blank'
Example
<div class="skroutz-widget">
  <script type="text/javascript" src="//www.skroutz.gr/javascripts/widget-v1.js" charset="utf-8"></script>
  <script type="text/javascript" charset="utf-8" >
    new SkroutzWidget({target:'_blank'}).display_popular({category_id:40});
  </script>
  <p class="skwidget-footer">powered by <a href="http://www.skroutz.gr" title="Skroutz">Skroutz</a></p>
</div>