RE: OpenCart 1.4.8 Sürümüne Geçmek (Güncellemek)
sistemi denedım sorunsuz calısıyor ancak orjınal temesında. smrel temasını edıtleyerek kulanmıstım ben mesela sepet kısmında degısıklık yapmıslar sepete gıt kasaya gıt koymuslar.. orası gata vermekte ve agırlık bıırmlerını eklemıssler sepete. ve temada eksık olan bı kısımda alısısverısı tamamlama safhasında bı yerın eksık olmasından verıyor suan gozlemledıgım. bunlar cozule bılırse kullanmaya baslıcam bunları localde denedım sımdı hataları verıyorum..
1 - ılk aldıgım hata dıl dosyasında oldu mırac ın verdıgı dıl dosyasını atınca duzeldı. 1. sayfada lınkı duruyor
2 - sol blog da bulunan sepet modulu
Kod:
Ara Toplam: Notice: Undefined variable: subtotal in C:\wamp\www\ticaret\catalog\view\theme\smrel\template\module\cart.tpl on line 19
3. hata 2. ıle alakalı.. urunu sepete attıgınızda sepetıme tıklıyorsunuz yanı checkout/cart sayfası..
Kod:
Ara Toplam: Notice: Undefined variable: sub_total in C:\wamp\www\ticaret\catalog\view\theme\smrel\template\checkout\cart.tpl on line 47
Sepet ürün ağırlığı: 12.00kg
4. hata alısıverısı onayla kısmında yanı checkout/confirm
Kod:
Notice: Undefined variable: coupon_status in C:\wamp\www\ticaret\catalog\view\theme\smrel\template\checkout\confirm.tpl on line 76
şuan ıcın aldıgım hatalar bunlar ancak sıtede hıssedılebılır bı hızlanma var.
ancak yaptıgımız ıs hepımızn aynı sanalda satız. bunu dusunerek kesın olarak son surume guncellememız lazım sonucta adamlar zevk olsun dıye yenı bır suurm surmuyorlar
2 . hatanın cozumu
teman\template\module\cart.tpl dakı kodlarnı bunlarla degıstır
Kod:
<div id="module_cart" class="box">
<div class="top"><img src="catalog/view/theme/default/image/basket.png" alt="" /><?php echo $heading_title; ?></div>
<div class="middle">
<?php if ($products) { ?>
<table cellpadding="2" cellspacing="0" style="width: 100%;">
<?php foreach ($products as $product) { ?>
<tr>
<td align="left" valign="top" width="1"><span class="cart_remove" id="remove_<?php echo $product['key']; ?>"> </span></td><td valign="top" align="right" width="1"><?php echo $product['quantity']; ?> x </td>
<td align="left" valign="top"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a>
<div>
<?php foreach ($product['option'] as $option) { ?>
- <small style="color: #999;"><?php echo $option['name']; ?> <?php echo $option['value']; ?></small><br />
<?php } ?>
</div></td>
</tr>
<?php } ?>
</table>
<br />
<table cellpadding="0" cellspacing="0" align="right" style="display:inline-block;">
<?php foreach ($totals as $total) { ?>
<tr>
<td align="right"><span class="cart_module_total"><b><?php echo $total['title']; ?></b></span></td>
<td align="right"><span class="cart_module_total"><?php echo $total['text']; ?></span></td>
</tr>
<?php } ?>
</table>
<div style="padding-top:5px;text-align:center;clear:both;"><a href="<?php echo $view; ?>"><?php echo $text_view; ?></a> | <a href="<?php echo $checkout; ?>"><?php echo $text_checkout; ?></a></div>
<?php } else { ?>
<div style="text-align: center;"><?php echo $text_empty; ?></div>
<?php } ?>
</div>
<div class="bottom"> </div>
</div>
<?php if ($ajax) { ?>
<script type="text/javascript" src="catalog/view/javascript/jquery/ajax_add.js"></script>
<?php } ?>
<script type="text/javascript"><!--
function getUrlParam(name) {
var name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
var regexS = "[\\?&]"+name+"=([^&#]*)";
var regex = new RegExp(regexS);
var results = regex.exec(window.location.href);
if (results == null)
return "";
else
return results[1];
}
$(document).ready(function () {
$('.cart_remove').live('click', function () {
if (!confirm('<?php echo $text_confirm; ?>')) {
return false;
}
$(this).removeClass('cart_remove').addClass('cart_remove_loading');
$.ajax({
type: 'post',
url: 'index.php?route=module/cart/callback',
dataType: 'html',
data: 'remove=' + this.id,
success: function (html) {
$('#module_cart .middle').html(html);
if (getUrlParam('route').indexOf('checkout') != -1) {
window.location.reload();
}
}
});
});
});
//--></script>
3. verdıgım hatanın gıderılmesı
teman\template\checkout\cart.tpl dakı kodları verdıgım ıle degısıtır.
Kod:
<?php echo $header; ?><?php echo $column_left; ?><?php echo $column_right; ?>
<div id="content">
<div class="top">
<div class="left"></div>
<div class="right"></div>
<div class="center">
<h1><?php echo $heading_title; ?></h1>
</div>
</div>
<div class="middle">
<?php if ($success) { ?>
<div class="success"><?php echo $success; ?></div>
<?php } ?>
<?php if ($error_warning) { ?>
<div class="warning"><?php echo $error_warning; ?></div>
<?php } ?>
<div class="content">
<table width="100%">
<tr>
<td width="33.3%" valign="top"><?php if ($shipping_method) { ?>
<b><?php echo $text_shipping_method; ?></b><br />
<?php echo $shipping_method; ?><br />
<a href="<?php echo str_replace('&', '&', $checkout_shipping); ?>"><?php echo $text_change; ?></a><br />
<br />
<?php } ?>
<b><?php echo $text_payment_method; ?></b><br />
<?php echo $payment_method; ?><br />
<a href="<?php echo str_replace('&', '&', $checkout_payment); ?>"><?php echo $text_change; ?></a></td>
<td width="33.3%" valign="top"><?php if ($shipping_address) { ?>
<b><?php echo $text_shipping_address; ?></b><br />
<?php echo $shipping_address; ?><br />
<a href="<?php echo str_replace('&', '&', $checkout_shipping_address); ?>"><?php echo $text_change; ?></a>
<?php } ?></td>
<td width="33.3%" valign="top"><b><?php echo $text_payment_address; ?></b><br />
<?php echo $payment_address; ?><br />
<a href="<?php echo str_replace('&', '&', $checkout_payment_address); ?>"><?php echo $text_change; ?></a></td>
</tr>
</table>
</div>
<div class="content">
<table width="100%">
<tr>
<th align="left"><?php echo $column_product; ?></th>
<th align="left"><?php echo $column_model; ?></th>
<th align="right"><?php echo $column_quantity; ?></th>
<th align="right"><?php echo $column_price; ?></th>
<th align="right"><?php echo $column_total; ?></th>
</tr>
<?php foreach ($products as $product) { ?>
<tr>
<td align="left" valign="top"><a href="<?php echo str_replace('&', '&', $product['href']); ?>"><?php echo $product['name']; ?></a>
<?php foreach ($product['option'] as $option) { ?>
<br />
<small> - <?php echo $option['name']; ?> <?php echo $option['value']; ?></small>
<?php } ?></td>
<td align="left" valign="top"><?php echo $product['model']; ?></td>
<td align="right" valign="top"><?php echo $product['quantity']; ?></td>
<td align="right" valign="top"><?php echo $product['price']; ?></td>
<td align="right" valign="top"><?php echo $product['total']; ?></td>
</tr>
<?php } ?>
</table>
<br />
<div style="width: 100%; display: inline-block;">
<table style="float: right; display: inline-block;">
<?php foreach ($totals as $total) { ?>
<tr>
<td align="right"><?php echo $total['title']; ?></td>
<td align="right"><?php echo $total['text']; ?></td>
</tr>
<?php } ?>
</table>
<br />
</div>
</div>
<?php if ($comment) { ?>
<b style="margin-bottom: 2px; display: block;"><?php echo $text_comment; ?></b>
<div class="content"><?php echo $comment; ?></div>
<?php } ?>
<div id="payment"><?php echo $payment; ?></div>
</div>
<div class="bottom">
<div class="left"></div>
<div class="right"></div>
<div class="center"></div>
</div>
</div>
<?php echo $footer; ?>