|
@@ -131,7 +131,9 @@ class BxPaymentTemplate extends BxBaseModPaymentTemplate
|
|
|
|
|
|
|
|
//--- Get Items ---//
|
|
//--- Get Items ---//
|
|
|
$aItems = array();
|
|
$aItems = array();
|
|
|
- foreach($aVendor['items'] as $aItem)
|
|
|
|
|
|
|
+ foreach($aVendor['items'] as $aItem) {
|
|
|
|
|
+ $fPrice = $this->_oConfig->getPrice(BX_PAYMENT_TYPE_SINGLE, $aItem);
|
|
|
|
|
+
|
|
|
$aItems[] = array(
|
|
$aItems[] = array(
|
|
|
'vendor_id' => $aVendor['vendor_id'],
|
|
'vendor_id' => $aVendor['vendor_id'],
|
|
|
'vendor_currency_code' => $aVendor['vendor_currency_code'],
|
|
'vendor_currency_code' => $aVendor['vendor_currency_code'],
|
|
@@ -141,18 +143,19 @@ class BxPaymentTemplate extends BxBaseModPaymentTemplate
|
|
|
'item_url' => $aItem['url'],
|
|
'item_url' => $aItem['url'],
|
|
|
'item_quantity' => $aItem['quantity'],
|
|
'item_quantity' => $aItem['quantity'],
|
|
|
'bx_if:show_price_paid' => array(
|
|
'bx_if:show_price_paid' => array(
|
|
|
- 'condition' => (int)$aItem['price'] != 0,
|
|
|
|
|
|
|
+ 'condition' => $fPrice != 0,
|
|
|
'content' => array(
|
|
'content' => array(
|
|
|
- 'item_price' => $aItem['quantity'] * $aItem['price'],
|
|
|
|
|
|
|
+ 'item_price' => $aItem['quantity'] * $fPrice,
|
|
|
'vendor_currency_code' => $aVendor['vendor_currency_code'],
|
|
'vendor_currency_code' => $aVendor['vendor_currency_code'],
|
|
|
)
|
|
)
|
|
|
),
|
|
),
|
|
|
'bx_if:show_price_free' => array(
|
|
'bx_if:show_price_free' => array(
|
|
|
- 'condition' => (int)$aItem['price'] == 0,
|
|
|
|
|
|
|
+ 'condition' => $fPrice == 0,
|
|
|
'content' => array()
|
|
'content' => array()
|
|
|
),
|
|
),
|
|
|
'js_object' => $sJsObject
|
|
'js_object' => $sJsObject
|
|
|
);
|
|
);
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
//--- Get Control Panel ---//
|
|
//--- Get Control Panel ---//
|
|
|
$aButtons = array(
|
|
$aButtons = array(
|