Kategori Ürünlerini Scroll Olarak Anasayfada Gösterme

debreli

OpenCart-TR
Katılım
31 Ağu 2010
Mesajlar
196
Tepkime puanı
0
Puanları
0
Web sitesi
vakifshop.com
beğenirseniz bir sitemize bakın ondan sonra kurun
www.vakifshop.com/index.php
indir
ilk önce yukardaki modülü sitenize kurun.
kendi temama göre ayarladım biraz karışık gelebilir.
admin panelinden limitini istediğiniz kadar ayarlayın.

catalog/view/theme/default/module/categoryproducthome.tpl dosyasını altakiyle değiştirin.
Kod:
<link rel="stylesheet" type="text/css" href="catalog/view/theme/default/stylesheet/gallerystyle.css" />
      
<!-- Do not edit IE conditional style below -->
<!--[if gte IE 5.5]>
<style type="text/css">
#motioncontainer {
width:expression(Math.min(this.offsetWidth, maxwidth)+'px');
}
</style>
<![endif]-->
<!-- End Conditional Style -->

<script type="text/javascript" src="catalog/view/javascript/motiongallery.js">

/***********************************************
* CMotion Image Gallery- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
* This notice must stay intact for legal use
* Modified by Jscheuer1 for autowidth and optional starting positions
***********************************************/

</script><div id="motioncontainer" style="position:relative;overflow:hidden;">
<div id="motiongallery" style="position:absolute;left:0;top:0;white-space: nowrap;">
<nobr id="trueContainer">
<?php if ($products) { ?><table class="list" >
  <div class="middle"> 
  <?php for ($i = 0; $i < sizeof($products); $i = $i + 20) { ?>
     <tr>
      <?php for ($j = $i; $j < ($i + 20); $j++) { ?>
     <td width="25%"> <?php if (isset($products[$j])) { ?>
     
<a href="<?php echo $products[$j]['href']; ?>"><img src="<?php echo $products[$j]['thumb']; ?>" title="<?php echo $products[$j]['name']; ?>" alt="<?php echo $products[$j]['name']; ?>" /></a><br><a href="<?php echo $products[$j]['href']; ?>"><?php echo $products[$j]['name']; ?></a><?php } ?>
      <?php } ?>
    <?php } ?></td><?php } ?></tr></table>
 </nobr>
</div>
</div></div>

catalog/view/theme/default/stylesheet/gallerystyle.css dosyasını açın
Kod:
#motioncontainer {
/*margin:0 auto;  Uncomment this line if you wish to center the gallery on page */
width: 450px; /* Set to gallery width, in px or percentage */
height: 98px; /* Set to gallery height */
}

buradaki sayı değerlerini kendi temanıza göre ayarlayın.

enson olarak bir JS dosyası oluşturun içine alttaki kodları yerleştirip
catalog/view/javascript/ klasörünün içine atın
Kod:
/***********************************************
* CMotion Image Gallery- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* Visit http://www.dynamicDrive.com for source code
* This copyright notice must stay intact for legal use
* Modified for autowidth and optional starting positions in
* http://www.dynamicdrive.com/forums/showthread.php?t=11839 by jschuer1 8/5/06
***********************************************/

 //1) Set width of the "neutral" area in the center of the gallery.
var restarea=6;
 //2) Set top scroll speed in pixels. Script auto creates a range from 0 to top speed.
var maxspeed=7;
 //3) Set to maximum width for gallery - must be less than the actual length of the image train.
var maxwidth=1000;
 //4) Set to 1 for left start, 0 for right, 2 for center.
var startpos=0;
 //5) Set message to show at end of gallery. Enter "" to disable message.
var endofgallerymsg='';

function enlargeimage(path, optWidth, optHeight){ //function to enlarge image. Change as desired.
var actualWidth=typeof optWidth!="undefined" ? optWidth : "600px" //set 600px to default width
var actualHeight=typeof optHeight!="undefined" ? optHeight : "500px" //set 500px to  default height
var winattributes="width="+actualWidth+",height="+actualHeight+",resizable=yes"
window.open(path,"", winattributes)
}

