Author Topic: Wrong Product being added to cart  (Read 966 times)

AnnieG13

  • Jr. Member
  • **
  • Posts: 54
  • A beginner
Wrong Product being added to cart
« 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

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10114
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Wrong Product being added to cart
« Reply #1 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 
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10114
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Wrong Product being added to cart
« Reply #2 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...
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

AnnieG13

  • Jr. Member
  • **
  • Posts: 54
  • A beginner
Re: Wrong Product being added to cart
« Reply #3 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

AnnieG13

  • Jr. Member
  • **
  • Posts: 54
  • A beginner
Re: Wrong Product being added to cart
« Reply #4 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

AnnieG13

  • Jr. Member
  • **
  • Posts: 54
  • A beginner
Re: Wrong Product being added to cart
« Reply #5 on: December 12, 2020, 00:59:09 am »
Sorry forgot to add the image

AnnieG13

  • Jr. Member
  • **
  • Posts: 54
  • A beginner
Re: Wrong Product being added to cart
« Reply #6 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.

AnnieG13

  • Jr. Member
  • **
  • Posts: 54
  • A beginner
Re: Wrong Product being added to cart
« Reply #7 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

Jörgen

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3451
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: Wrong Product being added to cart
« Reply #8 on: December 12, 2020, 11:20:41 am »
Image, please.
Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

AnnieG13

  • Jr. Member
  • **
  • Posts: 54
  • A beginner
Re: Wrong Product being added to cart
« Reply #9 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

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10114
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Wrong Product being added to cart
« Reply #10 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?
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

AnnieG13

  • Jr. Member
  • **
  • Posts: 54
  • A beginner
Re: Wrong Product being added to cart
« Reply #11 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.

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 28116
  • Always on vacation
    • Jenkin Hill Internet
Re: Wrong Product being added to cart
« Reply #12 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.
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 3.8.9.10473 on Joomla 3.9.24 PHP 7.4.14

AnnieG13

  • Jr. Member
  • **
  • Posts: 54
  • A beginner
Re: Wrong Product being added to cart
« Reply #13 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

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10114
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Wrong Product being added to cart
« Reply #14 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
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation