Datafeedr Support Forums  

Go Back   Datafeedr Support Forums > Current Version (V3) Forum > Tips, Tricks & Tutorials
Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Important - The support forums are now in "read-only" mode as we transition to an alternative help desk solution. Feel free to contact us here with any of your questions or search the forums for an existing solution.
 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 25th, 2011, 09:21 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default Displaying related products on dripped posts.

Here's how to display related products on dripped posts.
  1. Create a new Custom View with the following settings:
  2. Add a Product list module to the new Custom View.
  3. Add the following code to the Product list module:
    HTML Code:
    <div class="pl">
      [product.each]
      <div class="t1 col3">
      <div class="bdr">
        <h2><a href="[product.link]" title="[product.name]">[product.name]</a></h2>
        <div class="thmb"><a href="[product.link]" title="[product.name]">[product.image tag='1']</a></div>
        <div class="prc">[product.currency mode='sign'][product.price]</div>
        <p class="desc">[product.description]</p>
        <div class="btns">
        <a href="[product.link]" title="View details [product.name]" class="dfbutton dforange dfmedium">Details</a>
        <a href="[product.url direct='0']" title="Buy [product.name]" class="dfbutton dforange dfmedium">Buy</a>
        </div>
        <div class="clearingdiv"> </div>
      </div>
      </div>
      [product.end]
      <div class="clearingdiv"> </div>
    </div>
  4. Configure the number of products to show and their sort order in the Product list settings. I set mine to show 3 Products Per Page and sorted the products Randomly.
  5. Add a Text module to your Default Drip Template view. Add it underneath the existing Product list module.
  6. Add the following code to the text module:
    PHP Code:
    <?php echo datafeedr_tag("Dripped Related Products?c=".$product->cat_id); ?>
    To prevent the related products from being displayed on Category or Archive pages, add this code:
    PHP Code:
    <?php if (is_single()) {?>
        <?php echo datafeedr_tag("Dripped Related Products?c=".$product->cat_id); ?>
    <?php 
    ?>
  7. Click the [Update Settings Only] button

That's it.

Eric
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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


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