////NO NEED TO EDIT BELOW THIS LINE////////////

var iedom=document.all||document.getElementById, scrollspeed=0, movestate='', actualwidth='', cross_scroll, ns_scroll, statusdiv, loadedyes=0, lefttime, righttime;

function ietruebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body;
}

function creatediv(){
statusdiv=document.createElement("div")
statusdiv.setAttribute("id","statusdiv")
document.body.appendChild(statusdiv)
statusdiv=document.getElementById("statusdiv")
statusdiv.innerHTML=endofgallerymsg
}

function positiondiv(){
var mainobjoffset=getposOffset(crossmain, "left"),
menuheight=parseInt(crossmain.offsetHeight),
mainobjoffsetH=getposOffset(crossmain, "top");
statusdiv.style.left=mainobjoffset+(menuwidth/2)-(statusdiv.offsetWidth/2)+"px";
statusdiv.style.top=menuheight+mainobjoffsetH+"px";
}

function showhidediv(what){
if (endofgallerymsg!="") {
positiondiv();
statusdiv.style.visibility=what;
}
}

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft: what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function moveleft(){
if (loadedyes){
movestate="left";
if (iedom&&parseInt(cross_scroll.style.left)>(menuwidth-actualwidth)){
cross_scroll.style.left=parseInt(cross_scroll.style.left)-scrollspeed+"px";
showhidediv("hidden");
}
else
showhidediv("visible");
}
lefttime=setTimeout("moveleft()",10);
}

function moveright(){
if (loadedyes){
movestate="right";
if (iedom&&parseInt(cross_scroll.style.left)<0){
cross_scroll.style.left=parseInt(cross_scroll.style.left)+scrollspeed+"px";
showhidediv("hidden");
}
else
showhidediv("visible");
}
righttime=setTimeout("moveright()",10);
}

function motionengine(e){
var mainobjoffset=getposOffset(crossmain, "left"),
dsocx=(window.pageXOffset)? pageXOffset: ietruebody().scrollLeft,
dsocy=(window.pageYOffset)? pageYOffset : ietruebody().scrollTop,
curposy=window.event? event.clientX : e.clientX? e.clientX: "";
curposy-=mainobjoffset-dsocx;
var leftbound=(menuwidth-restarea)/2;
var rightbound=(menuwidth+restarea)/2;
if (curposy>rightbound){
scrollspeed=(curposy-rightbound)/((menuwidth-restarea)/2) * maxspeed;
clearTimeout(righttime);
if (movestate!="left") moveleft();
}
else if (curposy<leftbound){
scrollspeed=(leftbound-curposy)/((menuwidth-restarea)/2) * maxspeed;
clearTimeout(lefttime);
if (movestate!="right") moveright();
}
else
scrollspeed=0;
}

function contains_ns6(a, b) {
if (b!==null)
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function stopmotion(e){
if (!window.opera||(window.opera&&e.relatedSelf!==null))
if ((window.event&&!crossmain.contains(event.toElement)) || (e && e.currentSelf && e.currentSelf!= e.relatedSelf && !contains_ns6(e.currentSelf, e.relatedSelf))){
clearTimeout(lefttime);
clearTimeout(righttime);
movestate="";
}
}

function fillup(){
if (iedom){
crossmain=document.getElementById? document.getElementById("motioncontainer") : document.all.motioncontainer;
if(typeof crossmain.style.maxWidth!=='undefined')
crossmain.style.maxWidth=maxwidth+'px';
menuwidth=crossmain.offsetWidth;
cross_scroll=document.getElementById? document.getElementById("motiongallery") : document.all.motiongallery;
actualwidth=document.getElementById? document.getElementById("trueContainer").offsetWidth : document.all['trueContainer'].offsetWidth;
if (startpos)
cross_scroll.style.left=(menuwidth-actualwidth)/startpos+'px';
crossmain.onmousemove=function(e){
motionengine(e);
}

crossmain.onmouseout=function(e){
stopmotion(e);
showhidediv("hidden");
}
}
loadedyes=1
if (endofgallerymsg!=""){
creatediv();
positiondiv();
}
if (document.body.filters)
onresize()
}
window.onload=fillup;

onresize=function(){
if (typeof motioncontainer!=='undefined'&&motioncontainer.filters){
motioncontainer.style.width="0";
motioncontainer.style.width="";
motioncontainer.style.width=Math.min(motioncontainer.offsetWidth, maxwidth)+'px';
}
menuwidth=crossmain.offsetWidth;
cross_scroll.style.left=startpos? (menuwidth-actualwidth)/startpos+'px' : 0;
}



css dosyasını vermeyi unutmuşum. gallerystyle isminde css dosyası oluşturuyoruz.içine aşağıdaki kodlar yapıştırıp catalog/view/theme/default/stylesheet klasörünün içine atıyoruz.
Kod:
/* Gallery Styles */

#motioncontainer {
/*margin:0 auto;  Uncomment this line if you wish to center the gallery on page */
width: 450px; /* Set to gallery width, in px or percentage */
height: 98px; /* Set to gallery height */
}

