Skip to content

Commit d439bc0

Browse files
committed
Plugin: BuyCourse: Fix more issues in sale process - refs #2615
1 parent 24a37fc commit d439bc0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

public/plugin/BuyCourses/src/buy_course_plugin.class.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -999,6 +999,7 @@ public function registerSale($itemId, $paymentType)
999999
'tax_amount' => $taxAmount,
10001000
'status' => self::SALE_STATUS_PENDING,
10011001
'payment_type' => (int) $paymentType,
1002+
'invoice' => 0, //default value if no invoice
10021003
];
10031004

10041005
return Database::insert(self::TABLE_SALE, $values);

public/plugin/BuyCourses/view/process_confirm.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@
198198
});
199199
{% endif %}
200200
201-
{% if is_culqi_payment %}
201+
{% if is_culqi_payment|default(false) %}
202202
var price = {{ price }} * 100;
203203
204204
Culqi.codigoComercio = '{{ culqi_params.commerce_code }}';

0 commit comments

Comments
 (0)