VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: spacecadet on June 20, 2013, 14:48:36 PM

Title: Only first product appears in shopping cart for non registered shoppers
Post by: spacecadet on June 20, 2013, 14:48:36 PM
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
Title: Re: Only first product appears in shopping cart for non registered shoppers
Post by: jenkinhill on June 20, 2013, 15:21:55 PM
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?
Title: Re: Only first product appears in shopping cart for non registered shoppers
Post by: spacecadet on June 21, 2013, 07:40:07 AM
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...
Title: Re: Only first product appears in shopping cart for non registered shoppers
Post by: AH on June 21, 2013, 10:40:01 AM
spacecadet

You really need to raise a ticket with the template providers, I guess they have written overrides to the shopping_cart module
Title: Re: Only first product appears in shopping cart for non registered shoppers
Post by: spacecadet on June 26, 2013, 14:20:56 PM
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.
Title: Re: Only first product appears in shopping cart for non registered shoppers
Post by: AH on June 26, 2013, 15:18:44 PM
Spacecadet

It sounds like soemthing to do with caching?  But I cannot tell you what really is the prob
Title: Re: Only first product appears in shopping cart for non registered shoppers
Post by: Milbo on June 27, 2013, 13:20:46 PM
he must be also aware that the normal shoppergroup is default AND anonymous.
Title: Re: Only first product appears in shopping cart for non registered shoppers
Post by: spacecadet on June 27, 2013, 13:50:56 PM
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.
Title: Re: Only first product appears in shopping cart for non registered shoppers
Post by: spacecadet on July 01, 2013, 15:30:11 PM
wait a moment please, i'll be back.....