Support

Home Forums Multiple Event Registration Add-on multiple events in cart

multiple events in cart

Posted: June 15, 2015 at 12:09 pm

Viewing 31 reply threads


Stacey Lindsay

June 15, 2015 at 12:09 pm

On my site when you add an event to the cart it shows up 4 times in the cart, every item that is added. I am current on all updates for Event Espresso and all my plug-ins. I saw something on the Forum about it but it was 2 years ago and the solution was emailed to the person by you all so I’m not sure how to fix this.


Jonathan Wilson

June 15, 2015 at 12:31 pm

Hi Stacey,

Is this EE3 or EE4?


Stacey Lindsay

June 15, 2015 at 1:03 pm

Version 3.1.37.4.P


Lorenzo Orlando Caum

  • Support Staff

June 15, 2015 at 1:22 pm

Hi Stacey, could you provide a link to any event on your site so we can take a look?

Also, have you tried deactivating other plugins to rule out a conflict?


Lorenzo


Stacey Lindsay

June 15, 2015 at 1:44 pm

Here is a link to a page with some of the events listed, just add a few to the cart and then when you view the cart you will see.

http://gbump.com/goosebump-upcoming-events/exhibitor-opportunities/

Everything was working last fall when I first set it up and I have only added 2 plug-ins since then which I tried disabling and that didn’t help.


Dean

June 16, 2015 at 1:49 am

Hi,

Via FTP or your hosting control panel’s file manager, can you rename the templates folder found in wp-content/uploads/espresso/templates

e.g. wp-content/uploads/espresso/templates_OLD

This will disable the two template files in that folder. Then clear any cache and try the cart again.

Also, are you using Volume Discounts addon?

Have you tried disabling ALL plugins except EE and Multiple Event Registration?


Stacey Lindsay

June 16, 2015 at 9:52 am

I am using volume discounts addon, I have tried disabling all plugins that are not EE plug-ins. I made the change to templates, still no luck. Are you wanting me to try disabling all EE plug-ins/addons except multiple events? I have not tried that yet.

One think I noticed too is that the discount only works in the last of each of the duplicate listings. I’m not sure if that tells you anything???


Dean

June 17, 2015 at 2:35 am

Hi,

Yes, please disable the EE addons (except Multiple Event Registration and of course EE itself) just as a test.

Are the addon plugins all the latest versions?


Stacey Lindsay

June 17, 2015 at 6:22 pm

OK, when I disabled Volume Discounts addon it eliminated the duplication in the cart, however when I get to the Payment Overview page it is duplicating in there but apparently not all the events. I’m thinking that maybe in testing it somehow stored the events in the cart but I’m not seeing them because I asked someone else to try it on their computer and it didn’t do it.

But they had a different problem, when they entered the promotional code “3 Events” it applied the discount but when they went to pay in paypal, it lost the discount. It doesn’t do that for me in Safari they are on chrome so I don’t know if that would make a difference.

The other thing that has happened in our event listing, we have several price options that are not showing up, it only shows one price. Once you add them to your cart you can see the other prices but when someone is shopping most are showing the highest price so that will deter them. It used to show me all the prices.


Dean

June 19, 2015 at 2:11 am

Hi,

Go to http://www.yoursite.com/registration-cancelled/ (obviously change yoursite.com to your actual domain), and this will clear your session and wipe the cart clean.

Are all of your Event Espresso plugins up to date? Please compare the version numbers to the ones on your account page to be sure.

Can you provide a link to your event list so I can test this promotional code issue?

Regarding the prices, go to the WP Dashboard, then Event Espresso > Template Settings > Change the “Display prices in the event list as:” setting to either Price Range (e..g $10 – $100) or Price List (list of all the prices).


Stacey Lindsay

June 19, 2015 at 7:55 am

All EE plugins are up to date, did the registration cancelled step and I’m still getting the events duplicated when I get to the payment overview. My friend who tested it on her computer is still not getting the discount to carry over. I tested it on my iPad, a mac with safari and a pc computer with chrome and it does the same duplication issue on all of them but I get the discount to carry over to paypal. It’s weird. Price issues is fixed though, thanks.

