Sepette Ara Toplam - Posta/KDV/Kupon Sıralaması

oxygene4u

OpenCart-TR
Katılım
8 Şub 2011
Mesajlar
2
Tepkime puanı
0
Puanları
0
Merhabalar,
Bu faydali forum icin tesekkurler.

Sitemdeki sepet sayfasinda ve modulünde ufak bir sorun yaşıyorum.
Ara toplam (Sub-total) ucreti, Posta (Shipping)/KDV (VAT) ve Kupon (Coupon) ucretlerinden sonra geliyor. Hesaplamada bir hata yok. Ancak ben Ara toplam'in listenin en basinda olmasini istiyorum. Kontrol ettigim kadariyla Opencart'in temel surumunde bu liste dogru. Herhalde benim kurdugum bir modul siralamayi degistirdi.

Opencart surumum 1.4.9.3 ve sistemi İngilizce-Çekçe olarak kullaniyorum.

Bu siralamayi nasil degistirebilirim?
Hangi dosyalari editlemeliyim?

Bu catalog/view/theme/shopper_land_clean/template/checkout/cart.tpl dosyam.
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; ?>
        <?php if ($weight) { ?>
        &nbsp;(<?php echo $weight; ?>)
        <?php } ?>
      </h1>
    </div>
  </div>
  <div class="middle">
    <?php if ($error_warning) { ?>
    <div class="warning"><?php echo $error_warning; ?></div>
    <?php } ?>
    <form action="<?php echo str_replace('&', '&', $action); ?>" method="post" enctype="multipart/form-data" id="cart">
      <table class="cart">
        <tr>
          <th align="center"><?php echo $column_remove; ?></th>
          <th align="center"><?php echo $column_image; ?></th>
          <th align="left"><?php echo $column_name; ?></th>
          <th align="left"><?php echo $column_model; ?></th>
          <th align="right"><?php echo $column_quantity; ?></th>
          <?php if ($display_price) { ?>
        <th align="right"><?php echo $column_price; ?></th>
          <th align="right"><?php echo $column_total; ?></th>
        <?php } ?>
        </tr>
        <?php $class = 'odd'; ?>
        <?php foreach ($products as $product) { ?>
        <?php $class = ($class == 'even' ? 'odd' : 'even'); ?>
        <tr class="<?php echo $class; ?>">
          <td align="center"><input type="checkbox" name="remove[<?php echo $product['key']; ?>]" /></td>
          <td align="center"><a href="<?php echo str_replace('&', '&', $product['href']); ?>"><img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" /></a></td>
          <td align="left" valign="top"><a href="<?php echo str_replace('&', '&', $product['href']); ?>"><?php echo $product['name']; ?></a>
            <?php if (!$product['stock']) { ?>
            <span style="color: #FF0000; font-weight: bold;">***</span>
            <?php } ?>
            <div>
              <?php foreach ($product['option'] as $option) { ?>
              - <small><?php echo $option['name']; ?> <?php echo $option['value']; ?></small><br />
              <?php } ?>
            </div></td>
          <td align="left" valign="top"><?php echo $product['model']; ?></td>
          <td align="right" valign="top"><input type="text" name="quantity[<?php echo $product['key']; ?>]" value="<?php echo $product['quantity']; ?>" size="3" /></td>
          <?php if ($display_price) { ?>
        <td align="right" valign="top" class="cart_page_price"><?php echo $product['price']; ?></td>
          <td align="right" valign="top" class="cart_page_price2"><?php echo $product['total']; ?></td>
        <?php } ?>
        </tr>
        <?php } ?>
      </table>
     <?php if ($display_price) { ?>
     <div style="width: 100%; display: inline-block; border-bottom:1px solid #cecece; margin-bottom:10px;">
        <table style="float: right; display: inline-block;">
          <?php foreach ($totals as $total) { ?>
          <tr>
            <td align="right"><b><?php echo $total['title']; ?></b></td>
            <td align="right" class="cart_page_price2"><?php echo $total['text']; ?></td>
          </tr>
          <?php } ?>
        </table>
        <br />
      </div>
     <?php } ?>
      <div class="buttons">
        <table>
          <tr>
            <td align="left"><a onclick="$('#cart').submit();" class="button"><?php echo $button_update; ?></a></td>
            <td align="center"><a onclick="location = '<?php echo str_replace('&', '&', $continue); ?>'" class="button"><?php echo $button_shopping; ?></a></td>
            <td align="right"><a onclick="location = '<?php echo str_replace('&', '&', $checkout); ?>'" class="button"><?php echo $button_checkout; ?></a></td>
          </tr>
        </table>
      </div>
    </form>
  </div>
  <div class="bottom">
    <div class="left"></div>
    <div class="right"></div>
    <div class="center"></div>
  </div>
</div>
<?php echo $footer; ?>

Bu da catalog/view/theme/shopper_land_clean/template/module/cart.tpl dosyam.
Kod:
<div id="module_cart" class="box">
  <div class="top"><?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" style="width:1px"><span class="cart_remove" id="remove_<?php echo $product['key']; ?>">&nbsp;</span></td>
        <td valign="top" align="right" style="width:1px"><?php echo $product['quantity']; ?>&nbsp;x&nbsp;</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 />
    <?php if ($display_price) { ?>
   <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>
   <?php } ?>
    <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">&nbsp;</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>

Tpl dosyalarinin kodlarini koydum yukariya.
Controller ve model klasörleri icindeki cart isimli dosyalarıda biraz kurcaladim ancak bir sonuç alamadim. Eger onlarda bir degisiklik yapmam gerekiyorsa onlari da ekleyebilirim buraya.

Tahminimce bir kaç kod satirinin yerini degistirmekle hallolacak bir problem gibi ama iste o kodlari bulamadim :-/

Yardimci olabilirseniz sevinirim.
Simdiden tesekkurler.

24c5qba.jpg
 

webhane

OpenCart-TR
Katılım
22 Ara 2010
Mesajlar
70
Tepkime puanı
0
Puanları
0
Yaş
39
Eklentiler Sipariş toplamı bölümünden sıra numarası vererek çözebilirsin.
 

oxygene4u

OpenCart-TR
Katılım
8 Şub 2011
Mesajlar
2
Tepkime puanı
0
Puanları
0
webhane' Alıntı:
Eklentiler Sipariş toplamı bölümünden sıra numarası vererek çözebilirsin.

Kendimden utandım :D

Admin paneline bakmak aklımın ucundan geçmedi.
Çok teşekkürler cevap için. ;)
 
Üst