tr-opencart

     
avatar Şuanki Zaman: 12-19-2024, 02:58 PMHoşgeldin Misafir !
  Şifremi Hatırlat   kayıt ol
opencart temaları

Ürün Sayfasında Hemen Al Buton Sıkıntısı

Konuyu görüntüleyenler: 1 Misafir
 
Değerlendir:
  • 0 Oy - 0 Yüzde
  • 1
  • 2
  • 3
  • 4
  • 5
%
Cevapla  Gönder 
v  v
Yazar  e-ticaretdersleri - Görüntüleme - Okunma  3469 - Yorum  1

e-ticaretdersleriv
Osmanlı Torunu
******
Süper Moderator user avatar
Çevrimdışı

Mesajlar: 3,225
Konular: 520
Katılma Tarihi: Jan 2012
Rep Puanı: 102
Teşekkürler: 1169
1060 Mesajına, 2133 Teşekkür edildi.



Kişisel Bilgileri: v
Konu Tarihi: 07-24-2012 11:47 AM

Herkese selam cartless adlı xml dosyasına göre product.tpl dosyamı düzenedim hemen a butonunu ekledim sorunsuz çalışıyor. Ama bendeki combo buttonun sepete eklesiyle çakışıyor sepete ekleyp doğru kayasa gidiyor kodları edtlerken nerede hata yaptım yardımcı olabilirmisiniz.


Bendeki product page sayfam

