Jump to content

Sepete ekle çalışmıyor - Çözüldü


volkanarat

Recommended Posts

Sorun gerçekten can sıkıcı.

Ana sayfada ki ürün ön izlemesinden sepete ekle butonuna tıklayınca ajax devreye giriyor ve sepete ekleme işlemi gerçekleşiyor. Ancak ürün detayı için ürün sayfasına girildiğinde sepete ekle butonu tepki vermiyor. F5 yaptığımda ürünü sepete eklemiş olarak görünüyor ama ajax bu sayfada bir türlü işlemiyor.

sepet modülünden ajaxı iptal etmem bir şeyi değiştirmedi, modülü resetlediğimde ise daha saçma bir sorun çıktı ortaya ve ana sayfada 2 adet sepet görünmeye başladı.

O kadar ingilizce ve türkçe  kaynak taradım, php versiyonu değiştirmekten, seo url yapısını değiştirmey ekadar bir çok şeyi denedim ama bir türlü çözüme ulaşamıyorum.

 

Lütfen atladığım ve aslında gözümün önünde olan ama benim göremediğim detayı görmeme yardımcı olun.

Ana sayfadan ürün eklemede sorun yok

www.esillaa-siparis.com

 

Burada ürün eklemesi yapılamıyor

http://esillaa-siparis.com/index.php?id_product=1&id_product_attribute=0&rewrite=30-guenluek-paket&controller=product

 

 

Edited by volkanarat
Sorun Tema üreticisi ile iletişime geçerek çözülmüştür. (see edit history)
Link to comment
Share on other sites

{**
 * 2007-2016 PrestaShop
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/osl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to [email protected] so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
 * versions in the future. If you wish to customize PrestaShop for your
 * needs please refer to http://www.prestashop.com for more information.
 *
 * @author    PrestaShop SA <[email protected]>
 * @copyright 2007-2016 PrestaShop SA
 * @license   http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
 * International Registered Trademark & Property of PrestaShop SA
 *}
<div class="product-add-to-cart">
  {if isset($configuration.is_catalog) && !$configuration.is_catalog}
    {block name='product_quantity'}
      <div class="product-quantity">
			<div class="qty">
			  <input
				type="text"
				name="qty"
				id="quantity_wanted"
				value="{$product.quantity_wanted}"
				class="input-group"
				min="{$product.minimal_quantity}"
			  />
			</div>
        <div class="add">
				<button class="add-to-cart" data-button-action="add-to-cart" type="submit" {if !$product.add_to_cart_url}disabled{/if}>
					<span class="icon icon-handbag"></span>
					<span class="text_cart_p">{l s='Add to cart' d='Shop.Theme.Actions'}</span>
				</button>
        </div>
      </div>
      <div class="clearfix"></div>
    {/block}

	{block name='product_availability'}
      <span id="product-availability">
        {if $product.show_availability && $product.availability_message}
          {if $product.availability == 'available'}
            <i class="material-icons product-available">&#xE5CA;</i>
          {elseif $product.availability == 'last_remaining_items'}
            <i class="material-icons product-last-items">&#xE002;</i>
          {else}
            <i class="material-icons product-unavailable">&#xE14B;</i>
          {/if}
          {$product.availability_message}
        {/if}
      </span>
    {/block}

    {block name='product_minimal_quantity'}
      <p class="product-minimal-quantity">
        {if $product.minimal_quantity > 1}
          {l
          s='The minimum purchase order quantity for the product is %quantity%.'
          d='Shop.Theme.Checkout'
          sprintf=['%quantity%' => $product.minimal_quantity]
          }
        {/if}
      </p>
    {/block}
  {/if}
</div>

 

Temaya ait Product-add-to-cart.tpl dosyam bu şekilde.

Ana sayfada ki butona atanan "ajax-add-to-cart product-btn cart-button btn-effect" classını girdiğimde de buton tepki veriyor fakat sepete ekleme yapmadan sepet sayfasını açıyor.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...