#motioncontainer a img {
border: 1px solid #cccccc; /* Set image border color */
}

#motioncontainer a:hover img {
border: 1px solid navy; /* Set image border hover color */
}

#statusdiv {
background-color: lightyellow;
border: 1px solid gray;
padding: 2px;
position: absolute; /* Stop Editing Gallery Styles */
left: -300px;
visibility: hidden;
}

#motioncontainer a:hover {
color: red; /* Dummy definition to overcome IE bug */
}
/* End Gallery Styles */


JS dosasının ismini vermeyi unutmuşum motiongallery.js olarak kaydedip javascript klasörünün içine atın.
 

ahmetusta

OpenCart-TR
Katılım
2 Tem 2010
Mesajlar
7
Tepkime puanı
0
Puanları
0
Web sitesi
ihlamursifalibitkiler.com
RE: catagori ürünlerini anasayfada gösterme. scrool

ana sayfanızdaki modül isimlerini öğrenebilir miyim?orta kısımdakileri
 

debreli

OpenCart-TR
Katılım
31 Ağu 2010
Mesajlar
196
Tepkime puanı
0
Puanları
0
Web sitesi
vakifshop.com
RE: catagori ürünlerini anasayfada gösterme. scrool

one_left,latest,random,categoryproduct,featured.
 

Dagger

OpenCart-TR
Katılım
31 Ağu 2010
Mesajlar
87
Tepkime puanı
0
Puanları
0
Yaş
50
Konum
Istanbul
Teşekkürler çok güzel oldu fakat ben bir kategori ürünleri değil sitedeki ürünlerin tamamının geçmesini istiyorum veya birden fazla kategori seçebilmeyi nasıl yapmam lazım
 

kripto35

OpenCart-TR
Katılım
13 Eyl 2010
Mesajlar
68
Tepkime puanı
0
Puanları
0
Yaş
35
Konum
İzmir
slm kardeşim ben yaptığın siteyi inceledim ve alışveriş sepetinin üstünede ki ürün gösterimini gerçekten çok sevdim. bunu paylaşabilir misin acaba ? birde bunu modül olarak mı yaptın yoksa kodlarla mı oynadın ? Valla nasıl yaptıysan okadar da önemli değil benim için herşekilde bnm açımdan güzel olmuş :) ellerine sağlık birkez daha :)

Önizleme:

deneme2.png



birde şey yapabilirmiyiz acaba ? altta küçük ürün resimlerine tıklandığında üstteki 2li ürün değişimlerinde ürünlerden biri kaybolup tıkladığın ürününü resmi ve bilgileri gelebilirmi :)
 

debreli

OpenCart-TR
Katılım
31 Ağu 2010
Mesajlar
196
Tepkime puanı
0
Puanları
0
Web sitesi
vakifshop.com
opencartın dowload bölümünden one_left modülünü indir.
sitene kur ilk hata verecek.
admin panelinden limiti iki olarak ayarla.
sonra catalog/controller/module/one_left.php dosyasını aç
alttakiyle değiştir

