mirac
OpenCart-TR
- Katılım
- 7 Şub 2010
- Mesajlar
- 1,383
- Tepkime puanı
- 0
- Puanları
- 36
- Yaş
- 43
- Konum
- Beykoz____
- Web sitesi
- www.notebook-cantasi.com
catalog\view\theme\Kullandığın Tema\template\product\product.tpl Aç..
Bul ve Sil..
Bul ve Sil..
Yeni Tab Eklemek için
catalog\view\theme\default\template\product\product.tpl
Bul
Altına Ekle
Bul
Üzerine Ekle
Nokta olana yere html kodlarından oluşturduğunuz form veya taksit tablolarını girebilirsiniz.
1.4.8 de test edilerek anlatılmıştır..
Bul ve Sil..
Kod:
<a tab="#tab_image"><?php echo $tab_image; ?> (<?php echo count($images); ?>)</a>
<?php if ($review_status) { ?><a tab="#tab_review"><?php echo $tab_review; ?></a><?php } ?>
<a tab="#tab_related"><?php echo $tab_related; ?> (<?php echo count($products); ?>)</a>
Bul ve Sil..
Kod:
<?php if ($review_status) { ?>
<div id="tab_review" class="tab_page">
<div id="review"></div>
<div class="heading" id="review_title"><?php echo $text_write; ?></div>
<div class="content"><b><?php echo $entry_name; ?></b><br />
<input type="text" name="name" value="" />
<br />
<br />
<b><?php echo $entry_review; ?></b>
<textarea name="text" style="width: 98%;" rows="8"></textarea>
<span style="font-size: 11px;"><?php echo $text_note; ?></span><br />
<br />
<b><?php echo $entry_rating; ?></b> <span><?php echo $entry_bad; ?></span>
<input type="radio" name="rating" value="1" style="margin: 0;" />
<input type="radio" name="rating" value="2" style="margin: 0;" />
<input type="radio" name="rating" value="3" style="margin: 0;" />
<input type="radio" name="rating" value="4" style="margin: 0;" />
<input type="radio" name="rating" value="5" style="margin: 0;" />
<span><?php echo $entry_good; ?></span><br />
<br />
<b><?php echo $entry_captcha; ?></b><br />
<input type="text" name="captcha" value="" autocomplete="off" />
<br />
<img src="index.php?route=product/product/captcha" id="captcha" /></div>
<div class="buttons">
<table>
<tr>
<td align="right"><a onclick="review();" class="button"><span><?php echo $button_continue; ?></span></a></td>
</tr>
</table>
</div>
</div>
<?php } ?>
<div id="tab_image" class="tab_page">
<?php if ($images) { ?>
<div style="display: inline-block;">
<?php foreach ($images as $image) { ?>
<div style="display: inline-block; float: left; text-align: center; margin-left: 5px; margin-right: 5px; margin-bottom: 10px;"><a href="<?php echo $image['popup']; ?>" title="<?php echo $heading_title; ?>" class="thickbox" rel="gallery"><img src="<?php echo $image['thumb']; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" style="border: 1px solid #DDDDDD; margin-bottom: 3px;" /></a><br />
<span style="font-size: 11px;"><?php echo $text_enlarge; ?></span></div>
<?php } ?>
</div>
<?php } else { ?>
<div style="background: #F7F7F7; border: 1px solid #DDDDDD; padding: 10px; margin-bottom: 10px;"><?php echo $text_no_images; ?></div>
<?php } ?>
</div>
<div id="tab_related" class="tab_page">
<?php if ($products) { ?>
<table class="list">
<?php for ($i = 0; $i < sizeof($products); $i = $i + 4) { ?>
<tr>
<?php for ($j = $i; $j < ($i + 4); $j++) { ?>
<td width="25%"><?php if (isset($products[$j])) { ?>
<a href="<?php echo str_replace('&', '&', $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 str_replace('&', '&', $products[$j]['href']); ?>"><?php echo $products[$j]['name']; ?></a><br />
<span style="color: #999; font-size: 11px;"><?php echo $products[$j]['model']; ?></span><br />
<?php if ($display_price) { ?>
<?php if (!$products[$j]['special']) { ?>
<span style="color: #900; font-weight: bold;"><?php echo $products[$j]['price']; ?></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 } ?>
<?php } ?>
<a class="button_add_small" href="<?php echo $products[$j]['add']; ?>" title="<?php echo $button_add_to_cart; ?>" > </a>
<br />
<?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 } ?>
<?php } ?></td>
<?php } ?>
</tr>
<?php } ?>
</table>
<?php } else { ?>
<div style="background: #F7F7F7; border: 1px solid #DDDDDD; padding: 10px; margin-bottom: 10px;"><?php echo $text_no_related; ?></div>
<?php } ?>
</div>
Yeni Tab Eklemek için
catalog\view\theme\default\template\product\product.tpl
Bul
Kod:
<a tab="#tab_related"><?php echo $tab_related; ?> (<?php echo count($products); ?>)</a>
Altına Ekle
Kod:
<a tab="#tab_taksit">Taksitler</a>
Bul
Kod:
</div>
<div class="bottom">
Üzerine Ekle
Kod:
<div id="tab_taksit" class="tab_page">.........................</div>
Nokta olana yere html kodlarından oluşturduğunuz form veya taksit tablolarını girebilirsiniz.
1.4.8 de test edilerek anlatılmıştır..