Posted: May 11, 2017 at 5:45 pm
|
We have some issue with promotional coupon description that being displayed during checkout. We did duplicate events from past events and changed the description/title. Is it an issue? Thanks |
Hi there, It looks like the output for the promo code line items has been edited as it’s different from the default. I would first check what the ‘Name’ of the promotion code is currently set to. Go to: Event Espresso -> Promotions. Find the code you are using on that event and check the name, what is it currently set to? |
|
|
Hi, thanks for your quick response. It says “Sample Sale Code Take 10” , which is correct But the event info was wrong. It shows past event. |
Can you link me to the event you are testing this on please? Usually, something like this would be caused by caching, are you running any caching plugins? The output for the promotion Line item has been altered, by default it should look like this :- http://take.ms/bc3El Did you have a developer make changes to EE? If so how did they change the above? |
|
|
Here is the event link: https://www.arworkshop.com/playground/events/framed-wood/ We did make some modification, but only to the template file, EE core was not modified at all. Thanks |
|
No we don’t use cache plugin, I removed it about 6 months ago. |
Hi there, All of the line items that get displayed there (prices and discounts) actually share the same code, so I suspect whatever the developer changed whether it be a change to a template or using a filter hook like
|
|
As Josh mentioned it’s not really possible for us to say how the modifications were made, we can make some educated guesses but it depends on how the developer chose to change the output. Check for translations on Any code that’s hooking into Another thing to check is to create a NEW promo code (call it TEST PROMO for example) and test that on the event, what output does that show? Is it the promo name with the same date? |
|
|
We had this in EE functions file – to add the event’s detail date/time.
Is there any way to display the event date/time for the event but not on the discount? thanks |
Sure there is, you check the current line item object type to see if it’s a promotion using something like this:
So in your conditional, you could have:
However, you’ll also need to change that function so that it only returns the modified string if it’s inside the above conditional, otherwise, return Right now if you managed to find a line item that wasn’t assigned to a ticket (there isn’t one currently but we could add them in the future) your function will break the descriptions as it doesn’t return the original description even if the function is not doing anything. |
|
The support post ‘Promotional Coupon wrong description on checkout’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.