View Issue Details

IDProjectCategoryView StatusLast Update
0007428OXID eShop B2B EditionB2B edition - subpublic2023-03-16 17:41
Status confirmedResolutionopen 
Product Version5.0.0 
Target VersionFixed in Version 
Summary0007428: Vouchers according to comment not allowed, but useable anyway
DescriptionVouchers in B2B Edition are not allowed according to comments in methods OxidEsales\B2BModule\Basket\Model\B2b\Basket::setBasket and OxidEsales\B2BModule\Basket\Service\EditService::setBasket.

     * Sets the basket to the EshopUserBasketModel.
     * NOTE: Vouchers are not allowed in b2b.
     * @param \OxidEsales\Eshop\Application\Model\Basket $basket The basket to set.
    public function setBasket($basket): string

But adding a voucher in basket is possible anyway and you are also able to order with active voucher. Vouchers are only deleted on basket changes due to method OxidEsales\B2BModule\Basket\Model\Basket::removeAllVouchersForB2B called in OxidEsales\B2BModule\Basket\Service\EditService::setBasket.
Steps To Reproduce1. Install OXID eShop
2. Install B2B Modules
3. Mark an User as B2B User
4. Create a Voucher
5. Login with B2B user.
6. Add product to basket.
7. Add voucher in basket.
8.1 Change anything in baske (e.g. item amount). Voucher is removed. You can add voucher again afterwards.
8.2 Complete the order. Voucher is accepted as usual.
TagsNo tags attached.



2023-02-24 17:19

administrator   ~0015061

Last edited: 2023-02-24 17:22

View 3 revisions

Both described issues are reproducable: Voucher is removed after basket changes and order including voucher is possible. I added some more information to your report.

Product Management must decide about behavior in B2B Edition. Whether voucher is not allowed and input should be blocked directly or voucher is allowed. Then comments as well as removing on basket changes must be removed.