I have seen at least one website that allows the customer to enter a promo code at checkout in which then it updates the carts contents with the new pricing for the performances that the promo code applies to. What series of API calls need to be used to achieve this type functionality? Second, I assuming that this can only be done with offers but would loved to know how/if this also can be done with a mode of sale switch especially when there is a performance in the current cart that is not available in the new mode of sale.
Thanks,
Marty
Anybody? No thoughts?
From: Tessitura Web Forum [mailto:forums-tessitura-web@tessituranetwork.com] On Behalf Of Marty Jones Sent: Monday, December 05, 2011 12:52 PM To: Martin A. Jones Subject: [Tessitura Web Forum] Entering Promo code at checkout
You were sent this email automatically because you subscribed to the Tessitura Web forum. You may reply to this message to post to the Web forum or visit the site to search, read and post to the forums. In the interest of keeping the forum posts from becoming cluttered, we encourage you to delete previous message text from your reply before sending. Thank you!
We're not doing it, and I'm no web programmer, but when I first read your post I guessed it might be done with an editable pricetype/pricemap and using...I'm not sure which method would apply but the sproc is wp_update_price, and then some custom code and possibly executelocalprocedure to reference a local table that ties the promocode to the discount type instead of just an offer/pricetype combination. Maybe?
Hi Marty - we are doing this - however, we use UpdatePriceType to make the actual pricing change once the promo is entered and the appropriate price type is found. At this point, we only use one MOS for single ticket purchases, although we are currently working on leveraging ranking for price discounts and special offers. However, I am planning that the MOS change will occur prior to any items being added to the cart - because (it has been a while since I had to deal with this) - you can't mix items from different MOS' in the cart. So, anything that was reserved in the cart under X MOS would need to be released and re-added with Y MOS if you went that route. (Again, maybe that has changed - i've not had to worry about that issue so I may be out of the loop on that)
Good luck
Thanks Nathan, Could you explain your logic a little that once the promo code is entered, how you determine which performances in the cart need to be updated? Do you loop through all of the performances in the cart, fire off a getperformancedetailswithdiscount for each performance and see if the current performance's pricetype can be updated?
From: Tessitura Web Forum [mailto:forums-tessitura-web@tessituranetwork.com] On Behalf Of Nathan Campbell Sent: Tuesday, December 06, 2011 11:22 AM To: Martin A. Jones Subject: Re: [Tessitura Web Forum] Entering Promo code at checkout
From: Marty Jones <bounce-martyjones7649@tessituranetwork.com> Sent: 12/5/2011 12:48:48 PM
That's exactly how it works :)