addon_coupons_extrafields_3.9.6 Problem

07.05.2024 19:50
#1
kreativ quadrat
User kreativ quadrat
Name: garry
25.11.2010
Posts: 329
Quote
addon_coupons_extrafields_3.9.6 Problem

we have a fixed value e.g. € 15 voucher which is valid for a minimum amount in the shopping cart of € 150. labels by ID are excluded. If the customer now puts a valid product in the shopping cart and supplements it with products marked with the Label ID, the voucher will still be redeemed

 
07.05.2024 19:59
#2
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 26030
Quote
Aw: addon_coupons_extrafields_3.9.6 Problem

Example coupon configuration?
Screenshot?

 
07.05.2024 22:18
#3
kreativ quadrat
User kreativ quadrat
Name: garry
25.11.2010
Posts: 329
Quote
Aw: addon_coupons_extrafields_3.9.6 Problem

screenshot attached
Aw: addon_coupons_extrafields_3.9.6 Problem

 
09.05.2024 14:50
#4
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 26030
Quote
Aw: addon_coupons_extrafields_3.9.6 Problem

Works for my test shop.

url?
example: code coupon?
products for test?
admin access??


Letzte Änderung: 09.05.2024 14:58
 
09.05.2024 15:43
#5
kreativ quadrat
User kreativ quadrat
Name: garry
25.11.2010
Posts: 329
Quote
Aw: addon_coupons_extrafields_3.9.6 Problem

Kistenfreund is a Normal Article
Chardonnay ist flagged with labelid 9 = SALE
when i enter now the voucher MUTTERTAG24
the voucher will be redeemed
The sum of the shopping cart value was over 150 but the chardonnay cannot be added to the shopping cart value because SALE items should be excluded from the voucher
Aw: addon_coupons_extrafields_3.9.6 Problem


Letzte Änderung: 09.05.2024 15:45
 
09.05.2024 16:10
#6
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 26030
Quote
Aw: addon_coupons_extrafields_3.9.6 Problem

Minimum order value = full sum cart (there are no conditions)
Only see sum in cart

 
09.05.2024 18:50
#7
kreativ quadrat
User kreativ quadrat
Name: garry
25.11.2010
Posts: 329
Quote
Aw: addon_coupons_extrafields_3.9.6 Problem

could you change like this? perhaps with checkbox in config?

function saveExtraCouponData(&$coupon, $products, &$cart){
$this->loadAddonLang();
$extracoupon = array();
$extracoupon['products'] = $products;

$real_cart_sum = 0;
foreach ($products as $pr){
$product = JTable::getInstance('product', 'jshop');
$product->load($pr);

$quantity = 0;
foreach($cart->products as $prod){
if ($prod['product_id'] == $pr){
$quantity = $prod['quantity'];
break;
}
}
$real_cart_sum += $product->product_price * $quantity;
}
if ($coupon->coupon_id){
if ($coupon->min_sum_for_use > 0){
$summ = 0;
// foreach($cart->products as $prod){
// $summ += $prod['price'] * $prod['quantity'];
// }
if ($real_cart_sum < $coupon->min_sum_for_use){
JError::raiseWarning('', sprintf(_JSHOP_MIN_SUM_FOR_USE_ERROR, formatprice($coupon->min_sum_for_use), formatprice($summ)));
$coupon = null;
$cart->setRabatt(0, 1, 0);
}
}
$extracoupon['type'] = $coupon->coupon_type;
$extracoupon['value'] = $coupon->coupon_value;
} else {
$extracoupon['type'] = 1;
$extracoupon['value'] = 0;
}
$session = JFactory::getSession();
$session->set("extracouponData", $extracoupon);
}

 
18.05.2024 09:20
#8
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 26030
Quote
Aw: addon_coupons_extrafields_3.9.6 Problem

3.10.1
Added new option:
Minimum order amount calculate: All products / Products for coupon
Minimum number of items in the order calculate: All products / Products for coupon

 


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.