View Issue Details

IDProjectCategoryView StatusLast Update
0004955OXID eShop (all versions)1.02. Price calculations (discounts, coupons, additional costs etc.)public2022-01-31 12:57
Reporterb.hasis Assigned To 
PrioritynormalSeverityfeatureReproducibilityalways
Status assignedResolutionopen 
Product Version4.6.5 revision 49955 
Summary0004955: Coupons are add to basket even if Basket summary are Zero
DescriptionIf there a some Coupons that can be combined with other ones and you use them together in one basket(checkout) even if you dont need it because the basket summery are allready 0 you will not be able to use the "unused" Coupons(Coupon value 0€) in other orders.
All these "unused" Coupons will be expired after order finished.
Steps To Reproduce-Create 2 Coupon with that settings:
Discount = 50
Valid with same Series = Yes
Valid with different Series = Yes
Valid with same Series, different Order = Yes
-Put something less than 50 in your basket
-add both coupon to that baket
-remember the one that have a value of 0€(the second you entered)
-finish order

- Put in your basket
- try to use the "unused" coupon
TagsNo tags attached.
ThemeNot defined
BrowserAll
PHP VersionNot defined
Database VersionNot defined

Activities

b.hasis

2013-02-22 10:43

reporter   ~0008438

My Fix, oxvoucher::_isAvailablePrice($dPrice)
replace
if ( $this->getDiscountValue( $dPrice ) < 0 )
with
if ( $this->getDiscountValue( $dPrice ) <= 0 )

I think this is will dont effect anything else

Linas Kukulskis

2013-02-25 09:48

reporter   ~0008450

in this case add functionality: to show warning message, that no sense use another voucher, because basket total already is 0;

svetlana

2014-03-28 09:58

reporter   ~0009690

waiting for the PO decision.

SvenBrunk

2022-01-31 12:57

administrator   ~0013594

This is a more general, architectural problem on the shop side. The shop in general has nothing that works as value voucher. So there is no real "account" associated with a coupon. It is either used or not, but it can not be carried over to another transaction.
Even if that would be the case though, how should the shop make the decision on WHICH coupon to use first?