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 ?"
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