Support

Home Forums Event Espresso Premium Event name not showing up in promo code message

Event name not showing up in promo code message

Posted: October 11, 2013 at 5:21 pm


infosolwebadmin

October 11, 2013 at 5:21 pm

I have the same issue mentioned here:
https://eventespresso.com/topic/missing-event-name-in-promo-code-message/

Where you put in the promo code and then it says the promotional code has been applied to the following events: and none show up. Also, what is the name of the php page used to generate the ‘has being successfully applied to the following events:’ so I can edit being to been?

I’m on EE 3.1.35.1.P with MER 1.0.4, you can follow the link below and add that event to your cart and see what is happening, the promo code is ‘test’ without the ‘ ‘.

http://events.infosol.com/testing-page/

Thanks


Tony

  • Support Staff

October 14, 2013 at 2:53 am

Hi Yolande,

This is likely due to modified templates within wp-content/uploads/espresso/templates.

Can you try temporarily changing the name of that folder and re-try the promo code. Does the event name then work?

has being successfully applied to the following events

Is translatable and I would advise you ‘translate’ the phrase rather than hard-coding it using https://eventespresso.com/wiki/how-to-change-wording-with-poedit/

The file to edit is a core file and as such we do not recommend editing.


infosolwebadmin

October 17, 2013 at 12:37 pm

Renamed the uploads folder and was still having the same issue with the event name not showing up. Any ideas?


Jonathan Wilson

October 17, 2013 at 12:45 pm

Hi Yolanda,

You should not change the name of the uploads folder, but instead change the name of the templates folder within the wp-content/uploads/espresso/ directory.


infosolwebadmin

October 17, 2013 at 1:10 pm

I misstyped that, I changed the name of the templates folder when I tested it out – not sure why I typed uploads.


Sidney Harrell

October 17, 2013 at 1:50 pm

I tried to reproduce the empty event name but couldn’t. Can you give more details on how you have it set up? Do you have that promo code enabled in all the events in the shopping cart, or just some of them.
If you have a small number of strings to change, you can add this code to your theme’s functions.php file or the EE custom functions file: https://gist.github.com/sethshoultes/5650757
the exact strings are:

has being successfully applied to the following events

and

has being successfully applied to your registration


infosolwebadmin

October 17, 2013 at 2:44 pm

I’ve got two promo codes setup (both are dollar amounts), code 1 is only setup to be allowed on a specific event and code 2 is only setup to be allowed on a (different) specific event. When you enter the promo code for either event, it doesn’t matter if there is one event or multiple events in the cart, the event name won’t show up in the applied to part when you enter a working promo code. The link in my original post is working again if you want to check it out, I don’t know if you had a chance to before the test event on that pages registration closed. The promo code is still test

Thanks for that string link as well!


Sidney Harrell

October 17, 2013 at 5:03 pm

I think I’ve got the problem narrowed down. What is the shortcode that you are using for that table view on testing-page?


infosolwebadmin

October 18, 2013 at 1:00 pm

I’m using [ESPRESSO_TABLETEST category_identifier=”test”] (I duplicated the espresso_table so I can have multiple templates of the table with different columns and called it espresso_tabletest hence the shortcode having TEST added) and I just double checked and it does the same thing using the default [ESPRESSO_TABLE category_identifier=”test”] shortcode. Thanks!


Dean

October 21, 2013 at 2:44 am

Hi,

The Espresso Table doesn’t support MER by default, so I am assuming you have modified it a bit? If so can you provide the code you have used?


infosolwebadmin

October 21, 2013 at 11:36 am

Completely forgot that I added in the add to cart code for the table (months ago) sorry for leaving that out! I believe I got that code from someone on the support staff – all we did was add a new (blank) column header to the template and then used the code below to create the add to cart link underneath:

<pre class=”brush: php; gutter: true; first-line: 1; highlight: []; html-script: false”><td class="td-group">
<?php echo do_shortcode('[ESPRESSO_CART_LINK event_id="'.$event->id.'" anchor="Add to Cart"]');?>
</td>

Here’s the code I am using for the top and bottom half of the table, I removed some columns and then added the add to cart (these are the only parts of the file that got modified):

<pre class=”brush: php; gutter: true; first-line: 1; highlight: []; html-script: false”><table class="espresso-table" width="100%">

<thead class="espresso-table-header-row">
<tr>
<th class="th-group"><?php _e('Course','event_espresso'); ?></th>
<th class="th-group"><?php _e('Date','event_espresso'); ?></th>
<th class="th-group"><?php _e('','event_espresso'); ?></th>
<th class="th-group"><?php _e('','event_espresso'); ?></th>
</tr>
</thead>
<tbody>

<tr class="espresso-table-row">
<td class="td-group">
<?php echo stripslashes_deep($event->event_name) ?>
</td>
<td class="td-group">
<?php echo event_date_display($event->start_date, $format = 'l, M d, Y') ?>
</td>
<td class="td-group">
<?php echo $register_button ?>
</td>
<td class="td-group">
<?php echo do_shortcode('[ESPRESSO_CART_LINK event_id="'.$event->id.'" anchor="Add to Cart"]');?>
</td>
</tr>


Dean

October 22, 2013 at 1:06 am

Hi,

Thanks for the clarification. Currently we are aware of this issue and have a ticket outstanding to deal with it. I am not sure there is an easy fix short of hacking at core files which we don’t recommend.

I’ll add a further note to the ticket to raise awareness, but I cannot say when this will be resolved.

The support post ‘Event name not showing up in promo code message’ 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.

Event Espresso