Posted: April 25, 2013 at 8:54 am
I mentioned before that the shopping cart shows “Enter Coupon Code and a bunch of code that should not be visible. Looking at the shopping cart .php file I was wondering what the difference was between the GROUPON and COUPON code sections as shown and if this is causing the shopping cart issue? <code> <?php if ( function_exists( ‘event_espresso_coupon_payment_page’ ) && isset($org_options[‘allow_mer_discounts’]) && $org_options[‘allow_mer_discounts’] == ‘Y’ ) : //Discount code display ?> <?php if ( function_exists( ‘event_espresso_groupon_payment_page’ ) && isset($org_options[‘allow_mer_vouchers’]) && $org_options[‘allow_mer_vouchers’] == ‘Y’ ) : //Voucher code display ?> </code> |
|
The Groupon code works with the Social coupons add-on: |
|
I understand that but what is the difference between the COUPON section of the code and the GROUPON section and is the fact the these two are in the shopping cart causing the issue in the screen I have mentioned. If not, why is the “Enter Coupon Code” shown with code displayed in the shopping cart window when I don’t have the Social Coupons PI installed? |
|
The difference between the Enter Coupon code and the Voucher code fields are the former is part of the core plugin and is for the Promo code feature. The latter (voucher) works with the social add-on. I’ve set up an event that uses both on a live site so you can see how they work when both are turned on for an event: http://eetesting.info/3.1.josh/event-registration/?ee=2650 I’m not sure why there is extra code displaying on your cart page. Maybe this will help: Can you view source of the page, select all, then copy and paste into a pastebin at pastebin.com? If you post a link to the pastebin here we can take a look. |
|
OK, I have traced it down to what must be a theme conflict issue. I have tried four other themes in addition to the one I’m using for the client on my WAMP server and there is no issue with the other four themes except for the “Striking” theme I’m using for the client. I have uploaded the page code to pastebin.com as requested and the link is http://pastebin.com/auDiJqsN . If you cannot come up with a solution I will contact the theme developer to see what he can do to correct that problem. Thank you so much for all of your help with something that appears to be a theme conflict not an Event Espresso issue. |
|
If you look at line 145 (and elsewhere) you’ll see there’s a break tag inserted right after where it says input type=”text”. This is classic Themeforest theme shenanigans. What’s happening is Striking and the other themes you are testing are removing the standard WordPress formatting functions and in their place adding new ones. The unintended consequence of removing the standard WP formatting is there are break tags or even paragraph tags that get added to the html markup each time there is a new line in the template code. You may see this manifest itself where you’ll see additional spacing in strange places on WordPress pages. In some cases (like this one) it’s adding a break tag in a place that actually messes up the code. This will break many plugins, and is a well documented issue: http://pippinsplugins.com/never-remove-the-default-the_content-filters-in-themes/ http://theandystratton.com/2011/shortcode-autoformatting-html-with-paragraphs-and-line-breaks The developer may have a ready made solution that they can send you because they likely get support requests along the same lines. It’s possible depending on how they’ve removed the standard WP autoformatting that it might work to wrap the [ESPRESSO_EVENTS] shortcode with [raw] tags. As a workaround you might try wrapping the shortcode on the /event-registration page with the [raw] short tag. It will look like this: |
|
Thank you so much the RAW tags did the trick. I also had to use RAW tags to get the calendar to display properly. All I can say is that you guys are the absolute best and if you ever need a positive testimonial I would be honored to provide one for you. With such superb technical support you all deserve kudos!!!! |
|
Thanks Horst. You can find many different ways to share and discuss Event Espresso from our How to share Event Espresso page: https://eventespresso.com/about/help-us-help-you-how-to-share-event-espresso/ |
|
The support post ‘Shopping Cart Code’ 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.