Giter Site home page Giter Site logo

leanpay-payment-gateway-cscart-addon's Introduction

LeanPay payment gateway (CS-Cart addon)

http://docs.leanpay.si

The addon require manually set up of cron job, to synchronize installment plans from LeanPay API.

0 */12 * * * curl "http://yourdomain.com/index.php?dispatch=leanpay.fetch" > /dev/null 2>&1

How to integrate into template

  1. Inside your "design/themes/NAME_OF_YOUR_THEME/templates/common/product_data.tpl", add the following code
{capture name="leanpay_payment_`$obj_id`"}
    {if $product.leanpay_installments}
    
        <span class="cm-reload-{$obj_prefix}{$obj_id}" id="leanpay_payment_update_{$obj_prefix}{$obj_id}">
            <ul class="installments" data-price="{$product.price}">
                {foreach from=$product.leanpay_installments item=installment}
                    <li>polog	<strong>{$product.leanpay_downpayment|string_format:"%.2f"}€</strong> + {$installment.months} x <strong>{$installment.installment|string_format:"%.2f"}€</strong></li>
                {/foreach}
            </ul>
        <!--leanpay_payment_update_{$obj_prefix}{$obj_id}--></span>
        
    {/if}
{/capture}

{if $no_capture}
    {assign var="capture_name" value="leanpay_payment_`$obj_id`"}
    {$smarty.capture.$capture_name nofilter}
{/if}
  1. Inside your "design/themes/NAME_OF_YOUR_THEME/templates/blocks/product_templates/default_template.tpl find
{$smarty.capture.$list_discount nofilter}

and add after it the capture to display the installments

{assign var="leanpay_payment" value="leanpay_payment_`$obj_id`"}
{$smarty.capture.$leanpay_payment nofilter}

leanpay-payment-gateway-cscart-addon's People

Contributors

georgikolev7 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.