- Posts: 13
- Thank you received: 0
Item aditional info in Datafeed for Joomla 3.x
9 years 3 months ago #3331
by dalens
Replied by dalens on topic Item aditional info in Datafeed for Joomla 3.x
I have tried, but without success...
Please Log in or Create an account to join the conversation.
9 years 3 months ago #3332
by bram
Replied by bram on topic Item aditional info in Datafeed for Joomla 3.x
what did you try and where did it fail?
the first example in this post : affiliatefeeds.nl/datafeeds-configuratio...reply/3331.html#3327 should show the list ( the exact code has been tested ). Mapping the fields and importing the feeds is part of the setup!
the first example in this post : affiliatefeeds.nl/datafeeds-configuratio...reply/3331.html#3327 should show the list ( the exact code has been tested ). Mapping the fields and importing the feeds is part of the setup!
Please Log in or Create an account to join the conversation.
9 years 3 months ago #3333
by dalens
Replied by dalens on topic Item aditional info in Datafeed for Joomla 3.x
I have mapped the fields and imported feeds. Please, see the page
www.partydress.dk/cocktailkjoler/t-Laona...ler+festkjoler+beige
As you can see, the system repeats items' additional info several times. How to avoid that?
Another thing is, when I try to display items' additional info like a list - the component does not work at all with a message "syntax error".
As you can see, the system repeats items' additional info several times. How to avoid that?
Another thing is, when I try to display items' additional info like a list - the component does not work at all with a message "syntax error".
Please Log in or Create an account to join the conversation.
9 years 3 months ago #3334
by bram
Replied by bram on topic Item aditional info in Datafeed for Joomla 3.x
I missed to copy the first few characters in the first example, sorry about that
(updated the code example)
ensure that the
$description=''; or $list=arrray(); is included to avoid the repetition.
Code:
echo '<div class="prijs">€'.$product_price.'</div>';
ensure that the
$description=''; or $list=arrray(); is included to avoid the repetition.
Please Log in or Create an account to join the conversation.
9 years 3 months ago #3335
by dalens
Replied by dalens on topic Item aditional info in Datafeed for Joomla 3.x
Thank you, I could manage to avoid the repetition.
But I still can't get it look like a list.
Here is the code:
<div class='datafeeds_description'>
<?php
echo $item;
$description='';
if ( @$item ) { $description.='Shop Kategori: <strong>' . strtolower($item."</strong>");}
if ( @$item ) { $description.=' Mærke: <strong>' . $item."</strong>"; }
if ( @$item ) { $description.=' Findes i størrelser: ' . strtolower($item); }
if ( @$item ) { $description.=' Pris før: ' . strtolower($item); }
if ( $description )
{
echo '<p class="des">'.$description.'</p>';
}
if ( $product_price > 0 ) {
print '<p class="prijs"><span>'.$currency.' '.money_format('%!.2n', $product_price).'</span></p>';
}
?>
But I still can't get it look like a list.
Here is the code:
<div class='datafeeds_description'>
<?php
echo $item;
$description='';
if ( @$item ) { $description.='Shop Kategori: <strong>' . strtolower($item."</strong>");}
if ( @$item ) { $description.=' Mærke: <strong>' . $item."</strong>"; }
if ( @$item ) { $description.=' Findes i størrelser: ' . strtolower($item); }
if ( @$item ) { $description.=' Pris før: ' . strtolower($item); }
if ( $description )
{
echo '<p class="des">'.$description.'</p>';
}
if ( $product_price > 0 ) {
print '<p class="prijs"><span>'.$currency.' '.money_format('%!.2n', $product_price).'</span></p>';
}
?>
Please Log in or Create an account to join the conversation.
8 years 11 months ago - 8 years 11 months ago #3366
by k.m.1
Replied by k.m.1 on topic Item aditional info in Datafeed for Joomla 3.x
Hallo
Ich habe das selbe Problem und bekomme immer eine Fehlermeldung ( Parse error: syntax error, unexpected 'Description' (T_STRING), expecting variable (T_VARIABLE) or '$' in /var/www/webxxx/html/example/components/com_datafeeds/views/items/tmpl/default_full.php on line 34 )
Meine Seite startet im mcol Layout ( hier möchte ich z.B. die Versandkosten integrieren - bei mir angelegt unter Select 9)
Meine Frage: " Wo füge ich welchen Code ein ?"
In der full.php sollen dann z.B. Größe, Farbe, Brand, Alter Preis aufgeführt sein.
Meine Frage: " Wo füge ich welchen Code ein ?"
Wie gesagt ich komme seit 2 Tagen nach vielen, vielen Versuchen nicht weiter da es immer Fehlermeldungen gibt.
Ich benutze Joomla 3.3.6
Ich habe das selbe Problem und bekomme immer eine Fehlermeldung ( Parse error: syntax error, unexpected 'Description' (T_STRING), expecting variable (T_VARIABLE) or '$' in /var/www/webxxx/html/example/components/com_datafeeds/views/items/tmpl/default_full.php on line 34 )
Meine Seite startet im mcol Layout ( hier möchte ich z.B. die Versandkosten integrieren - bei mir angelegt unter Select 9)
Meine Frage: " Wo füge ich welchen Code ein ?"
In der full.php sollen dann z.B. Größe, Farbe, Brand, Alter Preis aufgeführt sein.
Meine Frage: " Wo füge ich welchen Code ein ?"
Code:
<?php // no direct acce
echo '<div id="com_datafeeds">';
defined('_JEXEC') or die('Restricted access');
#
# Copyright brambring.nl
# https://www.affiliatefeeds.nl
# joomla@brambring.nl
#
if ($this->pagination ) {
$links= $this->pagination->getPagesLinks();
echo '<div class="pagination" id="datafeeds_top">'.$links.'</div>';
}
echo '<div class="datafeeds_clear">';
$zebra=0;
@$field1=$this->where['fields'][1];
@$field2=$this->where['fields'][2];
@$field3=$this->where['fields'][3];
$currency=$this->where['currency_sign'];
$baselink=$this->where['baselink'];
foreach ( $this->dataitems as $item ) {
$zebra++;
$alt=df_alt($item['title']);
$product_price=$item['Prijs'];
?>
<div class="datafeeds dfzebra<?php echo $zebra%2?>">
<h2><a target="_blank" class="dflink" href="<?php echo $item['url'];?>" rel="nofollow"><?php echo $item['title'];?></a></h2>
<div class='datafeeds_description'>
<?php
echo $item['description'];
if ( $product_price > 0 ) {
print '<p class="prijs"><span>'.$currency.' '.money_format('%!.2n', $product_price).'</span></p>';
}
?>
<p class="datafeeds_more"><a class="dflink" href="<?php echo $item['url'];?>" target="_blank" rel="nofollow" title="<?php echo $alt;?>"><?php echo $this->more_text?></a></p>
<?php
print '<span class="datafeeds_bread">';
if ( @$s1=$item[$field1]) {
print ' <a href="'.JRoute::_( $baselink."&". make_urlencoded(array("q1"=>$s1))).'">'.$s1.'</a>';
}
if ( @$s2=$item[$field2] ) {
print ' <a href="'.JRoute::_( $baselink."&". make_urlencoded(array("q1"=>$s1,"q2"=>$s2))).'">'.$s2.'</a>';
}
if ( @$s3=$item[$field3] ) {
print ' <a href="'.JRoute::_( $baselink."&". make_urlencoded(array("q1"=>$s1,"q2"=>$s2,"q3"=>$s3))).'">'.$s3.'</a>';
}
print "</span>";
?>
</div>
<a class="dflink" href="<?php echo $item['url'];?>" rel="nofollow" target="_blank">
<img class="datafeeds_img" src="<?php echo $item['image']; ?>" alt="<?php echo $alt;?>" />
</a>
<div class="datafeeds_clear datafeeds_fix"> </div>
</div>
<?php } #foreach ?>
</div>
<?php
if ($this->pagination ) { echo '<div class="pagination" id="datafeeds_bottom">'.$links.'</div>'; }
echo '</div>';
Wie gesagt ich komme seit 2 Tagen nach vielen, vielen Versuchen nicht weiter da es immer Fehlermeldungen gibt.
Ich benutze Joomla 3.3.6
Last edit: 8 years 11 months ago by k.m.1.
Please Log in or Create an account to join the conversation.
Time to create page: 0.171 seconds