Catalogue: show price in catalogue for all kind of payment type activated -refs BT#20825

pull/4786/head
NicoDucou 2 years ago
parent b7ebccbae0
commit ae7c8a2a30
  1. 6
      plugin/buycourses/src/buy_course_plugin.class.php

@ -565,9 +565,13 @@ class BuyCoursesPlugin extends Plugin
$return = []; $return = [];
$paypal = $this->get('paypal_enable') === 'true'; $paypal = $this->get('paypal_enable') === 'true';
$transfer = $this->get('transfer_enable') === 'true'; $transfer = $this->get('transfer_enable') === 'true';
$stripe = $this->get('stripe_enable') === 'true';
$culqi = $this->get('culqi_enable') === 'true';
$cecabank = $this->get('cecabank_enable') === 'true';
$tpv_redsys = $this->get('tpv_redsys_enable') === 'true';
$hideFree = $this->get('hide_free_text') === 'true'; $hideFree = $this->get('hide_free_text') === 'true';
if ($paypal || $transfer) { if ($paypal || $transfer || $stripe || $culqi || $cecabank || $tpv_redsys) {
$item = $this->getItemByProduct($productId, $productType); $item = $this->getItemByProduct($productId, $productType);
$html = '<div class="buycourses-price">'; $html = '<div class="buycourses-price">';
if ($item) { if ($item) {

Loading…
Cancel
Save