Here is the url for the event list:

http://gbump.com/goosebump-upcoming-events/exhibitor-opportunities/
If you add 3 events to the cart then in the coupon code type 3 Events it will give you the discount. Once we enter the form information and go to the payment overview, that is where I’m seeing the duplication. I noticed that I have one event with an option that is free and when I added that one it didn’t duplicate but all the others do. (Day of Play Exhibitor – Conduct a Clinic option is the free one)

Any help is appreciated, next week I’m going to have a lot of traffic with people trying to purchase this stuff, I have to get it fixed.


Lorenzo Orlando Caum

  • Support Staff

June 22, 2015 at 8:56 am

Hi Stacey, there is currently an issue with your caching plugin:

WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed!

Could you please reactivate WP Super Cache, then enable the cache and save? Then disable caching and deactivate the plugin. These steps will refresh the cache and then turn it back off.

If you are wanting to use WP Super Cache, then please ensure that your Event Espresso pages are excluded from the cache. You can find them by going to Event Espresso –> General Settings and you’ll want to use the slugs for the Event Espresso pages for your site.

For example, one of your slugs would be:

/event-oppurtunities/


Lorenzo


Stacey Lindsay

June 22, 2015 at 9:32 am

I have never used WP-Super Cache, don’t have it on the site, are you suggesting that I get it? Since I don’t have it I would be surprised if it was causing the problem.


Lorenzo Orlando Caum

  • Support Staff

June 22, 2015 at 9:52 am

Hi Stacey, my prior comment was filtered out so I’ve adjusted it. This appears at the end of your pages when viewing the page source:

WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed!

Do you have a team member that is helping you with the site?


Lorenzo


Stacey Lindsay

June 22, 2015 at 1:39 pm

No team member helping me I just have the feedback on this forum. I’m not exactly clear what I need to do.


Lorenzo Orlando Caum

  • Support Staff

June 22, 2015 at 3:33 pm

Alright, I wasn’t sure if someone was helping you with changes. WP Super Cache was previously installed and was running and it doesn’t appear to be running anymore but may be installed. When I view your page source and look at the bottom, then this messaging shows:

WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed!

Could you please try these steps?

1) Login to your WP dashboard and then go to Plugins.

2) Look for WP super cache in the list. If it appears there, then please activate it. If it doesn’t, then please click on Add New (button at top). Next search for it and then install and activate it.

3) Turn the caching option on for WP super cache and save.

4) Turn the caching option off for WP super cache and save once more.

The steps above should clear out any old caching files that may still be in place. The reason that we would like you to complete the steps above is that deactivating a caching plugin does not necessarily turn off caching services on a WordPress site.


Lorenzo


Stacey Lindsay

June 23, 2015 at 11:14 am

Crap! I added new the plugin WP Super cache, installed it and it took me to a screen with the following errors and now I can’t get into the admin of my site at all to uninstall it. Should I remove the folder for it through FTP or will that mess it up more? I didn’t know if it needs to uninstall itself.

w
Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /home/content/57/8006757/html/wp-content/wp-cache-config.php:111) in /home/content/57/8006757/html/wp-content/plugins/espresso-multiple/espresso-multi-registration.php on line 77

Warning: Cannot modify header information – headers already sent by (output started at /home/content/57/8006757/html/wp-content/wp-cache-config.php:111) in /home/content/57/8006757/html/wp-includes/pluggable.php on line 1196

Warning: Cannot modify header information – headers already sent by (output started at /home/content/57/8006757/html/wp-content/wp-cache-config.php:111) in /home/content/57/8006757/html/wp-includes/pluggable.php on line 1196


Lorenzo Orlando Caum

  • Support Staff

June 23, 2015 at 2:36 pm

Hi Stacey, could you rename the folder using your preferred SFTP or FTP client here:

wp-content/plugins/wp-super-cache

You could rename it by adding a number to the end of the folder name:

