Issue with orders retained

  • Posts: 41
  • Thank you received: 0
10 years 5 months ago #157697

The issue happens when I do the following:
- I start an order, and then log out (didn't check out).
- The order has been retained.
- I log back in and the order is there and can access it from the checkout page
BUT:
- I can not do anything with that order, like remove an item or change quantity, checkout and pay
- If I try to remove an item it will redirect to the default page for empty carts and give a message: 'The cart is empty' (and it's not)
-If I add another item to the order then it works fine again (as if I hade never logged out and back in)

Thank you in advance for nay help you may provide to me

-- url of the page with the problem -- : mywebsite.com/checkout
-- HikaShop version -- : HikaShop [1405171505]
-- Joomla version -- : Joomla! 3.3.0 Stable [ Ember ] 30-April-2014 14:00 GMT
-- PHP version -- : 5.5.12
-- Browser(s) name and version -- : Chromium 34.0.1847.137
-- Error-message(debug-mod must be tuned on) -- :no error message

Last edit: 10 years 5 months ago by Jovian. Reason: Clarification of the problem

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

  • Posts: 12953
  • Thank you received: 1778
10 years 5 months ago #157713

Hi,
That's maybe coming from a cache issue so can you disable the Joomla cache, and clear it ? You'll also have to disable it in the joomla config, and unpublish the cache plugin. Also can you clear your browser's cache and try it again ?

The following user(s) said Thank You: Jovian

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

  • Posts: 41
  • Thank you received: 0
10 years 5 months ago #157820

Hi,
Joomla cache was already turned off (plugin included), I deleted some remaining cache files just in case.
Browser cache is off.

The issue still exists.

What can I try now?

Thanks

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

  • Posts: 2143
  • Thank you received: 747
10 years 5 months ago #157828

Jovian wrote: (...)
- I log back in and the order is there and can access it from the checkout page


How do you do that? Unless you changed that setting in the backend, the cart should be empty once the order is created, and there's nothing to see or do in checkout... when trying to access checkout (e.g. with an menu item or direct URL), you should only get the message that your cart is empty... no checkout page.

So, I think you'll need to reveal much more info on related settings (screenshots being best), or at the very least post a link to the site.


Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )

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

  • Posts: 2143
  • Thank you received: 747
10 years 5 months ago #157829

Thinking about it again, I think it's pretty simple.

I bet you have set "Clean cart when order is..." set to something else than "created", so there's still something in the cart even though the order is already created. You may think this over if it makes really sense.

So, now you can go to the checkout process again for the same cart. And you expect to change order details there - in the checkout. Which likely is wrong. Yes, you can add more items to the same existing cart by "regular shopping", but for order management you have order listing and order view via the customer's CPanel, or however else you access those views.

In a nutshell:

  • Re-think the setting for when the cart is being cleaned = emptied. And if only to avoid the confusion you're facing now.
  • Guide customers clearly to the mentioned views, so they're able to see and manage their orders where it should happen.
  • Watch out for the parameters at which order statuses you let them delete their order, if they can still change the payment method, and all that.

Hope it helps.


Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )
Last edit: 10 years 5 months ago by lousyfool.

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

  • Posts: 41
  • Thank you received: 0
10 years 5 months ago #157831

The "Clean cart when order is..." setting was already set to "created", and for the record, setting it to "confirmed" made no changes.

I also tried to set the "Cart retaining period" setting to 0, thinking that it would disable the storing of a cart after logging out.
It didn't work out like that and it also didn't solve the issue.

Thank you for your quick responses!

Any other suggestion?

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

  • Posts: 2143
  • Thank you received: 747
10 years 5 months ago #157833

Ah ok.

So, what you're saying is, "the cart should be empty, but it isn't, the same item for which an order is already created is still in the cart". Yes? Or how else do you get to the checkout for an order that's created?

And if so, is that for only one user account, or does it happen for any (new) user once a new order is being created?


Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )

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

  • Posts: 41
  • Thank you received: 0
10 years 5 months ago #157837

So, what you're saying is, "the cart should be empty, but it isn't, the same item for which an order is already created is still in the cart". Yes? Or how else do you get to the checkout for an order that's created?

That is just is one test that I made, thinking that changing the 'cart retaining period' setting to 0 I would avoid the issue.

If I understand correctly the 'cart retaining' feature allows for the user to review/modify/complete an order that hasn't been completed before.
This is what is not working correctly after the user logs out and logs in back.

Also I tried with a newly created regular user (the user used before was an admin) and the results are the same.

Thanks again

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

  • Posts: 2143
  • Thank you received: 747
10 years 5 months ago #157843

Sorry, but it is very difficult, if not impossible, to follow - and say anything more specific that could help - if you don't answer questions asked but write about something else.

From the documentation:

Cart retaining period : The period of time during which the cart will be kept in the database. After that, the cart data will be cleaned to avoid having too much data.


It's an "auto-empty" feature, nothing more and nothing less. Not sure, but like elsewhere, "0" might as well mean "infinite". And if not, "0" would then mean just that = no cart memory at all = instant deletion, haha.

