Author Topic: Only first product appears in shopping cart for non registered shoppers  (Read 1865 times)

spacecadet

  • Beginner
  • *
  • Posts: 41
  • VirtueMart Version: 2.0.26d
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

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 28464
  • Always on vacation
    • Jenkin Hill Internet
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

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

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

Currently using VirtueMart 4.0.12 10777  J 3.10.11 PHP 7.4.30

spacecadet

  • Beginner
  • *
  • Posts: 41
  • VirtueMart Version: 2.0.26d
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

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3510
  • VirtueMart Version: 3.8.9
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.9.27
php 7.4

spacecadet

  • Beginner
  • *
  • Posts: 41
  • VirtueMart Version: 2.0.26d
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

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3510
  • VirtueMart Version: 3.8.9
Spacecadet

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

Joomla 3.9.27
php 7.4

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10530
  • VM4.0.7 Eagle Owl
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
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

  • Beginner
  • *
  • Posts: 41
  • VirtueMart Version: 2.0.26d
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

  • Beginner
  • *
  • Posts: 41
  • VirtueMart Version: 2.0.26d
wait a moment please, i'll be back.....