Please Log in or Create an account to join the conversation.
I don't understand why you need to do this if you're already pushing the points from AUP to CB. At any rate the promotions are calculated at time of basket so this has to be done extremely early in the basket creation process. I'm guessing you'd have to use onCPayBeforeComputeTotalizersPaymentBasketUpdated as it needs to be before the totalizers calculate. For that trigger var1 is the basket object and var2 is an array of items in the basket.#1 - Before the subscription begins
I need to populate a cb field at the beginning of the checkout process (so that I can populate a cb field with the integer to use for the promotions discount)
NOTE: This needs to fire BEFORE the promotions system would go looking for the integer value of the custom cb field.
Both onCPayAfterPaymentStatusUpdateEvent and onCPayUserStateChange should work fine for this as long as you're checking for completed (status update event) or active (state change) status as CBSubs Promotions will have updated the field by then.#2 - After the subscription is done
I need to check the value of that same cb field (after CB Subs promotions subtracts the amount that it used from the integer value).
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.