Datafeedr Support Forums  

Go Back   Datafeedr Support Forums > Current Version (V3) Forum > Problems
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 May 31st, 2012, 05:37 AM
digitalcow digitalcow is offline
 
Join Date: Jun 2010
Posts: 494
Default Adding related products on drip page

Eric,

Not sure if this is even possible (which could explain my problems) but I am trying to set up a drip page which would then show random posts below it, see http://asmden.com/bleached-cropped-denim-jacket/ for example.

I have used the code for the related products view I use on my normal store pages

PHP Code:
<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.image tag='1']</a></div>
        <
div class="prc">[product.currency mode='sign'][product.price]</div>
      </
div>
      <
div class="rc">
        <
h2><a href="[product.link]" title="[product.name]">[product.name]</a></h2>
        <
class="desc">[product.description]</p>
        <
div class="btns">
      <
a href="[product.link]" title="[product.name]" class="dfbutton dfblack dfsmith">Details</a>
        </
div>
      </
div>
      <
div class="clearingdiv"> </div>
    </
div>
  </
div>
  [
product.end]
  <
div class="clearingdiv"> </div>
</
div
and in the drip template I have created a text widget (as per the approach I take on normal store pages) with the following

PHP Code:
<!-- Related Products Heading -->
<
h4>People interested in [product.namealso liked</h4>
<!-- /
Related Products Heading -->


<!-- 
Related Products List -->
[
DFR:Related Products?c=%ci]
<!-- /
Related Products List --> 
but on the site instead of getting the related products I just get

[DFR:Related Products?c=%ci]


Have I done something wrong or is what I am trying to do not possible.

Thanks
  #2  
Old May 31st, 2012, 08:41 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi

The c=%ci part is wrong.

This should work:

HTML Code:
<!-- Related Products Heading --> 
<h4>People interested in [product.name] also liked</h4> 
<!-- /Related Products Heading --> 


<!-- Related Products List -->
<div id="view">
  <?php echo datafeedr_tag('Related Products?c='.$product->cat_id); ?>
</div>
<!-- /Related Products List -->
Eric
  #3  
Old May 31st, 2012, 10:40 AM
digitalcow digitalcow is offline
 
Join Date: Jun 2010
Posts: 494
Default

Perfect, thanks
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
In Product detail page - How to show related accessories like related product sandeep821 Questions 2 April 21st, 2012 11:58 AM
Side Bar Disappears When Adding DFR Related Products Short Code To Post erin Problems 6 October 24th, 2011 02:35 PM
Related Products sylviathewitch Questions 4 October 17th, 2011 11:59 AM
Adding 'products per page' and 'sort by' drop down menus to pages lbuilta59 Questions 1 January 27th, 2011 10:36 AM


All times are GMT -5. The time now is 12:58 PM.


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