I believe I explained what settings make sense and how orders should be managed, and I still don't know what your issue is, how you get to checkout with an order created, and what all else. Maybe it's me, but should be simple to explain, so until further good info from you please understand if give up.


Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )

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

  • Posts: 41
  • Thank you received: 0
10 years 5 months ago #157872

Quoting myself:

If I understand correctly the 'cart retaining' feature allows for the user to review/modify/complete an order that hasn't been completed before.
This is what is not working correctly after the user logs out and logs in back.


So, making myself clearer (if I can):
-If I am logged in and I add something to the cart, it is normal that the product is there every time y visit a chekout page, right?
-If I log out, visiting the checkout page should show nothing and redirect to the chosen page with a message: 'The cart is empty", right?
-If I log in again, the order that was left unfinished before will show up again, both in the checkout page and in the cart module (if enabled), right?
-The problem manifests at this point , when I try to make a change to that order, I can not do it unless I add another product, if a try to remove an item from the order it doesn't work, is this normal?

Thanks

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

  • Posts: 2143
  • Thank you received: 747
10 years 5 months ago #157876

Jovian wrote: So, making myself clearer (if I can):
1. If I am logged in and I add something to the cart, it is normal that the product is there every time y visit a chekout page, right?
2. If I log out, visiting the checkout page should show nothing and redirect to the chosen page with a message: 'The cart is empty", right?
3. If I log in again, the order that was left unfinished before will show up again, both in the checkout page and in the cart module (if enabled), right?
4. The problem manifests at this point , when I try to make a change to that order, I can not do it unless I add another product, if a try to remove an item from the order it doesn't work, is this normal?


Thanks for trying. I gave your points numbers, so we know what we're talking about.

1. Yes. And it works for you. Yes?
2. Yes. And it works for you. Yes?
3. This is where it's getting confusing (or confused): You've been talking about the cart. Now suddenly you're talking about an order, even "unfinished". Either you're confusing the terms, or you're throwing too much into the same line, or you're on a different planet...
4. Where do you try to change which order? You don't say these things.
And which order anyway?????? What's in the cart isn't an "order". Unless you have set the clean-cart parameter to a later status. Which you said you didn't. If you went through checkout, and the parameter is set to "created", the cart should be empty. Then you can change an order, but not in cart or checkout.

Sorry, but IMHO you're not making sense. Or confusing things. Or simply not telling the whole story. Don't know what else to say........


Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )

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

  • Posts: 41
  • Thank you received: 0
10 years 5 months ago #157891

Nevermind lousyfool, I see the kind of help I get from you.

Last edit: 10 years 5 months ago by Jovian.

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

  • Posts: 41
  • Thank you received: 0
10 years 5 months ago #157895

In case someone cal help me I have to clarify something.

When I say 'create an order' I mean 'start an order', which means that I never confirm it or pay for it, it is left unfinished.
I'm sorry if I caused some confusion.

Thanks

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

  • Posts: 2143
  • Thank you received: 747
10 years 5 months ago #157899

Aaah, now we have a clear view - thanks for posting that. And for returning to reasonable communication. ;)

FYI, you only "add to cart". As opposed to creating an order, which would be the case if you finished (!) the checkout process, and an order would be in the system, clearly indicated per email and order status "created", if not even "confirmed", depending on your config.

I meanwhile figured - triggered by a different topic here - that it can take at least two clicks onto the delete icon to remove an item from the cart after a user logged out and back in - and only for a registered user and after the log-out-and-back-in routine.

So, please double-check if a second click would do the trick for you as well. If so, you can tell from the other thread that support is already alerted, though it might take a while for them to react due to the distraction mentioned here at the top of the forum pages.

In any case, and as mentioned over there in the other thread, if you've been testing around a bit, there can always be some weird left-overs e.g. in your browser's cookies. Delete those from your own domain whatever it is, also clear caches, re-load your site and see if it cleaned anything up.


Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )

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

  • Posts: 41
  • Thank you received: 0
10 years 5 months ago #157916

Thank you for pointing me to another post with (most probably) the same issue I have
The double, triple and quadruple click didn't help me...

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
10 years 5 months ago #157904

Hi,

Lousyfool is confused as when an order is not yet checked out (so before you click on the "finish" button), it is called a "cart" and after that, it is called an "order".

Anyway, as mohamed guessed the first impression, reading your description, is that it is a caching issue. It could also be a problem if you have some caching turned on in the options of your joomla template (some template have that capability), or if you're using a CDN (like cloudflare).
Another possibility could be that there is a problem with the user session. You can try to change the "session handler" of the Joomla configuration to see if it helps.
Make sure that when you do your tests, you try with another user account/cart/browser just in case it would be some temporary user session glitch which actually doesn't happen for other users of the website.

Finally, if all that doesn't give any result, we would need to look at the problem directly on the website and in that case, we would need the link to your shop so that we can analyze a bit the situation and maybe we'll find additional information to help find a solution. Otherwise, we'll also need a FTP access in order to debug the problem.

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

Time to create page: 0.103 seconds
Powered by Kunena Forum