Datafeedr Support Forums

Datafeedr Support Forums (http://www.datafeedr.com/forums/index.php)
-   Questions (http://www.datafeedr.com/forums/forumdisplay.php?f=67)
-   -   Price In the search results (http://www.datafeedr.com/forums/showthread.php?t=9459)

vijjus2 August 11th, 2013 04:10 AM

Price In the search results
 
Store ID:
Website URL: www.doctorsbest.us
URL to page in question: http://www.doctorsbest.us/store/sear...ium+Bone+Maker


Hi Datafeedr,

In the search results i want to display the price of the produts. So how can i place show the price in the search results. Please find the above search page of website. And where can i find my store ID?

Thanks
Vijay

Eric August 11th, 2013 09:09 AM

Hi,

Welcome to the forums!

Try changing this:
HTML Code:

<style type="text/css">.desc img {float:left;}</style>


<!-- Search Heading -->
<h2>Search results for:</h2>
<!-- /Search Heading -->


<!-- Search Fields -->
<ul>
  <?php if (@$_GET['word']){ ?><li><b>Word: </b>[store.get param="word"]</li><?php } ?>
  <?php if (@$_GET['merchant']){ ?><li><b>Merchant: </b>[store.get param="merchant"]</li><?php } ?>
  <?php if (@$_GET['tags']){ ?><li><b>Tags: </b>[store.get param="tags"]</li><?php } ?>
  <?php if (@$_GET['price']){ ?><li><b>Price: </b>[store.get param="price"]</li><?php } ?>
</ul>
<!-- /Search Fields -->


<!-- Pagination Links (Top) -->
<div class="pgr">
  Pages:
  [pager.first text='<img src="[server.plugin_url]/first.gif" alt="first page" />' alt='']
  [pager.prev text='<img src="[server.plugin_url]/prev.gif" alt="prev page" />' alt='']
  [pager.pages delim=' ']
  [pager.next text='<img src="[server.plugin_url]/next.gif" alt="next page" />' alt='']
  [pager.last text='<img src="[server.plugin_url]/last.gif" alt="last page" />' alt='']
</div>
<!-- /Pagination Links (Top) -->


<!-- Search Results -->
<div class="pl">
  [product.each]
  <div class="t3 col1">
    <div class="bdr">
      <div class="lc">
        <div class="thmb"><a href="[product.link]" title="[product.name]">[product.thumbnail tag='1']</a></div>
      </div>
      <div class="rc">
        <h2><a href="[product.link]" title="[product.name]">[product.name]</a></h2>
        <p class="desc">
          <a href="[server.url query='view=search']?merchant=[product.merchant]" title="View all products from [product.merchant]">
            [product.merchant_logo]
          </a>
          [product.description cut='20 words']</p>
      </div>
      <div class="clearingdiv"> </div>
    </div>
  </div>
  [/product.each]
  <div class="clearingdiv"> </div>
</div>
<!-- /Search Results -->


<!-- Pagination Links (Bottom) -->
<div class="pgr">
  Pages:
  [pager.first text='<img src="[server.plugin_url]/first.gif" alt="first page" />' alt='']
  [pager.prev text='<img src="[server.plugin_url]/prev.gif" alt="prev page" />' alt='']
  [pager.pages delim=' ']
  [pager.next text='<img src="[server.plugin_url]/next.gif" alt="next page" />' alt='']
  [pager.last text='<img src="[server.plugin_url]/last.gif" alt="last page" />' alt='']
</div>
<!-- /Pagination Links (Bottom) -->

To this:
HTML Code:

<style type="text/css">.desc img {float:left;}</style>


<!-- Search Heading -->
<h2>Search results for:</h2>
<!-- /Search Heading -->


<!-- Search Fields -->
<ul>
  <?php if (@$_GET['word']){ ?><li><b>Word: </b>[store.get param="word"]</li><?php } ?>
  <?php if (@$_GET['merchant']){ ?><li><b>Merchant: </b>[store.get param="merchant"]</li><?php } ?>
  <?php if (@$_GET['tags']){ ?><li><b>Tags: </b>[store.get param="tags"]</li><?php } ?>
  <?php if (@$_GET['price']){ ?><li><b>Price: </b>[store.get param="price"]</li><?php } ?>
</ul>
<!-- /Search Fields -->


<!-- Pagination Links (Top) -->
<div class="pgr">
  Pages:
  [pager.first text='<img src="[server.plugin_url]/first.gif" alt="first page" />' alt='']
  [pager.prev text='<img src="[server.plugin_url]/prev.gif" alt="prev page" />' alt='']
  [pager.pages delim=' ']
  [pager.next text='<img src="[server.plugin_url]/next.gif" alt="next page" />' alt='']
  [pager.last text='<img src="[server.plugin_url]/last.gif" alt="last page" />' alt='']
</div>
<!-- /Pagination Links (Top) -->


<!-- Search Results -->
<div class="pl">
  [product.each]
  <div class="t3 col1">
    <div class="bdr">
      <div class="lc">
        <div class="thmb"><a href="[product.link]" title="[product.name]">[product.thumbnail tag='1']</a></div>
      </div>
      <div class="rc">
        <h2><a href="[product.link]" title="[product.name]">[product.name]</a></h2>
        <p class="desc">
          <a href="[server.url query='view=search']?merchant=[product.merchant]" title="View all products from [product.merchant]">
            [product.merchant_logo]
          </a>
          [product.description cut='20 words']</p>
        <p>[product.currency][product.price]</p>
      </div>
      <div class="clearingdiv"> </div>
    </div>
  </div>
  [/product.each]
  <div class="clearingdiv"> </div>
</div>
<!-- /Search Results -->


<!-- Pagination Links (Bottom) -->
<div class="pgr">
  Pages:
  [pager.first text='<img src="[server.plugin_url]/first.gif" alt="first page" />' alt='']
  [pager.prev text='<img src="[server.plugin_url]/prev.gif" alt="prev page" />' alt='']
  [pager.pages delim=' ']
  [pager.next text='<img src="[server.plugin_url]/next.gif" alt="next page" />' alt='']
  [pager.last text='<img src="[server.plugin_url]/last.gif" alt="last page" />' alt='']
</div>
<!-- /Pagination Links (Bottom) -->

Here: The Factory > Your Store > VIEWS > SEARCH PAGE > Default > Product list module > Theme settings ()

Eric


All times are GMT -5. The time now is 09:02 AM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.