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
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">
      <div class="t1 col3">
      <div class="bdr">
        <h2><a href="[]" title="[]">[]</a></h2>
        <div class="thmb"><a href="[]" title="[]">[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="[]" title="View details []" class="dfbutton dforange dfmedium">Details</a>
        <a href="[product.url direct='0']" title="Buy []" class="dfbutton dforange dfmedium">Buy</a>
        <div class="clearingdiv"> </div>
      <div class="clearingdiv"> </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); ?>
  7. Click the [Update Settings Only] button

That's it.


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 12:49 PM.

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