Jump to content

Commission when paying by LiqPay system

Version number: 1.0.1
   (0 reviews)
OpenCart:
  • 2.2
  • 2.1
  • 2.0
ocStore:
  • 2.1

1 Screenshot

About This File

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');

 


Fedka's Other Downloads


  • Recently Browsing   0 members

    No registered users viewing this page.

×