wp-super-cache –> wp-super-cache1

Then go to wp-content/ and removed the advanced_cache and/or cache_ related files. That should deactivate any caching on your site.


Lorenzo


Stacey Lindsay

June 23, 2015 at 3:46 pm

OK I can log into my site now and the WP Super Cache is deactivated but I am still having the same issues where the events are duplicating on the payment overview page. And for some people the promotional discount doesn’t transfer to paypal.


Josh

  • Support Staff

June 24, 2015 at 7:28 am

You can follow the steps outlined here to completely disable and remove WP Super Cache:

https://wordpress.org/plugins/wp-super-cache/other_notes/


Stacey Lindsay

June 25, 2015 at 5:48 pm

OK, I have followed the directions on that link except of course I couldn’t Deactivate the plug in because it has to be activated first and when we activate it we can’t get into the system. This still has not fixed the problem.

However, I discovered by playing with it a little that if I change the settings in the event so that it doesn’t allow a promo code it then does not duplicate. It only duplicates in the purchase overview when the event allows promotional codes, I tried all the different options for promotional codes, Global only, Global and specific, all promo codes and it duplicates for each option except when no promo codes is selected.

We really need to use the promo code option but I’m hoping that helps to identify the problem better. Please advise.


Josh

  • Support Staff

June 26, 2015 at 10:44 am

Hi Stacey,

Can you take a look in the /wp-content/uploads/espresso/ folder on your server and check to see if there is a file named custom_functions.php there? If there is, it may help to rename that file to something like custom_functions_disabled.php so that it does not load. I suspect there may be a customized function loading that’s causing the duplicated events in the cart when promo codes are active.


Stacey Lindsay

June 26, 2015 at 12:26 pm

No file by that name there. There are 4 folders in the Espresso folder (Gateway, Languages, logos, templates_old) Gateway is empty; languages has index.php; logos has .htaccess, espresso_log.txt, & paypal.ipn_results.log; and templates_old has event_list.php and event_list_display.php and that’s it in that folder.


Josh

  • Support Staff

June 26, 2015 at 12:42 pm

Can you check to see if there are any functions that were added to the WP theme’s functions.php file that override Event Espresso functions? The reason I ask is because I’m having trouble reproducing the same issue on our testing servers.


Stacey Lindsay

June 26, 2015 at 1:03 pm

The only custom thing we did was something I found on this forum to fix an issue I was having with the payment options. I did an update and then it wouldn’t allow me to click on any of the payment options to edit them. I searched the tech support site and found the following suggestion posted in October 2014 and we set up a child theme and made the changes, Here is a link to the post I am referring to:

https://eventespresso.com/topic/payment-gateway-options-wont-open/

That is the only change we have made and it fixed the problem with the payment options. When you go to my site you see the problem correct?

I’m not real tech savvy so I’m not sure how to check if there were any changes to the WP Theme’s functions.php that override Event Espresso functions. Since I am not tech savvy I don’t make customizations to the site if I can help it.


Stacey Lindsay

June 26, 2015 at 2:32 pm

I just had a friend of mine who is more tech savvy check the theme functions and he sent them to me as an attachment. How can I send that to you?


Stacey Lindsay

June 26, 2015 at 5:36 pm

OK, here is what my friend found for me in the theme functions. Let me know if this helps…

