Page 1 of 1
Promotions
Posted: Fri Aug 10, 2012 3:36 pm
by Valdus
I was wondering if I could get some of the tutorial documentation on how the promotion and discounts are handled. I have a custom field(boolean to determine if someone is verified in a specific capacity) that I have added and works fine, but when I try to implement it within the promotion option it won't apply the offer to the people that this is set true for.
Re: Promotions
Posted: Fri Aug 10, 2012 7:53 pm
by phillipuniverse
I'm assuming that this is a new field in your subclass of Customer? Might be that you don't have an active start date and end date specified for the promotion. Have you tried keying it off of other attributes on Customer (like username == "something")? Just trying to narrow it down to what exactly works and what doesn't.
One thought that I had is that it's possible that when a customer is getting created via the CustomerService it's not actually creating and persisting your custom class. You might look to make sure that something like this appears in your applicationContext-entity.xml:
Code: Select all
<bean id="org.broadleafcommerce.profile.core.domain.Customer" class="com.mycompany.profile.core.domain.CustomerImpl" />
Re: Promotions
Posted: Mon Aug 13, 2012 7:27 am
by Valdus
It keys off of other things just not my boolean field that I created, and the correct customer is being created I confirmed this within the Customer tab.
Re: Promotions
Posted: Mon Aug 13, 2012 8:33 am
by phillipuniverse
Could you post the MVEL that is getting generated? You can find this in the BLC_OFFER_RULE table in the MATCH_RULE column.