Posted: 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 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.” |
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? |
|
|
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. |
|
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. |
|
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. |
|
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? |
|
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. |
|
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. |
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: |
|
|
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 <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteRule ^shop/images/(\d+)/?\??(.*)$ /wp-content/plugins/shopp/services/image.php?siid=$1&$2 [QSA,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> <Files wp-login.php> Satisfy Any Allow from all </Files> <Files admin-ajax.php> Satisfy any Allow from all </Files> <Files admin-ajax.php/css/install.css> Satisfy any Allow from all </Files> # END WordPress</code> |
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. |
|
|
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”. |
Hello, I found this link in Stack Overflow: Could you please follow up with your web host? — |
|
|
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? Thanks |
Hi there, > Why is the discount applied using ajax rather than actually just server side? > How does SSL relate in all this? 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? |
|
|
Hi Josh, The session save path is writable. |
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. |
|
|
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.” |
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. |
|
|
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.