Only first product appears in shopping cart for non registered shoppers

Started by spacecadet, June 20, 2013, 14:48:36 PM

Previous topic - Next topic

spacecadet

Hello

I have my store set up with two shopper groups. I also have it set up so that only registered users can purchase.

I would like non-registered users to be able to browse and add products to the cart, then register before check-out, or during check-out.

The problem I am seeing at the moment is that when a non registered shopper adds more than one product to the shopping basket, only the first product then displays in the basket itself.

Once the shopper goes ahead and registers, or signs in, all of the products are there in the basket. It is only prior to signing in that only one product, the first one added, appears.

If someone can offer any suggestions here it would be appreciated.

Thanks

jenkinhill

Quote from: spacecadet on June 20, 2013, 14:48:36 PM
I have my store set up with two shopper groups.

Do you need shopper groups? The only reason to use them is to use different prices for groups or different tax/discount rules. Most stores do not need to use shopper groups.

Quote
The problem I am seeing at the moment is that when a non registered shopper adds more than one product to the shopping basket, only the first product then displays in the basket itself..

Are you using a commercial template or template overrides? Do you mean the actual basket module or the actual checkout cart?
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

spacecadet

Thanks for your reply.

I need to use two shopping groups for two sets of prices.

I am using the commercial template which VM2 uses for it's demo store. I've recently installed the most recent version of this.

I guess I mean the actual basket module rather than the checkout cart. To clarify, its when you Add a Product to the shopping cart, then view the cart. This is where the problem lies. Once you log in and go through the check out process, the goods are all correctly shown.

Thanks again for any clues here...

AH

spacecadet

You really need to raise a ticket with the template providers, I guess they have written overrides to the shopping_cart module
Regards
A

Joomla 3.10.11
php 8.0

spacecadet

Thank you for your response.

However, the problem exists even when I turn the template off.

So the template provider is suggesting the problem lies elsewhere.

On the other hand, it seems to have begun occurring at the same time as changes made to jQuery settings to correct other issues with the template.

To re-state what is happening, with a little more detail. If you one product to cart as unregistered shopper, no problem. If you checkout, it asks you to register, takes you through, everything works a treat. But if instead of checking out, you keep shopping and adding more products to the cart, now the cart will only show the first product that was put in. If you then nevertheless go ahead and log in, everything re-appears in the cart, and everything works.

But now also: if you decide not to checkout, and instead delete all the products from your cart, so that cart is empty, everything is fine. But when you log out, the cart now still shows the first product added. Proceed to checkout, it's not there. Go shopping again, add another product, go to cart: still the same first product is there and cannot be budged.

I will go back talk to the template developer some more. Thanks for your inputs.

AH

Spacecadet

It sounds like soemthing to do with caching?  But I cannot tell you what really is the prob
Regards
A

Joomla 3.10.11
php 8.0

Milbo

he must be also aware that the normal shoppergroup is default AND anonymous.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

spacecadet

I think I understand the various shopper groups and how they work.

But I am very interested to ask please why you mention this?

Can you please be more specific?

What might it be in relation to the definition of shopper groups that might be causing the problem that I am seeing?

Thank you.

spacecadet

wait a moment please, i'll be back.....