Support

Home Forums Event Espresso Premium Payment Screen

Payment Screen

Posted: June 27, 2013 at 1:12 pm


Kimber

June 27, 2013 at 1:12 pm

I am getting code under the credit card (using Stripe) form. Also I have two empty boxes under offline payment. (see image below) Anyone know how to fix these?

http://thestarawards.com/wp-content/uploads/2013/06/event-esspresso.png

  • This topic was modified 10 years, 10 months ago by  Kimber.
  • This topic was modified 10 years, 10 months ago by  Kimber.


Garth

  • Support Staff

June 27, 2013 at 4:47 pm

Hi Kimber,

Are you modifying the templates? The layout of that page is not a standard WordPress theme or layout with Event Espresso.

I think those empty boxes are related to activated offline gateways (first guess). What offline payment gateways do you have activated? Can you remove any unused offline gateways?


Kimber

June 28, 2013 at 10:20 am

Hi Garth,

We aren’t modifying any of the templates. When we uploaded the software that’s how everything looked. All payment gateways are turned off with the exception of the Invoice gateway.


Dean

June 28, 2013 at 12:49 pm

Hi Kimber,

I did a test registration on your site to take a closer look at this. What is happening is the theme is formatting the page content and adding paragraph tags where there shouldnt be any, in this case around some hidden links that help us show the invoice details.

Often the theme is using code like this http://www.wprecipes.com/disable-wordpress-automatic-formatting-on-posts-using-a-shortcode.

You could try adding raw around the [ESPRESSO_EVENTS] shortcode, or see if the theme has similar code to the above and remove it.


Kimber

June 28, 2013 at 1:17 pm

Hi Dean,

Neither one seemed to work, as I am still getting these boxes.


Dean

June 28, 2013 at 1:26 pm

Is it possible to get your login details in order to look into this?

If so, please send them via https://eventespresso.com/send-login-details/

NOTE: login details need to be Admin level.


Dean

June 28, 2013 at 1:36 pm

Hi,

This is from your themes functions.php file, pretty much at the start

function my_formatter($content) {
	$new_content = '';
	$pattern_full = '{(\[raw\].*?\[/raw\])}is';
	$pattern_contents = '{\[raw\](.*?)\[/raw\]}is';
	$pieces = preg_split($pattern_full, $content, -1, PREG_SPLIT_DELIM_CAPTURE);

	foreach ($pieces as $piece) {
		if (preg_match($pattern_contents, $piece, $matches)) {
			$new_content .= $matches[1];
		} else {
			$new_content .= wptexturize(wpautop($piece));
		}
	}

	return $new_content;
}
	
remove_filter('the_content', 'wpautop');
remove_filter('the_content', 'wptexturize');

add_filter('the_content', 'my_formatter', 99);

This function is what is modifying the default behaviour of WordPress and subsequently causing the extra and unnecessary < p > tags. You could test the behaviour by removing that script.

Important: If you try this, you will need to make sure you have FTP access, and you have backed up your files, as even a small error in the code can lock up your site, until you deactivate the theme via FTP (rename the folder).

If you are not confident with this you could refer to your webdeveloper or the them author.


Kimber

June 28, 2013 at 3:10 pm

Hey Guys,

What I actually ended up doing was creating a different directory and adding a wordpress site to that directory. I then used the default wordpress theme to create just a blank page. http://thestarawards.com/register

Everything seems to be working much better. Thanks for your help!


Garth

  • Support Staff

June 29, 2013 at 11:37 pm

Thanks for reporting back.

The support post ‘Payment Screen’ 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