Datafeedr Support Forums  

Go Back   Datafeedr Support Forums > Current Version (V3) Forum > Questions
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 October 28th, 2011, 07:23 AM
ginaartero ginaartero is offline
 
Join Date: Oct 2011
Posts: 5
Default Embed Products in Post: Side-by-Side

Hello there,

I've been reading the threads about embedding products in posts and pages. This is the code that I think is most relevant to what I'd like to do:

<!-- DFR Product Blocks -->
<?php if (function_exists('dfr_product_block')) : ?>
<?php echo dfr_product_block('product_ids=NPS013-moreofficefurnitu-ns,456516247-12371-ss'); ?>
<?php endif; ?>

I posted that code directly into my WP post (HTML) and it basically worked, however, the products will not sit side-by-side...as if in a one column, multiple row arrangement. Is there a way to correct this?

Also, if the solution is that the code can only be inserted into a template, I wasn't clear on how you would call the function within the post or page or how you would reassign different products to dfr_product_block (without affecting previous uses) if the function was used for a completely different article.

I'm still pretty new at this. Thanks for your help.

nomekingscollection.com, 34403
  #2  
Old October 28th, 2011, 09:16 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi

Welcome to the forums!

Where did you get that code from? That code is for version 1.x of the plugin. The newest version of the plugin is 3.3.x. Are you using version 1.x of the plugin?

Eric
  #3  
Old October 28th, 2011, 09:48 AM
ginaartero ginaartero is offline
 
Join Date: Oct 2011
Posts: 5
Default

Hi Eric,

Thank you for responding.

I am using version 3.3.3627. I found the code here:

http://www.datafeedr.com/forums/showthread.php?t=42

Gina
  #4  
Old October 28th, 2011, 09:55 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi

I have no idea how the code you inserted into your post even worked but you should use some different code.

Here are some videos covering this kind of stuff:
http://www.datafeedr.com/videos?vide...rc=yt#videotop
http://www.datafeedr.com/videos?vide...rc=yt#videotop

Here is some documentation:
http://www.datafeedr.com/docs/item/184
http://www.datafeedr.com/docs/item/167

Here are some forum threads:
http://www.datafeedr.com/forums/show...ighlight=embed

And finally, Shortcode documentation:
http://www.datafeedr.com/docs/item/185

Eric
  #5  
Old October 28th, 2011, 01:57 PM
ginaartero ginaartero is offline
 
Join Date: Oct 2011
Posts: 5
Default

Hello Eric,

Thank you for the info. I like the product embedded option that you provided (first video) and I would use that format for my posts.

I guess what I was wondering about is if there is short code similar to [DFR:Embedded Product?p=123456] that will produce 2-3 or so products side-by-side in a sort of small, product-specific gallery/product block. I've also tried playing around with the product list module/settings (in addition to product details).

On this post, there are 2 embedded products (orange buttons) that stack vertically (what I'm trying to correct):

http://nomekingscollection.com/?p=1

You are right about that older code; it wasn't doing anything in my post. I had actually worked through /docs/item/184 the first time around and then resorted to the older code to seek an alternative solution.

Gina
  #6  
Old October 28th, 2011, 05:20 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi

Try using this code in your product list template for the Embedded Product view:

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>
Eric
  #7  
Old April 6th, 2012, 04:48 PM
nzcid nzcid is offline
 
Join Date: Dec 2011
Posts: 404
Default

Quote:
Originally Posted by Eric View Post
Hi

Try using this code in your product list template for the Embedded Product view:

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>
Eric
Hey Eric

So will that call three random products from the store? And how do I call it using the DF code?
  #8  
Old April 6th, 2012, 04:53 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi

You can set the Products Per Page and Sort in the Product Listing module's settings.

You can embed it using the embed code. Check out the videos I linked to above about that.

Eric
  #9  
Old April 30th, 2014, 07:13 AM
bombpetite bombpetite is offline
 
Join Date: Jan 2014
Posts: 53
Default

Hi Eric,

I'm also trying to create a 3 product side-by-side view to embed into posts. I followed the instructions here but when I'm trying to embed the products are not coming up in a side-by-side view. They appear one below the other.

I used HTML Embed Product code you supplied above. And I used this DFR code to embed three products:

[DFR:Embedded Posts?p=4268101534936119]
[DFR:Embedded Posts?p=4957100724616941]
[DFR:Embedded Posts?p=6400021613352]

Is there something I'm doing wrong?
  #10  
Old April 30th, 2014, 08:03 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi,

Try this:

Code:
[DFR:Embedded Posts?p=4268101534936119,4957100724616941,6400021613352]
Eric
  #11  
Old April 30th, 2014, 08:43 AM
bombpetite bombpetite is offline
 
Join Date: Jan 2014
Posts: 53
Default

For some reason this doesn't work. It only shows just one product - the first one in the code (p=4268101534936119)

Any thoughts?
  #12  
Old April 30th, 2014, 10:32 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi,

I imported your store into my test site and then added the code below to a post and it worked fine for me:

Code:
[DFR:Embedded Posts?p=4268101534936119,4957100724616941,6400021613352]
Make sure you add the code in "Text" mode, not "Visual" mode.



Eric
  #13  
Old April 30th, 2014, 11:02 AM
bombpetite bombpetite is offline
 
Join Date: Jan 2014
Posts: 53
Default

Thanks for looking into it Eric! I found what the issue was and its now resolved.
 


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
Side Bar Disappears When Adding DFR Related Products Short Code To Post erin Problems 6 October 24th, 2011 02:35 PM
Side bar Problems kellihb Problems 2 August 3rd, 2011 07:36 AM


All times are GMT -5. The time now is 07:44 PM.


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