Support

Home Forums Event Espresso Premium Volume Discounts / Cart

Volume Discounts / Cart

Posted: February 12, 2014 at 7:37 pm


Jackson Cooper

February 12, 2014 at 7:37 pm

Hi,

We want to add the volume discount but it was not working, I have tried this guide
https://eventespresso.com/wiki/multiple-events-registration-use-add-to-cart-link-instead-of-default-registration-form/ but in chrome it just give me “It looks like you are attempting to refresh a page after completing your registration or your cart is empty. Please go to the events page and try again.” or in firefox its just displaying a gif but never redirects.

I also experience once that the event was actually in the cart but the price is always 0 and after click the button below it give me this “It looks like you are attempting to refresh a page after completing your registration or your cart is empty. Please go to the events page and try again.”


Garth

  • Support Staff

February 12, 2014 at 11:13 pm

Hi,

While I personally can not comment on this session message you experience, I would say that EE4 might be more suitable for you because you can configure graduated pricing. You can configure a range of quantity of tickets that someone must purchase for a given price. The more tickets they buy among a block the lower the price per ticket.

This type of price structure is officially supported in EE4, where as the volume discount is not officially supported and only works in certain scenarios.

Whatever you choose might depend on what you actually need for discounting.

Does that make sense?


Dean

February 13, 2014 at 12:17 am

Hi,

The first issue that needs resolving is the fact that several files are not being loaded (including the AJAX files to allow add to cart) as the site is in HTTPS but the site is trying to load them in HTTP. This means that the browser is rejecting it for security reasons.

You could try the WP HTTPS plugin and set the EE pages to SSL and use the Force SSL Exclusively option to redirect users on “normal” pages back to HTTP.


Jackson Cooper

February 13, 2014 at 11:12 pm

Hi Dean,

Tried but still getting same issue. When I’m using WP HTTPS it doubles the parameters in the url (EE pages). I tried to remove the duplicate parameter (regevent_action=show_shopping_cart) and still having this empty cart issue.


Dean

February 14, 2014 at 3:53 am

Hi,

Well if that isn’t working for you, you could try Better WP Security.

The issue (currently) is definitely down to the HTTPS blocking key files. Once we have that resolved I’m positive that the issue will be resolved.


Jackson Cooper

February 16, 2014 at 6:39 pm

Hi,

So this is what I did, Tried Better WP Security, I modify the function.php to use https to load the ajax and js. If I check it in the console there is no js or ajax that are being blocked. Is could it be a server issue?


Sidney Harrell

February 17, 2014 at 4:58 am

Someone has set up apache security login on the wp-admin. That could be why the calls to wp-admin/admin-ajax.php are getting a 404 web page response instead of json data.


Jackson Cooper

February 25, 2014 at 1:33 am

Hi Sidney,

Tried to contact the hosting regarding to the apache security, and tried to disable ” brute force attack protection on WordPress sites” but still getting same issue.


Josh

  • Support Staff

February 26, 2014 at 7:26 am

Hi there,

It may help to check the .htaccess file to see if the wp-admin directory is password protected. If it is you can whitelist the AJAX handler by following this guide:

http://kuttler.eu/post/htaccess-protect-wordpress-admin/


Jackson Cooper

February 26, 2014 at 11:02 pm

Hi,

Still getting same issue (cart is empty). In firefox it just displaying the loading gif forever. There are no errors in the console too.

The site is using Event Espresso HTTPS plugin, settings:

Internal HTTPS Elements = checked

Force Shared SSL Admin = checked

Here is my .htaccess codes:

<code># BEGIN WordPress

&lt;IfModule mod_rewrite.c&gt;
RewriteEngine On 
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteRule ^shop/images/(\d+)/?\??(.*)$ /wp-content/plugins/shopp/services/image.php?siid=$1&amp;$2 [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
&lt;/IfModule&gt;

&lt;Files wp-login.php&gt; 
Satisfy Any 
Allow from all
&lt;/Files&gt;

&lt;Files admin-ajax.php&gt;
	Satisfy any
    Allow from all
&lt;/Files&gt;

&lt;Files admin-ajax.php/css/install.css&gt;
    Satisfy any
    Allow from all
&lt;/Files&gt;
 
# END WordPress</code>


Tony

  • Support Staff

February 27, 2014 at 4:49 am

Hi,

Quick question, when using WP HTTPS/Better WP Security did you also have the Event Espresso HTTPS Plugin Enabled?

The Event Espresso HTTPS plugin should no longer be used and either WP HTTPS or Better WP Security used instead. So i would advise disabling & deleting that plugin. Does Event Espresso then work as expected?

Also there is an JavaScript error being displayed within console: http://take.ms/jwKjZ

It looks like this code is causing it:

$(document).ready(function(){
		
});

Although it does not appear to be do anything? It is likely within the themes header.php file although may not be.


Jackson Cooper

February 27, 2014 at 6:14 pm

Hi Tony,

No, Event Espresso HTTPS Plugin is disabled when I use WP HTTPS/Better WP Security. For the js that is causing an error in the console only happens in homepage template and already fixed it (thanks for noticing that).

Using WP HTTPS/Better WP Security still getting same issue. Could it be a server issue? When viewing the site information in event registration page it stated something like this “The connection usses TLS 1.0. The connection is encrypted using AES_256_CBC, with SHA1 for message authentication and DHE_RSA as the key exchange mechanism. The server does not support TLS renegotiation extension”.


Lorenzo Orlando Caum

  • Support Staff

February 28, 2014 at 4:55 pm

Hello,

I found this link in Stack Overflow:

http://stackoverflow.com/questions/3738574/https-apache-tls-renegotiation-debian-apache2-openssl-how-to

Could you please follow up with your web host?


Lorenzo


Jackson Cooper

March 10, 2014 at 3:17 am

Hi,

So we contacted the hosting and asking about some information. Can someone please answer?

Why is the discount applied using ajax rather than actually just server side? How does SSL relate in all this?
Are they saying that by simple enabling SSL Renegotiation, it will be fine? However, SSL Renegotiation is not secure prior to TLS 1.2 if I remember correctly. This is why we have disabled it. Who is insisting on the SSL renegotiation, is it Chrome (which then implies that there’s some sort of ajax involved?)

Thanks


Josh

  • Support Staff

March 11, 2014 at 12:20 pm

Hi there,

> Why is the discount applied using ajax rather than actually just server side?
If it were only applied server side, the customer would need to refresh the page to see that the discount is applied.

> How does SSL relate in all this?
If the admin pages are forced as SSL or the registration page on the front end is set as SSL, or vice versa, then the call to admin-ajax.php can end up being a mismatch and then 404.

That doesn’t appear to be the case here, but the sessions aren’t saving. When you go to Event Espresso>System status and look under PHP sessions does it indicate that the session save path is writable?


Jackson Cooper

March 11, 2014 at 7:01 pm

Hi Josh,

The session save path is writable.


Josh

  • Support Staff

March 12, 2014 at 1:05 pm

Hi there,

If this were happening on my site I’d make a backup of the .htaccess file, remove everything except for the rewrite rules code. Then I’d try deactivating all other non-EE plugins to rule out any plugin conflicts.


Jackson Cooper

March 13, 2014 at 12:47 am

Hi Josh,

Seems like the “Shopp” plugin is causing it. It is now working but another issue occurred. If I am logged in in the back end it works just fine but If I am logged out this error is showing in the console

“XMLHttpRequest cannot load [website url]. No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘[website url]’ is therefore not allowed access.”


Josh

  • Support Staff

March 13, 2014 at 2:53 pm

Along with that it’s saying “The page at ‘[website url]/event-registration/’ was loaded over HTTPS, but displayed insecure content from ‘[website url]/wp-content/themes/metro/js/jquery.cycle2.js.map’: this content should also be loaded over HTTPS.

This indicates that the jQuery cycle plugin being loaded from the theme isn’t getting loaded correctly. If it’s being enqueued via the wp_enqueue_script function WP should automatically load it up as https.


Jackson Cooper

March 16, 2014 at 7:09 pm

Hi,

Actually its not the issue was not cause by jquery.cycle.2.js.map. It was something else in functions.php. Its resolved now. Thank you for the great assistance.

The support post ‘Volume Discounts / 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