Kod:
<?php
class ControllerModuleOneLeft extends Controller {
	protected function index() {
		$this->language->load('module/one_left');

      	$this->data['heading_title'] = $this->language->get('heading_title');

		$this->load->model('fido/one_left');
		$this->load->model('catalog/product');
		$this->load->model('catalog/review');
		$this->load->model('tool/seo_url');
		$this->load->model('tool/image');

		$this->data['button_add_to_cart'] = $this->language->get('button_add_to_cart');

		$this->data['products'] = array();

		$results = $this->model_catalog_product->getLatestProducts($this->config->get('one_left_limit'));

		foreach ($results as $result) {
			if ($result['image']) {
				$image = $result['image'];
			} else {
				$image = 'no_image.jpg';
			}

			if ($this->config->get('config_review')) {
				$rating = $this->model_catalog_review->getAverageRating($result['product_id']);
			} else {
				$rating = false;
			}

			$special = FALSE;

			$discount = $this->model_catalog_product->getProductDiscount($result['product_id']);

			if ($discount) {
				$price = $this->currency->format($this->tax->calculate($discount, $result['tax_class_id'], $this->config->get('config_tax')));
			} else {
				$price = $this->currency->format($this->tax->calculate($result['price'], $result['tax_class_id'], $this->config->get('config_tax')));

				$special = $this->model_catalog_product->getProductSpecial($result['product_id']);

				if ($special) {
					$special = $this->currency->format($this->tax->calculate($special, $result['tax_class_id'], $this->config->get('config_tax')));
				}
			}

			$options = $this->model_catalog_product->getProductOptions($result['product_id']);

			if ($options) {
				$add = $this->model_tool_seo_url->rewrite(HTTP_SERVER . 'index.php?route=product/product&product_id=' . $result['product_id']);
			} else {
				$add = HTTPS_SERVER . 'index.php?route=checkout/cart&product_id=' . $result['product_id'];
			}

			$this->data['products'][] = array(
				'product_id'    => $result['product_id'],
				'name'    		=> $result['name'],
				'model'   		=> $result['model'],
				'rating'  		=> $rating,
				'shortdescription'  => (substr($result['description'],0,150)),
				'stars'   		=> sprintf($this->language->get('text_stars'), $rating),
				'price'   		=> $price,
				'options'   	=> $options,
				'special' 		=> $special,
				'image'   		=> $this->model_tool_image->resize($image, 110, 110),
				'thumb'   		=> $this->model_tool_image->resize($image, $this->config->get('config_image_product_width'), $this->config->get('config_image_product_height')),
				'href'    		=> $this->model_tool_seo_url->rewrite(HTTP_SERVER . 'index.php?route=product/product&product_id=' . $result['product_id']),
				'add'    		=> $add
			);
		}

		if (!$this->config->get('config_customer_price')) {
			$this->data['display_price'] = TRUE;
		} elseif ($this->customer->isLogged()) {
			$this->data['display_price'] = TRUE;
		} else {
			$this->data['display_price'] = FALSE;
		}

		$this->id = 'one_left';

		if ($this->config->get('one_left_position') == 'home') {
			if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/module/one_left_home.tpl')) {
				$this->template = $this->config->get('config_template') . '/template/module/one_left_home.tpl';
			} else {
				$this->template = 'default/template/module/one_left_home.tpl';
			}
		} else {
			if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/module/one_left.tpl')) {
				$this->template = $this->config->get('config_template') . '/template/module/one_left.tpl';
			} else {
				$this->template = 'default/template/module/one_left.tpl';
			}
		}

		$this->render();
	}
}
?>

