I have an issue with some URL’s viewing the shopping cart. When I press the link on the event I am redirected to the shopping cart with the correct link. http://www.mysite.be/VK/?page_id=94®event_action=show_shopping_cart
However when I click show shopping cart in the widget it redirects me to almost the same URL except for the & after id=94. It is replaced with a ? and the URL shows an empty shopping cart http://www.mysite.be/VK/?page_id=94?regevent_action=show_shopping_cart
This bug is visible when using the default permalinks, using another format such as ‘Post name’ permalinks will prevent this from happening although the code fix is fairly simple.
Then refresh the page and view the cart link which should work correctly. This fix will be included within the next update to the Multi Event Registration Add-on.
I get
Fatal error: Call to undefined function espresso_page() in /home/vrienden/public_html/VK/wp-content/plugins/espresso-multiple/cart-widget.php on line 36
Here are the first 45 lines
<?php
if (!class_exists(‘Espresso_CartWidget’)) {
class Espresso_CartWidget extends WP_Widget {
/**
* Register widget with WordPress.
*/
public function __construct() {
parent::__construct(
‘event-cart’, // Base ID
‘Event Espresso Cart Widget’, // Name
array(‘classname’ => ‘widget_espresso_cart’, ‘description’ => __(‘An event shopping cart widget.’, ‘text_domain’),) // Args
);
}
/**
* Front-end display of widget.
*
* @see WP_Widget::widget()
*
* @param array $args Widget arguments.
* @param array $instance Saved values from database.
*/
public function widget($args, $instance) {
if (empty($_SESSION[‘espresso_session’][‘events_in_session’])){return;}
extract($args);
global $org_options;
$grand_total = !empty($_SESSION[‘espresso_session’][‘grand_total’]) ? $_SESSION[‘espresso_session’][‘grand_total’] : 0.00;
$title = apply_filters(‘widget_title’, $instance[‘title’]);
echo $before_widget;
echo $before_title . $title . $after_title;
//Debug
//echo ‘<h4>$VARIABLE :
Please send an email to the address below to request an already patched version of the file:
support [at] eventespresso.com
Be sure to include a link to this support post.
Alternatively, please turn on pretty permalinks through WP-admin –> Settings –> Permalinks as this appears to affect the default permalinks only.
—
Lorenzo
Viewing 9 reply threads
The support post ‘Shopping cart URL’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.