PHP Kod:
<?php echo $header?><?php echo $column_left?><?php echo $column_right?>
<div id="content"><div class="box">
  <div class="box-heading"><h><?php echo $heading_title?></h></div>
  <div class="box-content"><?php echo $content_top?>
   <div class="green">   <div id="slatenav"><div class="breadcrumb"> 
    <?php foreach ($breadcrumbs as $breadcrumb) { ?>
    
 

    <ul>
<li><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a></li>
    <?php ?></ul></div> 
  </div>  </div>
  <h1><?php echo $heading_title?></h1>
  <div class="product-info">
    <?php if ($thumb || $images) { ?>
   <div style="position:relative;"class="left">
     
        <?php if (!$special) { ?>
        <?php } else { ?>
        <ul><li style="position:absolute;top:13px;left:0px;"><img src="catalog/view/theme/adefault/image/special.png"></li></ul>
        <?php ?>
         
      <?php if ($thumb) { ?>
      <div class="image"><a href="<?php echo $popup?>" title="<?php echo $heading_title?>"  rel="prettyPhoto[pp_gal]"><img src="<?php echo $thumb?>" title="<?php echo $heading_title?>" alt="<?php echo $heading_title?>" id="image" /></a></div>
      <?php ?>
      <div class="image-additional" align="center"><?php include ('catalog/view/javascript/jquery/jcarousel/jcarousel.oc.product.inc'); ?>
    </div></div>
    <?php ?>
    <div class="right">
      <div class="description">
        <?php if ($manufacturer) { ?>
        <span><?php echo $text_manufacturer?></span> <a href="<?php echo $manufacturers?>"><?php echo $manufacturer?> <img style="absolute;float:right;margin-left:270px; right;margin-top: -36px;" src="<?echo$man_img;?>" title="<?echo$manufacturer;?>" /></a><br />
        <?php ?>
        <span><?php echo $text_model?></span> <?php echo $model?><br />
        <?php if ($reward) { ?>
        <span><?php echo $text_reward?></span> <?php echo $reward?><br />
        <?php ?>
        <span><?php echo $text_stock?></span> <?php echo $stock?></div>
      <?php if ($price) { ?>
      <div class="price"><?php echo $text_price?>
        <?php if (!$special) { ?>
        <?php echo $price?>
        <?php } else { ?>
        <span class="price-old"><?php echo $price?></span> <span class="price-new"><?php echo $special?></span>
        <?php ?>
        <br />
        <?php if ($tax) { ?>
        <span class="price-tax"><?php echo $text_tax?> <?php echo $tax?></span><br />
        <?php ?>
        <?php if ($points) { ?>
        <span class="reward"><small><?php echo $text_points?> <?php echo $points?></small></span><br />
        <?php ?>
        <?php if ($discounts) { ?>
        <br />
        <div class="discount">
          <?php foreach ($discounts as $discount) { ?>
          <?php echo sprintf($text_discount$discount['quantity'], $discount['price']); ?><br />
          <?php ?>
        </div>
        <?php ?>
      </div>
      <?php ?>
      <?php if ($options) { ?>
      <div class="options">
        <h2><?php echo $text_option?></h2>
        <br />
        <?php foreach ($options as $option) { ?>
        <?php if ($option['type'] == 'select') { ?>
        <div id="option-<?php echo $option['product_option_id']; ?>" class="option">
          <?php if ($option['required']) { ?>
          <span class="required">*</span>
          <?php ?>
          <b><?php echo $option['name']; ?>:</b><br />
          <select name="option[<?php echo $option['product_option_id']; ?>]">
            <option value=""><?php echo $text_select?></option>
            <?php foreach ($option['option_value'] as $option_value) { ?>
            <option value="<?php echo $option_value['product_option_value_id']; ?>"><?php echo $option_value['name']; ?>
            <?php if ($option_value['price']) { ?>
            (<?php echo $option_value['price_prefix']; ?><?php echo $option_value['price']; ?>)
            <?php ?>
            </option>
            <?php ?>
          </select>
        </div>
        <br />
        <?php ?>
        <?php if ($option['type'] == 'radio') { ?>
        <div id="option-<?php echo $option['product_option_id']; ?>" class="option">
          <?php if ($option['required']) { ?>
          <span class="required">*</span>
          <?php ?>
          <b><?php echo $option['name']; ?>:</b><br />
          <?php foreach ($option['option_value'] as $option_value) { ?>
          <input type="radio" name="option[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option_value['product_option_value_id']; ?>" id="option-value-<?php echo $option_value['product_option_value_id']; ?>" />
          <label for="option-value-<?php echo $option_value['product_option_value_id']; ?>"><?php echo $option_value['name']; ?>
            <?php if ($option_value['price']) { ?>
            (<?php echo $option_value['price_prefix']; ?><?php echo $option_value['price']; ?>)
            <?php ?>
          </label>
          <br />
          <?php ?>
        </div>
        <br />
        <?php ?>
        <?php if ($option['type'] == 'checkbox') { ?>
        <div id="option-<?php echo $option['product_option_id']; ?>" class="option">
          <?php if ($option['required']) { ?>
          <span class="required">*</span>
          <?php ?>
          <b><?php echo $option['name']; ?>:</b><br />
          <?php foreach ($option['option_value'] as $option_value) { ?>
          <input type="checkbox" name="option[<?php echo $option['product_option_id']; ?>][]" value="<?php echo $option_value['product_option_value_id']; ?>" id="option-value-<?php echo $option_value['product_option_value_id']; ?>" />
          <label for="option-value-<?php echo $option_value['product_option_value_id']; ?>"><?php echo $option_value['name']; ?>
            <?php if ($option_value['price']) { ?>
            (<?php echo $option_value['price_prefix']; ?><?php echo $option_value['price']; ?>)
            <?php ?>
          </label>
          <br />
          <?php ?>
        </div>
        <br />
        <?php ?>
        <?php if ($option['type'] == 'image') { ?>
        <div id="option-<?php echo $option['product_option_id']; ?>" class="option">
          <?php if ($option['required']) { ?>
          <span class="required">*</span>
          <?php ?>
          <b><?php echo $option['name']; ?>:</b><br />
            <table class="option-image">
              <?php foreach ($option['option_value'] as $option_value) { ?>
              <tr>
                <td style="width: 1px;"><input type="radio" name="option[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option_value['product_option_value_id']; ?>" id="option-value-<?php echo $option_value['product_option_value_id']; ?>" /></td>
                <td><label for="option-value-<?php echo $option_value['product_option_value_id']; ?>"><img src="<?php echo $option_value['image']; ?>" alt="<?php echo $option_value['name'] . ($option_value['price'] ? ' ' $option_value['price_prefix'] . $option_value['price'] : ''); ?>" /></label></td>
                <td><label for="option-value-<?php echo $option_value['product_option_value_id']; ?>"><?php echo $option_value['name']; ?>
                    <?php if ($option_value['price']) { ?>
                    (<?php echo $option_value['price_prefix']; ?><?php echo $option_value['price']; ?>)
                    <?php ?>
                  </label></td>
              </tr>
              <?php ?>
            </table>
        </div>
        <br />
        <?php ?>
        <?php if ($option['type'] == 'text') { ?>
        <div id="option-<?php echo $option['product_option_id']; ?>" class="option">
          <?php if ($option['required']) { ?>
          <span class="required">*</span>
          <?php ?>
          <b><?php echo $option['name']; ?>:</b><br />
          <input type="text" name="option[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option['option_value']; ?>" />
        </div>
        <br />
        <?php ?>
        <?php if ($option['type'] == 'textarea') { ?>
        <div id="option-<?php echo $option['product_option_id']; ?>" class="option">
          <?php if ($option['required']) { ?>
          <span class="required">*</span>
          <?php ?>
          <b><?php echo $option['name']; ?>:</b><br />
          <textarea name="option[<?php echo $option['product_option_id']; ?>]" cols="40" rows="5"><?php echo $option['option_value']; ?></textarea>
        </div>
        <br />
        <?php ?>
        <?php if ($option['type'] == 'file') { ?>
        <div id="option-<?php echo $option['product_option_id']; ?>" class="option">
          <?php if ($option['required']) { ?>
          <span class="required">*</span>
          <?php ?>
          <b><?php echo $option['name']; ?>:</b><br />
          <a id="button-option-<?php echo $option['product_option_id']; ?>" class="button"><?php echo $button_upload?></a>
          <input type="hidden" name="option[<?php echo $option['product_option_id']; ?>]" value="" />
        </div>
        <br />
        <?php ?>
        <?php if ($option['type'] == 'date') { ?>
        <div id="option-<?php echo $option['product_option_id']; ?>" class="option">
          <?php if ($option['required']) { ?>
          <span class="required">*</span>
          <?php ?>
          <b><?php echo $option['name']; ?>:</b><br />
          <input type="text" name="option[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option['option_value']; ?>" class="date" />
        </div>
        <br />
        <?php ?>
        <?php if ($option['type'] == 'datetime') { ?>
        <div id="option-<?php echo $option['product_option_id']; ?>" class="option">
          <?php if ($option['required']) { ?>
          <span class="required">*</span>
          <?php ?>
          <b><?php echo $option['name']; ?>:</b><br />
          <input type="text" name="option[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option['option_value']; ?>" class="datetime" />
        </div>
        <br />
        <?php ?>
        <?php if ($option['type'] == 'time') { ?>
        <div id="option-<?php echo $option['product_option_id']; ?>" class="option">
          <?php if ($option['required']) { ?>
          <span class="required">*</span>
          <?php ?>
          <b><?php echo $option['name']; ?>:</b><br />
          <input type="text" name="option[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option['option_value']; ?>" class="time" />
        </div>
        <br />
        <?php ?>
        <?php ?>
      </div>
      <?php ?>
      <div class="cart">
        <div><?php echo $text_qty?>
          <input type="text" name="quantity" size="2" value="<?php echo $minimum?>" />
          <input type="hidden" name="product_id" size="2" value="<?php echo $product_id?>" />
          &nbsp;<input type="button" value="Hemen Al" id="button-buy" class="button" />
          </div>
        <div><span>&nbsp;&nbsp;&nbsp;<?php echo $text_or?>&nbsp;&nbsp;&nbsp;</span></div>
       <div class="cart combo">
                                <a onclick="addToCompare('<?php echo $product_id?>');" title="<?php echo $button_compare?>"><span class="icon icon-compare">&nbsp;</span></a><a onclick="addToCart('<?php echo $product_id?>');" title="<?php echo $button_cart?>"><span class="icon icon-basket">&nbsp;</span></a><a onclick="addToWishList('<?php echo $product_id?>');" title="<?php echo $button_wishlist?>"><span class="icon icon-wish">&nbsp;</span></a>
                            </div>



        <?php if ($minimum 1) { ?>
        <div class="minimum"><?php echo $text_minimum?></div>
        <?php ?>
      </div>
      <?php if ($review_status) { ?>
      <div class="review">
        <div><img src="catalog/view/theme/default/image/stars-<?php echo $rating?>.png" alt="<?php echo $reviews?>" />&nbsp;&nbsp;<a onclick="$('a[href=\'#tab-review\']').trigger('click');"><?php echo $reviews?></a>&nbsp;&nbsp;|&nbsp;&nbsp;<a onclick="$('a[href=\'#tab-review\']').trigger('click');"><?php echo $text_write?></a></div>
        <div class="share"><!-- AddThis Button BEGIN -->
          <div class="addthis_default_style"><a class="addthis_button_compact"><?php echo $text_share?></a> <a class="addthis_button_email"></a><a class="addthis_button_print"></a> <a class="addthis_button_facebook"></a> <a class="addthis_button_twitter"></a></div>
          <script type="text/javascript" src="//s7.addthis.com/js/250/addthis_widget.js"></script> 
          <!-- AddThis Button END --> 
        </div>
      </div>
      <?php ?>
    </div>
  </div>
  <div id="tabs" class="htabs"><a href="#tab-description"><?php echo $tab_description?></a>
    <?php if ($attribute_groups) { ?>
    <a href="#tab-attribute"><?php echo $tab_attribute?></a>
    <?php ?>
    <?php if ($review_status) { ?>
    <a href="#tab-review"><?php echo $tab_review?></a>
    <?php ?>
    <?php if ($products) { ?>
    <a href="#tab-related"><?php echo $tab_related?> (<?php echo count($products); ?>)</a>
    <?php ?>
  </div>
  <div id="tab-description" class="tab-content"><?php echo $description?></div>
  <?php if ($attribute_groups) { ?>
  <div id="tab-attribute" class="tab-content">
    <table class="attribute">
      <?php foreach ($attribute_groups as $attribute_group) { ?>
      <thead>
        <tr>
          <td colspan="2"><?php echo $attribute_group['name']; ?></td>
        </tr>
      </thead>
      <tbody>
        <?php foreach ($attribute_group['attribute'] as $attribute) { ?>
        <tr>
          <td><?php echo $attribute['name']; ?></td>
          <td><?php echo $attribute['text']; ?></td>
        </tr>
        <?php ?>
      </tbody>
      <?php ?>
    </table>
  </div>
  <?php ?>
  <?php if ($review_status) { ?>
  <div id="tab-review" class="tab-content">
    <div id="review"></div>
    <h2 id="review-title"><?php echo $text_write?></h2>
    <b><?php echo $entry_name?></b><br />
    <input type="text" name="name" value="" />
    <br />
    <br />
    <b><?php echo $entry_review?></b>
    <textarea name="text" cols="40" rows="8" style="width: 98%;"></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>&nbsp;
    <input type="radio" name="rating" value="1" />
    &nbsp;
    <input type="radio" name="rating" value="2" />
    &nbsp;
    <input type="radio" name="rating" value="3" />
    &nbsp;
    <input type="radio" name="rating" value="4" />
    &nbsp;
    <input type="radio" name="rating" value="5" />
    &nbsp; <span><?php echo $entry_good?></span><br />
    <br />
    <b><?php echo $entry_captcha?></b><br />
    <input type="text" name="captcha" value="" />
    <br />
    <img src="index.php?route=product/product/captcha" alt="" id="captcha" /><br />
    <br />
    <div class="buttons">
      <div class="right"><a id="button-review" class="button"><?php echo $button_continue?></a></div>
    </div>
  </div>
  <?php ?>
  <?php if ($products) { ?>
  <div id="tab-related" class="tab-content">
    <div class="box-product">
      <?php foreach ($products as $product) { ?>
      <div>
        <?php if ($product['thumb']) { ?>
        <div class="image"><a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" /></a></div>
        <?php ?>
        <div class="name"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></div>
        <?php if ($product['price']) { ?>
        <div class="price">
          <?php if (!$product['special']) { ?>
          <?php echo $product['price']; ?>
          <?php } else { ?>
          <span class="price-old"><?php echo $product['price']; ?></span> <span class="price-new"><?php echo $product['special']; ?></span>
          <?php ?>
        </div>
        <?php ?>
        <?php if ($product['rating']) { ?>
        <div class="rating"><img src="catalog/view/theme/default/image/stars-<?php echo $product['rating']; ?>.png" alt="<?php echo $product['reviews']; ?>" /></div>
        <?php ?>
        <a onclick="addToCart('<?php echo $product['product_id']; ?>');" class="button"><?php echo $button_cart?></a></div>
      <?php ?>
    </div>
  </div>
  <?php ?>
  <?php if ($tags) { ?>
  <div class="tags"><b><?php echo $text_tags?></b>
    <?php foreach ($tags as $tag) { ?>
    <a href="<?php echo $tag['href']; ?>"><?php echo $tag['tag']; ?></a>,
    <?php ?>
  </div>
  <?php ?>
  <?php echo $content_bottom?></div></div></div>
<script type="text/javascript"><!--
$('.prettyPhoto[pp_gal]').prettyPhoto[pp_gal]({
    overlayClose: true,
    opacity: 0.5
});
//--></script> 
<script type="text/javascript"><!--

$('#button-cart').bind('click', function() {
    $.ajax({
        url: 'index.php?route=checkout/cart/add',
        type: 'post',
        data: $('.product-info input[type=\'text\'], .product-info input[type=\'hidden\'], .product-info input[type=\'radio\']:checked, .product-info input[type=\'checkbox\']:checked, .product-info select, .product-info textarea'),
        dataType: 'json',
        success: function(json) {
            $('.success, .warning, .attention, information, .error').remove();
            
            if (json['error']) {
                if (json['error']['option']) {
                    for (i in json['error']['option']) {
                        $('#option-' + i).after('<span class="error">' + json['error']['option'][i] + '</span>');
                    }
                }
            } 
            
            if (json['success']) {
                $('#notification').html('<div class="success" style="display: none;">' + json['success'] + '<img src="catalog/view/theme/default/image/close.png" alt="" class="close" /></div>');
                    
                $('.success').fadeIn('slow');
                    
                $('#cart-total').html(json['total']);
                
                $('html, body').animate({ scrollTop: 0 }, 'slow'); 
            }    
        }
    });
});
//--></script>
<?php if ($options) { ?>
<script type="text/javascript" src="catalog/view/javascript/jquery/ajaxupload.js"></script>
<?php foreach ($options as $option) { ?>
<?php 
if ($option['type'] == 'file') { ?>
<script type="text/javascript"><!--
new AjaxUpload('#button-option-<?php echo $option['product_option_id']; ?>', {
    action: 'index.php?route=product/product/upload',
    name: 'file',
    autoSubmit: true,
    responseType: 'json',
    onSubmit: function(file, extension) {
        $('#button-option-<?php echo $option['product_option_id']; ?>').after('<img src="catalog/view/theme/default/image/loading.gif" class="loading" style="padding-left: 5px;" />');
    },
    onComplete: function(file, json) {
        $('.error').remove();
        
        if (json.success) {
            alert(json.success);
            
            $('input[name=\'option[<?php echo $option['product_option_id']; ?>]\']').attr('value', json.file);
        }
        
        if (json.error) {
            $('#option-<?php echo $option['product_option_id']; ?>').after('<span class="error">' + json.error + '</span>');
        }
        
        $('.loading').remove();    
    }
});
//--></script>
<?php ?>
<?php 
?>
<?php 
?>
<script type="text/javascript"><!--
$('#review .pagination a').live('click', function() {
    $('#review').slideUp('slow');
        
    $('#review').load(this.href);
    
    $('#review').slideDown('slow');
    
    return false;
});            

$('#review').load('index.php?route=product/product/review&product_id=<?php echo $product_id?>');

$('#button-review').bind('click', function() {
    $.ajax({
        url: 'index.php?route=product/product/write&product_id=<?php echo $product_id?>',
        type: 'post',
        dataType: 'json',
        data: 'name=' + encodeURIComponent($('input[name=\'name\']').val()) + '&text=' + encodeURIComponent($('textarea[name=\'text\']').val()) + '&rating=' + encodeURIComponent($('input[name=\'rating\']:checked').val() ? $('input[name=\'rating\']:checked').val() : '') + '&captcha=' + encodeURIComponent($('input[name=\'captcha\']').val()),
        beforeSend: function() {
            $('.success, .warning').remove();
            $('#button-review').attr('disabled', true);
            $('#review-title').after('<div class="attention"><img src="catalog/view/theme/default/image/loading.gif" alt="" /> <?php echo $text_wait?></div>');
        },
        complete: function() {
            $('#button-review').attr('disabled', false);
            $('.attention').remove();
        },
        success: function(data) {
            if (data.error) {
                $('#review-title').after('<div class="warning">' + data.error + '</div>');
            }
            
            if (data.success) {
                $('#review-title').after('<div class="success">' + data.success + '</div>');
                                
                $('input[name=\'name\']').val('');
                $('textarea[name=\'text\']').val('');
                $('input[name=\'rating\']:checked').attr('checked', '');
                $('input[name=\'captcha\']').val('');
            }
        }
    });
});
//--></script> 
<script type="text/javascript"><!--
$('#tabs a').tabs();
//--></script> 
<script type="text/javascript" src="catalog/view/javascript/jquery/ui/jquery-ui-timepicker-addon.js"></script> 
<script type="text/javascript"><!--
if ($.browser.msie && $.browser.version == 6) {
    $('.date, .datetime, .time').bgIframe();
}

$('.date').datepicker({dateFormat: 'yy-mm-dd'});
$('.datetime').datetimepicker({
    dateFormat: 'yy-mm-dd',
    timeFormat: 'h:m'
});
$('.time').timepicker({timeFormat: 'h:m'});
//--></script> 
<script type="text/javascript" charset="utf-8">
  $(document).ready(function(){
    $("a[rel^='prettyPhoto']").prettyPhoto({animation_speed: 'fast', /* fast/slow/normal */
            slideshow: 5000, /* false OR interval time in ms */
            autoplay_slideshow: false, /* true/false */
            opacity: 0.80, /* Value between 0 and 1 */
            show_title: true, /* true/false */
            allow_resize: true, /* Resize the photos bigger than viewport. true/false */
            default_width: 500,
            default_height: 344,
            counter_separator_label: "/", /* The separator for the gallery counter 1 "of" 2 */
            theme: 'dark_rounded', /* light_rounded / dark_rounded / light_square / dark_square / facebook */
            horizontal_padding: 20, /* The padding on each side of the picture */
            hideflash: false, /* Hides all the flash object on a page, set to TRUE if flash appears over prettyPhoto */
            wmode: 'opaque', /* Set the flash wmode attribute */
            autoplay: true, /* Automatically start videos: True/False */
            modal: false, /* If set to true, only the close button will close the window */
            deeplinking: true, /* Allow prettyPhoto to update the url to enable deeplinking. */
            overlay_gallery: true, /* If set to true, a gallery will overlay the fullscreen image on mouse over */
            keyboard_shortcuts: true, /* Set to false if you open forms inside prettyPhoto */
            changepicturecallback: function(){}, /* Called everytime an item is shown/changed */
            callback: function(){}, /* Called when prettyPhoto is closed */
            ie6_fallback: true
      });
});
</script>

<?php echo $footer?>

Düzelme yaptığım cartless.xml içeriği

PHP Kod:
<!-- ***************************************************************************​******** -->
<!-- *** 
Part of FileShopdigital downloads PHP store solution  http://FileShop.Biz *** -->
<!-- ***************************************************************************​******** -->

<
modification>
    <
id><![CDATA[Cartless]]></id>
    <
version><![CDATA[1.0]]></version>
    <
vqmver><![CDATA[]]></vqmver>
    <
author><![CDATA[MaxD http://FileShop.Biz]]></author>
    
<file name="catalog/view/theme/*/template/product/product.tpl">
                <
operation>
            <
search position="replace" error="skip"><![CDATA[<span><?php echo $text_stock?></span> <?php echo $stock?></div>]]></search>
            <add><![CDATA[</div>]]></add>
        </operation>
        <operation>
            <search position="replace" offset="4"><![CDATA[<div><?php echo $text_qty?>]]></search>
            <add><![CDATA[<div>
          <input type="hidden" name="quantity" size="2" value="<?php echo $minimum?>" />
          <input type="hidden" name="product_id" size="2" value="<?php echo $product_id?>" />
          <input type="button" value="<?php echo $button_cart?>" id="button-buy" class="button" />]]></add>
        </operation>
        <operation>
            <search position="before"><![CDATA[$('#button-cart').bind('click', function() {]]></search>
            <add><![CDATA[$('#button-buy').bind('click', function() {
    location='index.php?route=checkout/cart/add&buy=1'+$('.product-info input[type=\'text\'], .product-info input[type=\'hidden\'], .product-info input[type=\'radio\']:checked, .product-info input[type=\'checkbox\']:checked, .product-info select, .product-info textarea').serialize();
});]]></add>
        </operation>
    </file>
    <file name="catalog/language/english/english.php">
        <operation>
            <search position="replace"><![CDATA['Add to Cart']]></search>
            <add><![CDATA['Buy']]></add>
        </operation>
    </file>
    <file name="catalog/controller/checkout/cart.php">
        <operation>
            <search position="after"><![CDATA[$json = array();]]></search>
            <add><![CDATA[if (isset($this->request->get['product_id'])) $this->request->post = $this->request->get;]]></add>
        </operation>
        <operation>
            <search position="before"><![CDATA[if (!$json) {]]></search>
            <add><![CDATA[if (true) {
   $this->cart->clear();
   $this->cart->add($this->request->post['product_id'], $quantity, $option);
   if (isset($this->request->get['product_id'])) $this->redirect($this->url->link('checkout/checkout'));
   else $json['redirect'] = $this->url->link('checkout/checkout');
} else]]></add>
        </operation>
    </file>
    <file name="catalog/view/javascript/common.js">
        <operation>
            <search position="replace"><![CDATA[data: 'product_id=']]></search>
            <add><![CDATA[data: 'buy=1&product_id=']]></add>
        </operation>
    </file>
<file name="catalog/view/theme/*/template/common/header.tpl">
        <operation>
            <search position="replace" error="log"><![CDATA[<?php echo $cart?>]]></search>
            <add><![CDATA[]]></add>
        </operation>
        <operation>
            <search position="replace" error="log"><![CDATA[<a href="<?php echo $shopping_cart?>"><?php echo $text_shopping_cart?></a>]]></search>
            <add><![CDATA[]]></add>
        </operation>
        <operation>
            <search position="replace" error="log"><![CDATA[<a href="<?php echo $checkout?>"><?php echo $text_checkout?></a>]]></search>
            <add><![CDATA[]]></add>
        </operation>

    </file>
</modification> 

tekrar baktımda hangi sayfada lursanız olun sepete ele deyin direk kasaya gdiyor catalog/controller/product/cart.tpl deki değişikleri geri alınca düzeldi burdaki hangi kodlarla oynamam gerekli çözemedim kasaya gitmesi yeri sepete eklemesi için

<file name="catalog/controller/checkout/cart.php">
<operation>
<search position="after"><![CDATA[$json = array();]]></search>
<add><![CDATA[if (isset($this->request->get['product_id'])) $this->request->post = $this->request->get;]]></add>
</operation>
<operation>
<search position="before"><![CDATA[if (!$json) {]]></search>
<add><![CDATA[if (true) {
$this->cart->clear();
$this->cart->add($this->request->post['product_id'], $quantity, $option);
if (isset($this->request->get['product_id'])) $this->redirect($this->url->link('checkout/checkout'));
else $json['redirect'] = $this->url->link('checkout/checkout');
} else]]></add>
</operation>
</file>
e-ticaretdersleri
Alıntı Yaparak Cevapla
Paylaş!
 Teşekkür Edenler: fe_odaliz
sogenserkanv
Üye
***
Üye user avatar
Çevrimdışı

Mesajlar: 88
Konular: 16
Katılma Tarihi: Dec 2011
Rep Puanı: 0
Teşekkürler: 47
6 Mesajına, 9 Teşekkür edildi.



Kişisel Bilgileri: v
Konu Tarihi: 08-11-2012 09:16 PM
Bu ürün detayındaki heman Al botonu banada lazım Sorunu giderdiyseni paylaşmanız mümkünmü acaba ?
Alıntı Yaparak Cevapla
Paylaş!

« Önceki | Sonraki »
Cevapla  Gönder 

Ürün Sayfasında Hemen Al Buton Sıkıntısı Konusunun Linki Direk Link
Ürün Sayfasında Hemen Al Buton Sıkıntısı Konusunun HTML Kodu HTML Link
Ürün Sayfasında Hemen Al Buton Sıkıntısı Konusu BBCode Linki BBCode Link
Ürün Sayfasında Hemen Al Buton Sıkıntısı Konusunu Paylaş Sosyal Paylaş

Benzeyen Konular
Konu: Yazar Cevaplar: Gösterim: Son Mesaj
  Diğer Renkler, Altına "Sepete Ekle" Buton Ekleme dReamtheateR 0 598 03-13-2022 08:30 PM
Son Mesaj: dReamtheateR
  Ürün bulunamadı! sayfasına ürün ekleme bialemsin 0 530 02-13-2022 07:20 PM
Son Mesaj: bialemsin
  Fiyatların sadece ürün sayfasında görünmesini nasıl yapabiliriz? opencartasil 0 1,040 12-11-2021 01:29 AM
Son Mesaj: opencartasil
  Ürün detayı sayfasına özel buton ekleme damb3th 36 16,430 10-09-2021 08:22 PM
Son Mesaj: mehmetvearzu
  [Mod] Yeni mağaza ve ürün entegrasyonu beyondOpencart 0 307 08-23-2021 03:08 PM
Son Mesaj: beyondOpencart
  Opencart Xml Entegrasyon, Xml Ürün Yükleme Ve Xml Çıktı Alma Kazekage 55 23,416 06-05-2021 11:07 AM
Son Mesaj: o.turkcan
  3.0.2.0 ürün ekleme hatası grcdadas 4 4,262 04-23-2021 03:38 PM
Son Mesaj: By-Emrem
  Opencart ürün fiyat teklifi olan ürünlerde buton kaldırma alaweb 0 1,082 11-10-2020 04:22 PM
Son Mesaj: alaweb
  üye olmayan sepete ürün ekleyemesin. sistemtek 2 4,056 09-24-2020 09:04 PM
Son Mesaj: elif
  ürün silinmiyor,kategori kaldırılmıyor. mehmet0078 3 4,903 08-28-2020 01:30 PM
Son Mesaj: ademkilinc.fc

Ürün Sayfasında Hemen Al Buton Sıkıntısı indir, Ürün Sayfasında Hemen Al Buton Sıkıntısı Videosu, Ürün Sayfasında Hemen Al Buton Sıkıntısı online izle, Ürün Sayfasında Hemen Al Buton Sıkıntısı Bedava indir, Ürün Sayfasında Hemen Al Buton Sıkıntısı Yükle, Ürün Sayfasında Hemen Al Buton Sıkıntısı Hakkında, Ürün Sayfasında Hemen Al Buton Sıkıntısı nedir, Ürün Sayfasında Hemen Al Buton Sıkıntısı Free indir, Ürün Sayfasında Hemen Al Buton Sıkıntısı oyunu, Ürün Sayfasında Hemen Al Buton Sıkıntısı download


Forum Atla: