Cart emptied on log-in

  • Posts: 7
  • Thank you received: 0
13 years 11 months ago #3640

An error which has now started occurring (it wasn't there before) is that when a user has added some items to the cart, the cart is emptied on logging in. If the user then adds the same items again (or if the user has logged in before adding items in the first place) a further error occurs on pressing 'Next' to pay - the PayPal page comes up saying that the invoice has already been paid. Any ideas? Stephen

URL = www.spaldingfasteners.co.uk .

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 11 months ago #3641

Do you have the user synchronization plugin published ? If not, that could explain why that happens as in this plugin, there is some code to pass the cart id from the old user session to the new one when the user logs in.

Please Log in or Create an account to join the conversation.

  • Posts: 7
  • Thank you received: 0
13 years 11 months ago #3723

Hi Nicolas. Thanks. That has cured the first problem, but not the second. Still when hitting 'Next' to go to Paypal the Paypal screen says that the order has already been paid.

Why would the user plugin not be enabled by default on installation, as the site doesn't function without it? Are there any other plugins that should be enabled but may not be? There are quite a lot of plugins now.

Many thanks.

Stephen

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 11 months ago #3725

The user synchronization plugin is published by default when hikashop is installed. The only two reasons it would be unpbulished would be:
you unpublished it yourself
the install process crashed in the middle before being able to publish the plugin (it could be a time out or memory limit because of restrictions on your hosting plan)

There are no reasons other than that.

For your second problem: paypal check that for your paypal account, each order number is unique. If you already used another e-commerce solution before using HikaShop, the id sent you paypal (the order ID in the orders listing) might already have been used by your previous ecommerce solution. The solution is to increase the increase in the database above the maximum order id of your previous software. For example, if you had 5000 orders. Set the auto_increment value of the hikashop_order table to 5001. Here is an example of how to do with phpmyadmin: www.electrictoolbox.com/reset-auto-increment-value-mysql/

Please Log in or Create an account to join the conversation.

  • Posts: 7
  • Thank you received: 0
13 years 11 months ago #3729

Hi Nicolas, thanks. You were exactly right about the order number. Resetting the auto_increment value has fixed the problem.

Please Log in or Create an account to join the conversation.

Time to create page: 0.058 seconds
Powered by Kunena Forum