temanın module/one_left_home.tpl dosyasını aşağıdakiyle değiştir.
Kod:
<?php if ($products) { ?>
<meta name="keywords" content="<?php echo $keywords; ?>" />
  <table class="bg">
  <?php for ($i = 0; $i < sizeof($products); $i = $i + 2) { ?>
    <tr>
      <?php for ($j = $i; $j < ($i + 2); $j++) { ?>
      <td style="width: 1%;"><?php if (isset($products[$j])) { ?>
       <a href="<?php echo str_replace('&', '&', $products[$j]['href']); ?>"><img src="<?php echo $products[$j]['image']; ?>" title="<?php echo $products[$j]['name']; ?>" alt="<?php echo $products[$j]['name']; ?>" /></a><?php if ($display_price) { ?>
      <?php if (!$products[$j]['special']) { ?>
      <span style="color: #900; font-weight: bold;"><font size="3"><center><?php echo $products[$j]['price']; ?></center></font></span>
      <?php } else { ?>
      <span style="color: #900; font-weight: bold; text-decoration: line-through;"><?php echo $products[$j]['price']; ?></span> <span style="color: #F00;"><?php echo $products[$j]['special']; ?></span>
      <?php } ?></td><td>
      <a href="<?php echo str_replace('&', '&', $products[$j]['href']); ?>"><font size="3"><?php echo $products[$j]['name']; ?></font></a><?php if ($products[$j]['rating']) { ?>
      <img src="catalog/view/theme/default/image/stars_<?php echo $products[$j]['rating'] . '.png'; ?>" alt="<?php echo $products[$j]['stars']; ?>" />
      <?php } ?><image src="catalog/view/theme/default/image/sepet.png" onclick="location = '<?php echo $products[$j]['add']; ?>'"title="<?php echo $button_add_to_cart; ?>" align="left"><hr><?php echo ($products[$j]['shortdescription'] );?>...<image src="catalog/view/theme/default/image/bullet.gif" onclick="location = '<?php echo str_replace('&', '&', $products[$j]['href']); ?>'"><br>
	  </span><span style=" margin: 0px;padding-left:105px;"><image src="catalog/view/theme/default/image/incele.png" onclick="location = '<?php echo str_replace('&', '&', $products[$j]['href']); ?>'"></div>
      <?php } ?>
   
      <?php } ?>
	  </td>
      <?php } ?>
    </tr>
    <?php } ?>
  </table>


<?php } ?>

temanın common/home.tpl dosyasını aç
bul
Kod:
<?php echo $column_left; ?>
sonrasına ekle
Kod:
<?php echo $one_left; ?>

stylesheet.css dosyasının sonuna
altakini ekle
Kod:
.bg {
    background: #FFFFFF url('../image/background.png') 0px 1px repeat-x;
	border: 1px #ccc solid;
	font-size: 16px;
	text-align: left;
	margin: 5px;
	padding: 5px;
	}
backround.png arka plan resmini kendin ayarlarsın

one_left.php dosyasında 18.satırında
bukoddaki
$results = $this->model_catalog_product->getLatestProducts($this->config->get('one_left_limit'));

Latest yazan yere Random yazarsanız rasgele ürünleri gösterir.
 

kripto35

OpenCart-TR
Katılım
13 Eyl 2010
Mesajlar
68
Tepkime puanı
0
Puanları
0
Yaş
35
Konum
İzmir
eyw kardeşim kurdum biraz ayar yapmak kaldı sadece ama şu random olayını yapamadım getLatestProducts yazan yeri getRamdomProduct yazıyorum dediğin gibi hemen hata veriyor. bunu nasıl düzeltebilirim ??

Dagger' Alıntı:
Bu kimin sorusuna cevaptı acaba

biraz yukarı bak kardeşim kimin sorduğunu görürsün ;)
 

Dagger

OpenCart-TR
Katılım
31 Ağu 2010
Mesajlar
87
Tepkime puanı
0
Puanları
0
Yaş
50
Konum
Istanbul
bir üstündede benim bir sorum vardı o sebeple :-/
 

kripto35

OpenCart-TR
Katılım
13 Eyl 2010
Mesajlar
68
Tepkime puanı
0
Puanları
0
Yaş
35
Konum
İzmir
hmm ozaman bnm hatam kardeşim okumayan benmişim :) kusura bakma
 

AliKral

OpenCart-TR
Katılım
3 Eyl 2010
Mesajlar
40
Tepkime puanı
0
Puanları
0
eline saglık.çok güzel olmuş.Bende böyle birşey arıyordum süper oldu ;)



