AntonLV 5 lat temu
rodzic
commit
f857ee720c

+ 3 - 3
modules/boonex/donations/classes/BxDonationsDb.php

@@ -53,15 +53,15 @@ class BxDonationsDb extends BxDolModuleDb
                 $sWhereClause .= "AND `tt`.`name`=:name";
                 break;
 
-            case 'by_duration_price':
+            case 'by_duration_amount':
                 $aMethod['name'] = 'getRow';
                 $aMethod['params'][1] = array(
                     'period' => $aParams['period'],
                     'period_unit' => $aParams['period_unit'],
-                    'price' => $aParams['price'],
+                    'amount' => $aParams['amount'],
                 );
 
-                $sWhereClause .= "AND `tt`.`period`=:period AND `tt`.`period_unit`=:period_unit AND `tt`.`price`=:price";
+                $sWhereClause .= "AND `tt`.`period`=:period AND `tt`.`period_unit`=:period_unit AND `tt`.`amount`=:amount";
                 break;
             
             case 'by_btype_single':

+ 2 - 2
modules/boonex/donations/classes/BxDonationsGridTypes.php

@@ -48,8 +48,8 @@ class BxDonationsGridTypes extends BxTemplGrid
             if($bPeriod && !$bPeriodUnit) 
                 return echoJson(array('msg' => _t('_bx_donations_form_type_input_err_period_unit')));
 
-            $iPrice = $oForm->getCleanValue('price');
-            $aType = $this->_oModule->_oDb->getTypes(array('type' => 'by_duration_price', 'period' => $iPeriod, 'period_unit' => $sPeriodUnit, 'price' => $iPrice));
+            $iAmount = $oForm->getCleanValue('amount');
+            $aType = $this->_oModule->_oDb->getTypes(array('type' => 'by_duration_amount', 'period' => $iPeriod, 'period_unit' => $sPeriodUnit, 'amount' => $iAmount));
             if(!empty($aType) && is_array($aType))
                 return echoJson(array('msg' => _t('_bx_donations_err_price_duplicate')));
 

+ 3 - 0
modules/boonex/donations/template/css/main.css

@@ -13,6 +13,9 @@
 .bx-dnt-make-billing-types-menu .bx-menu-tab-active .bx-btn {
     background-color: rgba(0, 0, 0, 0.05);
 }
+.bx-media-phone .bx-dnt-make-billing-types-menu .bx-menu-item a {
+    margin-right: 0;
+}
 
 .bx-dnt-make-billing-types {
     position: relative;