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 April 15th, 2013, 07:39 AM
dvbmedia dvbmedia is offline
 
Join Date: Jan 2012
Posts: 23
Default related products not working properly

Hello,

A while ago someone of ur team helped us with displaying datafeedr shop products at wordpress articles, back than it worked but it isn't working always.

But at several pages it isn't working anymore, so I was wondering if you could help me.
Also it would be great if we can change the 'keywords' what we currently use (adviced by ur college back than) into the wordpress tags.

Thanks,

Store ID:
Website URL: Tuinkriebels.nl
URL to page in question: http://www.tuinkriebels.nl/tuinonder...vendel-snoeien
  #2  
Old April 15th, 2013, 09:45 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi,

This is the post you are referring to: /showthread.php?t=7626

If it's not working, that means either you did not add any keywords, the length of the keywords is less than 4 characters long or there are no products that match those keywords.

If you want to use tags instead of keywords change this line:
PHP Code:
echo datafeedr_tag('ForArticles?word='.$keywords); 
To this:
PHP Code:
echo datafeedr_tag('ForArticles?tags='.$keywords); 
In the code from the post I've linked to above.

Eric
  #3  
Old April 15th, 2013, 12:25 PM
dvbmedia dvbmedia is offline
 
Join Date: Jan 2012
Posts: 23
Default

Hi Eric,

It isn't working..

old script :
Quote:
<?php
$keywords = get_post_meta(get_the_ID(), 'keywords', true);
if ($keywords!= '') {

$product = strip_tags(datafeedr_tag('ForArticles?word='.$keyw ords));
$product = trim($product);

if(!empty($product)){
echo datafeedr_tag('ForArticles?word='.$keywords);
echo'</div>';
}
}
?>
new script
Quote:
<?php
$keywords = get_post_meta(get_the_ID(), 'keywords', true);
if ($keywords!= '') {

$product = strip_tags(datafeedr_tag('ForArticles?word='.$keyw ords));
$product = trim($product);

if(!empty($product)){
echo datafeedr_tag('ForArticles?tags='.$keywords);
echo'</div>';
}
}
?>
or must the first ForArticles? also be tags? (i've tried that to but it still didn't work to be honest)


Also there are still several posts with keywords/tags and they doesn't show any products for example at this link:
http://www.tuinkriebels.nl/tuinonder...vendel-snoeien

you got any suggestions how we can fix this?

Last edited by dvbmedia : April 15th, 2013 at 12:31 PM.
  #4  
Old April 15th, 2013, 12:28 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi,

What keywords are you using for that article?

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Category Hierarchy not working properly webnamescouk Questions 1 December 7th, 2011 07:29 AM
What did I do?? Related Items not working patagonia Problems 1 January 31st, 2011 09:33 PM


All times are GMT -5. The time now is 01:16 PM.


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