Hi,
I'm investigating discount system of broadleaf framework. I have a couple of questions here.
1. I've created general discount offer on order. Rule is simple: any order that exceeds 50EUR,
will be given 25% off. This is created/defined using BO.
What I noticed in process of debuging is that with this kind of offer, Order will be affected
in a way that if offer is present, List<OrderAdjustment> will have at least one item, the item
that I defined in BO.
On the other hand:
2. I've created one more offer that should be promoCode offer. I've provided input field for entering promoCode on checkout page (similar to DemoApplication) and added functionality so that entering promoCode will result in triggering method "addPromo" of BroadleafCartController.
What differs here is that not same Objects are affected by this change. Again in debug mode I can see that Order has been changed so that List<OfferCode> will now be populated instead of List<OrderAdjustment>.
Is this a way that these offerring system should work?
If this is the case I can imagine that I will need to rework my custom pricing activity (e.g. named CustomTotalActivity) that is responsible for calculating total price. Since now these entities (from List<OfferCode>) is not part of calculation and therefore my total price is not substracted for amount of money in custom promoCode offer.
Thank You
This forum is in readonly mode and serves as an archive of old information. All posting, registration and commenting abilities have been turned off. To get help, the Broadleaf team reguarly monitors the broadleaf-commerce tag on Stack Overflow so please ask your questions there.