Jump to content
Sign in to follow this  
Fedka

Commission when paying by LiqPay system

Recommended Posts

Commission when paying by LiqPay system


This supplement establishes a commission when placing an order. The LiqPay system uses a commission of 2.75% of the order amount.
For installation:
1) Upload files to the server
2) Переходим Extensions->Order Totals
3) Select the LiqPay Commission and install
4) If necessary, assign rights for a user group

If you want the commission to be distributed and for delivery, then in the file catalog/model/total/liqpay_fee.php need:
Add:


if ($this->cart->hasShipping() && isset($this->session->data['shipping_method'])) {
   if ($this->config->get('liqpay_fee_percents') == 1) {
      $delivery_fee = ((float)$this->session->data['shipping_method']['cost'] / 100) * $this->config->get('liqpay_fee_fee');
      $liqpay_fee_fee = $liqpay_fee_fee + $delivery_fee;
   }
}


Before:


$title = ($this->config->get('liqpay_fee_custom_title')) ? $this->config->get('liqpay_fee_custom_title') : $this->language->get('text_title');

 


  • Submitter
  • Submitted
    09/10/2017
  • Category
  • System requirements
  • Site:
  • OldPrice
  • Activation
    no activation required
  • Ioncube Loader
    No
  • OpenCart
    2.2
    2.1
    2.0
  • ocStore
    2.1

 

Share this post


Link to post
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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×