üstad dediklerini uyguladım ancak sayfada hiç gözükmüyor
 

Dagger

OpenCart-TR
Katılım
31 Ağu 2010
Mesajlar
87
Tepkime puanı
0
Puanları
0
Yaş
50
Konum
Istanbul
Sorumu tekrar yazıyorum eğer çözümü varsa ; ben birden fazla kategori seçmek veya sitedeki tüm ürünlerin geçmesini istiyorum ne yapmam gerekiyor acaba.Teşekkürler
 

ulast

OpenCart-TR
Katılım
9 Ocak 2011
Mesajlar
21
Tepkime puanı
0
Puanları
0
debreli' Alıntı:
opencartın dowload bölümünden one_left modülünü indir.
sitene kur ilk hata verecek.
admin panelinden limiti iki olarak ayarla.
sonra catalog/controller/module/one_left.php dosyasını aç
alttakiyle değiştir

Kod:
<?php
class ControllerModuleOneLeft extends Controller {
	protected function index() {
		$this->language->load('module/one_left');

      	$this->data['heading_title'] = $this->language->get('heading_title');

		$this->load->model('fido/one_left');
		$this->load->model('catalog/product');
		$this->load->model('catalog/review');
		$this->load->model('tool/seo_url');
		$this->load->model('tool/image');

		$this->data['button_add_to_cart'] = $this->language->get('button_add_to_cart');

		$this->data['products'] = array();

		$results = $this->model_catalog_product->getLatestProducts($this->config->get('one_left_limit'));

		foreach ($results as $result) {
			if ($result['image']) {
				$image = $result['image'];
			} else {
				$image = 'no_image.jpg';
			}

			if ($this->config->get('config_review')) {
				$rating = $this->model_catalog_review->getAverageRating($result['product_id']);
			} else {
				$rating = false;
			}

			$special = FALSE;

			$discount = $this->model_catalog_product->getProductDiscount($result['product_id']);

			if ($discount) {
				$price = $this->currency->format($this->tax->calculate($discount, $result['tax_class_id'], $this->config->get('config_tax')));
			} else {
				$price = $this->currency->format($this->tax->calculate($result['price'], $result['tax_class_id'], $this->config->get('config_tax')));

				$special = $this->model_catalog_product->getProductSpecial($result['product_id']);

				if ($special) {
					$special = $this->currency->format($this->tax->calculate($special, $result['tax_class_id'], $this->config->get('config_tax')));
				}
			}

			$options = $this->model_catalog_product->getProductOptions($result['product_id']);

			if ($options) {
				$add = $this->model_tool_seo_url->rewrite(HTTP_SERVER . 'index.php?route=product/product&product_id=' . $result['product_id']);
			} else {
				$add = HTTPS_SERVER . 'index.php?route=checkout/cart&product_id=' . $result['product_id'];
			}

			$this->data['products'][] = array(
				'product_id'    => $result['product_id'],
				'name'    		=> $result['name'],
				'model'   		=> $result['model'],
				'rating'  		=> $rating,
				'shortdescription'  => (substr($result['description'],0,150)),
				'stars'   		=> sprintf($this->language->get('text_stars'), $rating),
				'price'   		=> $price,
				'options'   	=> $options,
				'special' 		=> $special,
				'image'   		=> $this->model_tool_image->resize($image, 110, 110),
				'thumb'   		=> $this->model_tool_image->resize($image, $this->config->get('config_image_product_width'), $this->config->get('config_image_product_height')),
				'href'    		=> $this->model_tool_seo_url->rewrite(HTTP_SERVER . 'index.php?route=product/product&product_id=' . $result['product_id']),
				'add'    		=> $add
			);
		}

		if (!$this->config->get('config_customer_price')) {
			$this->data['display_price'] = TRUE;
		} elseif ($this->customer->isLogged()) {
			$this->data['display_price'] = TRUE;
		} else {
			$this->data['display_price'] = FALSE;
		}

		$this->id = 'one_left';

		if ($this->config->get('one_left_position') == 'home') {
			if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/module/one_left_home.tpl')) {
				$this->template = $this->config->get('config_template') . '/template/module/one_left_home.tpl';
			} else {
				$this->template = 'default/template/module/one_left_home.tpl';
			}
		} else {
			if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/module/one_left.tpl')) {
				$this->template = $this->config->get('config_template') . '/template/module/one_left.tpl';
			} else {
				$this->template = 'default/template/module/one_left.tpl';
			}
		}

		$this->render();
	}
}
?>