—————————————–
<?php
//This function should be added to the custom files addon, in the wp-content/uploads/espresso/custom_functions.php file, or your in your theme, in the wp-content/themes/theme-name/functions.php.
if (!function_exists(‘event_espresso_price_list’)) {

function event_espresso_price_list($event_id) {
$html = ”;
global $wpdb, $org_options;
$sql = “SELECT id, event_cost, surcharge, surcharge_type, price_type”;
$order_by = ‘event_cost’;
if ( function_exists(‘espresso_members_installed’) && espresso_members_installed() == true && is_user_logged_in() ) {
$sql .= “, member_price, member_price_type “;
$member_event = TRUE;
$order_by = ‘member_price’;
}
$sql .= ” FROM ” . EVENTS_PRICES_TABLE . ” WHERE event_id='” . $event_id . “‘ ORDER BY ” . $order_by . ” ASC”;
$results = $wpdb->get_results( $wpdb->prepare($sql, ”) );
if ($wpdb->num_rows > 1) {
//Create a dropdown of prices
$html .= ‘<ul id=”price-list-‘ . $event_id . ‘” class=”espresso-price-list”>’;

foreach ($results as $result) {
if ($member_event == TRUE) {
$result->event_cost = $result->member_price;
$result->price_type = $result->member_price_type;
}
// Addition for Early Registration discount
if ($early_price_data = early_discount_amount($event_id, $result->event_cost)) {
$result->event_cost = $early_price_data[‘event_price’];
$message = __(‘ Early Pricing’, ‘event_espresso’);
} else {
$message = ”;
}

$surcharge = ”;

if ($result->surcharge > 0 && $result->event_cost > 0.00) {
$surcharge = ” + {$org_options[‘currency_symbol’]}{$result->surcharge} ” . $surcharge_text;
if ($result->surcharge_type == ‘pct’) {
$surcharge = ” + {$result->surcharge}% ” . $surcharge_text;
}
}
$html .= ‘

  • ‘ . stripslashes_deep($result->price_type) . ‘ (‘ . $org_options[‘currency_symbol’] . number_format($result->event_cost, 2) . $message . ‘) ‘ . $surcharge . ‘
  • ‘;
    }
    $html .= ‘‘;
    }else{
    if ($member_event == TRUE) {
    $event_cost = $wpdb->last_result[0]->member_price;
    $price_type = $wpdb->last_result[0]->member_price_type;
    }else{
    $event_cost = $wpdb->last_result[0]->event_cost;
    $price_type = $wpdb->last_result[0]->price_type;
    }
    $html .= ‘<p>’ . $price_type . ‘ ‘ . $org_options[‘currency_symbol’] . number_format($event_cost, 2) . ‘</p>’;
    }
    echo $html;
    return;
    }
    }
    add_action(‘action_hook_espresso_price_list’, ‘event_espresso_price_list’, 20, 2);


    Dean

    June 29, 2015 at 12:42 am

    Hi,

    That function should be obsolete now, as the feature to change the way the prices are displayed is now built into the plugin.

    As such you can remove that code, and instead in the WordPress admin go to Event Espresso > Template Settings > and change the “Display prices in the event list as:” to Price List.

    Removing that code may also resolve the issue, please advise if it does/does not.


    Stacey Lindsay

    June 29, 2015 at 9:24 am

    We can try but we just put that fix on there in May and I made sure everything was updated before we did that fix. The problem with the shopping cart happened after I updated the site. I’ll try it and let you know.

    I just updated the EE3 contract but do you think I would have less issues if I switched to EE4? Is that an easy switch to do?

    I’m stressed out, these events are suppose to go live to my customers in 2 days and I don’t know what I’m going to do.


    Josh

    • Support Staff

    June 29, 2015 at 10:06 am

    Hi Stacey,

    If you need promo code functionality, then EE4 isn’t recommended because it doesn’t have the promo code feature yet. Please let us know if removing the custom code from your theme does not help.


    Stacey Lindsay

    June 30, 2015 at 4:20 pm

    I did as you asked, it did not fix the duplication problem or the promo code problem and now the payment options are not working, when you click on them the options don’t open for you to select anything.

    I’m going to have about 100 people coming to my site tomorrow to purchase this stuff, this is now causing a huge problem for me. Is ther any way someone on staff could get on my site and help me with this instead of this back and forth stuff?


    Josh

    • Support Staff

    July 1, 2015 at 12:12 pm

    Hi Stacey,

    It sounds like someone should do an audit of all of the customizations that were made on this site. This is something that EE staff can do, and we generally ask for a priority support token to be purchased to help cover the time to do the code review.

    Viewing 31 reply threads

    The support post ‘multiple events 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