echo $item['description'];
if ( $product_price > 0 ) {
print '<p class="prijs"><span>'.$currency.' '.money_format('%!.2n', $product_price).'</span></p>';
}
<?php // no direct acce
defined('_JEXEC') or die('Restricted access');
echo '<div id="com_datafeeds">';
#
# 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 '<div class="prijs">€'.$product_price.'</div>';
@$x=$item['Select6']; # contains old price
if ($x > $item['Prijs']) {
print '<h2>Aanbieding</h2><div class="prijs sale">oude prijs: ' . money_format('%!.2n', $x).'</div>';
}
$list=array();
if ( @$item['Select4'] ) { $list[]='Merk : ' . $item['Select4']; } # replace according your mapping
if ( @$item['Select5'] ) { $list[]='Kleur : ' . $item['Select5']; }
if ( @$item['Select8'] ) { $list[]='Model : ' . $item['Select8']; }
if ( @$item['Select7'] ) { $list[]='Materiaal : ' . $item['Select7']; }
if ( count($list) ) {
echo '<ul class="product"><li>'.join('</li><li>',$list).'</li></ul>';
}
?>
<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>
<span class="datafeeds_bread">
<?php
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>';
}
?>
</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>'; }
?>
</div>
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
$list=array();
if ( @$item['Select6'] ) { $list[]=' ' . $item['Select6']; } # replace according your mapping
if ( @$item['Select5'] ) { $list[]='Brand : ' . $item['Select5']; }
if ( @$item['Select7'] ) { $list[]='Color : ' . $item['Select7']; }
if ( @$item['Select11'] ) { $list[]='Größe : ' . $item['Select11']; }
if ( @$item['Select12'] ) { $list[]='Material : ' . $item['Select12']; }
if ( @$item['Select10'] ) { $list[]='Lieferzeit : ' . $item['Select10']; }
if ( @$item['Select9'] ) { $list[]='Versandkosten : ' . $item['Select9']; }
if ( count($list) ) {
echo '<ul class="product"><li>'.join('</li><li>',$list).'</li></ul>';
}
Please Log in or Create an account to join the conversation.
#add to administror/components/com_datafeeds/cron/feeds.php
function add_long_cb(&$item){
$item['description'].="<br/>".$item['longdescription'];
#or $item['description']=$item['longdescription'];
generic_cb($item);
}
ALTER TABLE `REPLACE_dataitems` CHANGE `Select6` `Select6` VARCHAR( 2048 )
Please Log in or Create an account to join the conversation.
#add to administror/components/com_datafeeds/cron/feeds.php
function add_long_cb(&$item){
$item['description'].="<br/>".$item['longdescription'];
#or $item['description'].$item['longdescription'];
generic_cb($item);
}
Please Log in or Create an account to join the conversation.