Support

Home Forums Event Espresso Premium Promotional Code input not showing in Cart

Promotional Code input not showing in Cart

Posted: September 13, 2013 at 9:37 am

Viewing 6 reply threads


Nick Putman

    September 13, 2013 at 9:37 am

    Hi,

    I have added a promotional code, and set my event to show Promotional codes in edit page, and checked the promotional code that I want to use, but still it doesn’t show on my cart page. Any pointers as to how I can get this working?

    Thanks,

    Nick


    Anonymous

      September 13, 2013 at 9:41 am

      Hi Nick,

      Go to Event Espresso -> General Settings.

      Look for ‘Allow discounts in the shopping cart?’ Set that to Yes.


      Nick Putman

        September 13, 2013 at 9:55 am

        Ah, thanks. I missed that setting. Any way to change the text ‘Enter Coupon Code’ to ‘Enter Discount Code’?


        Anonymous

          September 13, 2013 at 10:04 am

          The easiest/safest way is by ‘Translating’ the phrase.

          We have a guide available here which list some options.


          Nick Putman

            September 13, 2013 at 10:17 am

            Hi,

            I am trying to change it with a custom function, but it is not working – the first line in the array works, but not the second:

            function my_ee_filter_gettext( $translated, $original, $domain ) {

            // This is an array of original strings
            // and what they should be replaced with
            $strings = array(
            ' Early Pricing' => ' (Early Bird Discount)',
            ' Enter Coupon Code' => ' Enter Discount Code',
            // Add some more strings here
            );

            // See if the current string is in the $strings array
            // If so, replace its translation
            if ( isset( $strings[$original] ) ) {
            // This accomplishes the same thing as __()
            // but without running it through the filter again
            $translations = &get_translations_for_domain( $domain );
            $translated = $translations->translate( $strings[$original] );
            }

            return $translated;
            }

            I have also tried:

            'Enter Coupon Code' => 'Enter Discount Code',


            Anonymous

              September 13, 2013 at 12:51 pm

              Hi Nick,

              Try

              'Enter Coupon Code ' => 'Enter Discount Code ',

              The space at the end is needed in this case.


              Nick Putman

                September 14, 2013 at 5:33 am

                Thanks, that worked. It’s not always clear what string to use!

                Viewing 6 reply threads

                The support post ‘Promotional Code input not showing in Cart’ 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 - Staging Server