Jump to content

kargoya göre ödeme seçenekleri


hakan1980

Recommended Posts

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?

Link to comment
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 [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-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>

 

Link to comment
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}
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...