Jump to content
hakan1980

kargoya göre ödeme seçenekleri

Recommended Posts

merhaba benim sorunum secilen kargoya göre ödeme modüllerinin görünmesi mesela kargo1 sadece kapida ödeme modulunun görünmesi  kargo2 paypal kredi karti modüllerinin görünmesi bunu ypma imkanimiz varmi veya buna uygun modul

Share this post


Link to post
Share on other sites

tema dosyası içinde

 

ödeme modülünüzün tpl dosyasını açın ve

{if $smarty.post.delivery_option[5]|rtrim:',' == 3}
/// buraya sizin ödeme modülünün kodunu yazın
{/if}

burada yer alan 3  sizin kargonuzun id numarası

 

misalen aras kargo id si 5 yurtiçi kargo ise 4 dür

 

banka havalesinin en başına bu kodu yerlerştirin bu banka havalesi yurtiçi kargo ile olacak ise ona == 4 vereceksiniz

 

bilmem anlatabildim mi?

Share this post


Link to post
Share on other sites

 

/themes/default-bootstrap/modules/cheque/views/templates/hook/payment.tpl   dosyasinda en basa ekledim fakat faydasi olmadi payment.tpl dosyasindaki kodlari buraya kopyaladim acaba benmi hata yapiyorum

 

{*

* 2007-2015 PrestaShop

*

* NOTICE OF LICENSE

*

* This source file is subject to the Academic Free License (AFL 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/afl-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 license@prestashop.com 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 <contact@prestashop.com>

*  @copyright  2007-2015 PrestaShop SA

*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)

*  International Registered Trademark & Property of PrestaShop SA

*}

{if $smarty.post.delivery_option[5]|rtrim:',' == 1}

///

{/if}

<div class="row">

    <div class="col-xs-12">

        <p class="payment_module">

            <a class="cheque" href="{$link->getModuleLink('cheque', 'payment', [], true)|escape:'html':'UTF-8'}" title="{l s='Pay by check.' mod='cheque'}">

                {l s='Pay by check' mod='cheque'} <span>{l s='(order processing will be longer)' mod='cheque'}</span>

            </a>

        </p>

    </div>

</div>

 

Share this post


Link to post
Share on other sites

kod şu

{if $smarty.post.delivery_option[5]|rtrim:',' == 1}
<div class="row">
    <div class="col-xs-12">
        <p class="payment_module">
            <a class="cheque" href="{$link->getModuleLink('cheque', 'payment', [], true)|escape:'html':'UTF-8'}" title="{l s='Pay by check.' mod='cheque'}">
                {l s='Pay by check' mod='cheque'} <span>{l s='(order processing will be longer)' mod='cheque'}</span>
            </a>
        </p>
    </div>
</div>
{/if}

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More