Widgets Overview > Textual Price Links
Dollar Link
Show Your Users Real-Time Prices
Write an article that includes a product price that updates every time a visitor opens your page. See the Textual Price Link Widget in action:
Step One Customize and Generate Price Link
Product Name:
Default Price ($):
Note: Sets a price to display when a user doesn't have JavaScript enabled or a request fails unexpectedly.
Minimum Price ($):
Note: Set to exclude accessories (e.g. ipod cases, laptop batteries).
Price too low? Click the link to see the query that we ran to get that price. Browse through the results to find an appropriate value for minimum price.
Step Two Copy and Paste the Following into Your HTML
<!--
 // Created with Textual Price Link Widget
 // http://bountii.com/textual.php
-->
<script type="text/javascript">
   function updatePrice(result, arg) {
      if (result["ResultSet"] && result["ResultSet"]["Result"].length > 0) {
        document.getElementById(arg["dom_id"]).innerHTML = "<a href=\"" + 'http://bountii.com/search.php?' + arg["query"] + "\">$" + result["ResultSet"]["Result"][0]["Price"] + "</a>";
      }
   }
</script>

<!--
 // The following span element will be automatically updated with the current price when the page loads.
-->
<span id="Garmin_Nuvi_360_price">
   <a href="http://bountii.com/search.php?item=Garmin%20Nuvi%20360&min_price=200.00&sort=price_asc">$299.99</a>
</span>

<!--
 // Place the following tag near the bottom of your page.
-->
<script src="http://bountii.com/api.php?appid=BountiiDemo&method=bountii.search&item=Garmin%20Nuvi%20360&refurbs=0&results=1&sort=price_asc&format=json&callback=updatePrice&callback_arg=%7B%22dom_id%22%3A%22Garmin_Nuvi_360_price%22%2C%22query%22%3A%22item%3DGarmin%2BNuvi%2B360%26min_price%3D200.00%26refurbs%3D0%26sort%3Dprice_asc%22%7D&min_price=200.00"></script>

If you have any questions about or problems with placing this widget, please contact us and we'll be sure to help you out.
©2008 Bountii Inc.  -  About Us  -  Contact  -  Blog  -  API  -  Help  -  Privacy Policy