temanın module/one_left_home.tpl dosyasını aşağıdakiyle değiştir.
Kod:
<?php if ($products) { ?>
<meta name="keywords" content="<?php echo $keywords; ?>" />
  <table class="bg">
  <?php for ($i = 0; $i < sizeof($products); $i = $i + 2) { ?>
    <tr>
      <?php for ($j = $i; $j < ($i + 2); $j++) { ?>
      <td style="width: 1%;"><?php if (isset($products[$j])) { ?>
       <a href="<?php echo str_replace('&', '&', $products[$j]['href']); ?>"><img src="<?php echo $products[$j]['image']; ?>" title="<?php echo $products[$j]['name']; ?>" alt="<?php echo $products[$j]['name']; ?>" /></a><?php if ($display_price) { ?>
      <?php if (!$products[$j]['special']) { ?>
      <span style="color: #900; font-weight: bold;"><font size="3"><center><?php echo $products[$j]['price']; ?></center></font></span>
      <?php } else { ?>
      <span style="color: #900; font-weight: bold; text-decoration: line-through;"><?php echo $products[$j]['price']; ?></span> <span style="color: #F00;"><?php echo $products[$j]['special']; ?></span>
      <?php } ?></td><td>
      <a href="<?php echo str_replace('&', '&', $products[$j]['href']); ?>"><font size="3"><?php echo $products[$j]['name']; ?></font></a><?php if ($products[$j]['rating']) { ?>
      <img src="catalog/view/theme/default/image/stars_<?php echo $products[$j]['rating'] . '.png'; ?>" alt="<?php echo $products[$j]['stars']; ?>" />
      <?php } ?><image src="catalog/view/theme/default/image/sepet.png" onclick="location = '<?php echo $products[$j]['add']; ?>'"title="<?php echo $button_add_to_cart; ?>" align="left"><hr><?php echo ($products[$j]['shortdescription'] );?>...<image src="catalog/view/theme/default/image/bullet.gif" onclick="location = '<?php echo str_replace('&', '&', $products[$j]['href']); ?>'"><br>
	  </span><span style=" margin: 0px;padding-left:105px;"><image src="catalog/view/theme/default/image/incele.png" onclick="location = '<?php echo str_replace('&', '&', $products[$j]['href']); ?>'"></div>
      <?php } ?>
   
      <?php } ?>
	  </td>
      <?php } ?>
    </tr>
    <?php } ?>
  </table>


<?php } ?>

temanın common/home.tpl dosyasını aç
bul
Kod:
<?php echo $column_left; ?>
sonrasına ekle
Kod:
<?php echo $one_left; ?>

stylesheet.css dosyasının sonuna
altakini ekle
Kod:
.bg {
    background: #FFFFFF url('../image/background.png') 0px 1px repeat-x;
	border: 1px #ccc solid;
	font-size: 16px;
	text-align: left;
	margin: 5px;
	padding: 5px;
	}
backround.png arka plan resmini kendin ayarlarsın

one_left.php dosyasında 18.satırında
bukoddaki
$results = $this->model_catalog_product->getLatestProducts($this->config->get('one_left_limit'));

Latest yazan yere Random yazarsanız rasgele ürünleri gösterir.

Eline koluna saglık gercekten cok güzel olduda fakat bi sorun var..

Latest calısmıyor..

birde ürünün kısa icerigini cekerken html kodlarıda cekiyor onu düzelttim

one_left.php i açın

bulun;
Kod:
'shortdescription'  => (substr($result['description'],0,150)),

değiştirin;
Kod:
'shortdescription'    => strip_tags(substr(html_entity_decode($result['description']),0,900)),
 
Üst