VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: AnnieG13 on December 11, 2020, 17:40:17 PM

Title: Wrong Product being added to cart
Post by: AnnieG13 on December 11, 2020, 17:40:17 PM
Hi all,
I am in great need of help urgently.

I have had a website published for months now, and all of a sudden when you click to add a product to the cart, and go to see cart, VM is doing some very weird things.

First it was only adding one specific product not the one that was added. As you can see from my attachment, it was a featured item. So when I turned it off featured it did the following.

It adds 3 different products, and if you delete 1 product it deletes all of them and shows the one you added at the start.  >:( >:( >:(

Some strange stuff happening on this site. :'( :'(

I guess I really need to uninstall Virtuemart and do a fresh install, but I don't really want to have to re-create the products all again, is there a way to save them ? database table ? and put them back on after the reinstall?

Also the plugins for payment and shipping  :'( :'( will need to be reinstalled.

This close to Christmas I really need to fix this ASAP

Please help me. Has anyone else ever heard of this happening before?
Thanks Annie

www.puppylanetreats.com.au

VirtueMart 3.8.6
Joomla! 3.9.23
PHP Version  7.4.13
Title: Re: Wrong Product being added to cart
Post by: GJC Web Design on December 11, 2020, 18:47:21 PM
looks like u have some sort of caching on ..

I can add anything I like the first time to the cart but after that only that item ever shows up in the cart .. in this case Barkley Bites Big Bikkies

Turn ALL caching off on the site 
Title: Re: Wrong Product being added to cart
Post by: GJC Web Design on December 11, 2020, 18:49:46 PM
If I open a complete different clean browser I see the product from the other browser in the cart...
Title: Re: Wrong Product being added to cart
Post by: AnnieG13 on December 12, 2020, 00:47:04 AM
I will try that, I had the same problem with opening up in another browser too.
it's doing my head in, so you don't think I need to uninstall VM and reinstall then?
Thanks Annie
Title: Re: Wrong Product being added to cart
Post by: AnnieG13 on December 12, 2020, 00:58:27 AM
Hi GJC Web Design,
Well I turned off cashe to site (see image) but still have this problem, any idea what else can I try?

thanks Annie
Title: Re: Wrong Product being added to cart
Post by: AnnieG13 on December 12, 2020, 00:59:09 AM
Sorry forgot to add the image
Title: Re: Wrong Product being added to cart
Post by: AnnieG13 on December 12, 2020, 01:31:59 AM
Hi GJC,
Thanks for your advice about cashing, I think it is solved now, if you could check it for me I would appreciate it.

What i did was made sure cashe was off in the system, then noticed a post about Extensions / Plugins, find the System – Page Cache plugin and made sure it was off,
then I went to Extensions / Modules / VM - Featured products and then Advanced. I set Cashe to No, saved and looks like it is working as it should now.

I am sooo pleased, thanks again for your help.
Title: Re: Wrong Product being added to cart
Post by: AnnieG13 on December 12, 2020, 01:42:01 AM
Hi GJC,
One thing I have noticed is in between adding products there is no 'view cart' button. The only way to see what's in the cart is to add another product.

I am using the Protostar template.

Your advise on this would be invaluable, thanks
Annie
Title: Re: Wrong Product being added to cart
Post by: Jörgen on December 12, 2020, 11:20:41 AM
Image, please.
Jörgen @ Kreativ Fotografi
Title: Re: Wrong Product being added to cart
Post by: AnnieG13 on December 12, 2020, 14:18:38 PM
Hi Jorgen,
Sorry I have been very busy and just forgot about any images, etc.

Attached is an image and explanation on what's happening. Hope you can understand it.

So I have no Menu on VM pages, and no 'show/view cart' button to return to cart

Your help would be greatly appreciated.

Annie
Title: Re: Wrong Product being added to cart
Post by: GJC Web Design on December 12, 2020, 15:41:33 PM
cart is fine now

as your using Protostar for your VM pages you will have to clone and publish menu modules etc etc to the protostar positions
but their style will be completely different from your main site .. why not just use "default" for VM and the style will be picked up from your mx_joomla157 template?
Title: Re: Wrong Product being added to cart
Post by: AnnieG13 on December 13, 2020, 05:26:23 AM
Hi GJC,
So does the VM pages have the main menu and a "View Cart" button, as I still don't see them.

The reason I wasn't using the default template was because I didn't like the way it looked. I have had this site running for months now and was the same, but just now when I changed it over so I could take a screenshot, and it is like the rest of the site, totally unexpected.

It still doesn't have the  "View Cart" button, any idea why? the template is mx_joomla157.

Thanks for your help.
Title: Re: Wrong Product being added to cart
Post by: jenkinhill on December 13, 2020, 13:25:49 PM
Looks like you don't have a VM Shopping Cart module published?    You could add main menu item to the checkout/cart too.
Title: Re: Wrong Product being added to cart
Post by: AnnieG13 on December 14, 2020, 00:55:37 AM
Hi jenkinhill,
Thanks for that advice, I did have the cart published but the position wasn't set to the right place, is now and I have the 'show cart' showing.

Thanks Annie
Title: Re: Wrong Product being added to cart
Post by: GJC Web Design on December 14, 2020, 12:31:54 PM
if u don't like mx_joomla157 's cart display just rename the templates/mx_joomla157/html/com_virtuemart to something else and remove any css that is applied to VM and then you have the display of protostar .. protostar btw has no VM overides so as already mentioned u are just using the VM default displays