VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: gringo211985 on December 17, 2012, 11:44:26 AM

Title: Cart not emptying after order [SOLVED]
Post by: gringo211985 on December 17, 2012, 11:44:26 AM
As the title says my cart will not empty after I make an order, I really need to fix this as this is holding up the creation of the site.

Please can someone help me?

I am using the latest version of VM and Joomla 2.5 with all latest updates. Let me know if you need more info.
Title: Re: Cart not emptying after order
Post by: Milbo on December 17, 2012, 11:46:36 AM
you use the latest version of vm?`
I dont know if you mean 2.0.14 or 2.0.15d
Title: Re: Cart not emptying after order
Post by: gringo211985 on December 17, 2012, 11:48:37 AM
Hi there, sorry it's 2.0.14
Title: Re: Cart not emptying after order
Post by: gringo211985 on December 17, 2012, 12:12:59 PM
Just a few more bits of info to add,

I just checked my orders and all (even though paid for) are "pending" and when I try to update to "confirmed" then I get the following message,

Info: Attention, #__virtuemart_payment_plg_paypal has not any entry for the order
Title: Re: Cart not emptying after order
Post by: Milbo on December 17, 2012, 13:08:33 PM
In this case, please tell me the history of your installation. Did you migrate from vm1.1? Did you update it from 2.0.x to 2.0.14?
Title: Re: Cart not emptying after order
Post by: gringo211985 on December 17, 2012, 14:00:24 PM
Hi there,

Yes I updated from VM 2.0.08 to the latest 2.0.14

Could this be the reason for the problem?
Title: Re: Cart not emptying after order
Post by: Milbo on December 17, 2012, 14:21:02 PM
It should not, but it could, yes. Please enable vmdebug, check your plugins. I have not really a clue, except that something is broken, for example a shipment or payment plugin, interrupting the confirm process and therefore the cart is not emptied. Maybe you use some extension not compatible to 2.0.14.
Title: Re: Cart not emptying after order
Post by: gringo211985 on December 17, 2012, 14:29:24 PM
Hi there,

I have turned "debug" on in the VM component, I have also checked that my plugins are all enabled.

How do I view the information from the debug?

Could this be a VM caching problem? I have the VM SEO on and was wondering if a cache could be causing the problems.
Title: Re: Cart not emptying after order
Post by: gringo211985 on December 17, 2012, 14:48:05 PM
This is the debug message I get after making a purchase,

vmdebug self::$_jpConfig->lang en_gb
vmdebug vmTime: loadConfig db no: 0.0032789707183838
vmdebug Start used Ram 12.5M
vmdebug vmTime: VirtuemartControllerPluginresponse Finished task pluginresponsereceived: 0.17656421661377
vmdebug End used Ram 18.25M
vmdebug Peak memory peak 18.25M

This is a debug message that I got after making some changes to the paypal plugin config,

vmdebug self::$_jpConfig->lang en_gb
vmdebug vmTime: loadConfig db no: 0.003248929977417
vmdebug selectedThis $name paypal does not fit pluginname standard
vmdebug selectedThis $name paypal does not fit pluginname payzen
vmdebug selectedThis $name paypal does not fit pluginname systempay
vmdebug selectedThis $name paypal does not fit pluginname authorizenet
vmdebug bindChecknStoreNoLang my $tblKey virtuemart_paymentmethod_id 1
vmdebug self::$_jpConfig->lang en_gb
vmdebug vmTime: loadConfig db no: 0.0032072067260742
vmdebug selectedThis $name paypal does not fit pluginname standard
vmdebug selectedThis $name paypal does not fit pluginname payzen
vmdebug selectedThis $name paypal does not fit pluginname systempay
vmdebug selectedThis $name paypal does not fit pluginname authorizenet

Not sure if this is of any use at all, but I really need to fix this problem because it's the only thing holding up the launch of the site.
Title: Re: Cart not emptying after order
Post by: gringo211985 on December 17, 2012, 14:50:49 PM
This is the debug message I got after trying to manually confirm the order,

Info: Attention, #__virtuemart_payment_plg_paypal has not any entry for the order
Info: Attention, #__virtuemart_payment_plg_paypal has not any entry for the order
Info: Attention, #__virtuemart_payment_plg_paypal has not any entry for the order
Info: Attention, #__virtuemart_payment_plg_paypal has not any entry for the order

Could it be that there is something wrong with my payment processing and the reason for the cart not emptying would be a result of VM thinking that I have not been paid?
Title: Re: Cart not emptying after order
Post by: gringo211985 on December 17, 2012, 15:56:28 PM
I have been doing a lot of searching in my backend and through forums and I noticed something that may be the reason why the cart is not emptying.

When I make a purchase the order status remains "pending" until I manually confirm, perhaps the cart is not emptying because VM thinks the transaction is not complete.

Please help me as this is really frustrating and I have no idea what's wrong.
Title: Re: Cart not emptying after order
Post by: gringo211985 on December 17, 2012, 17:19:36 PM
YES PROBLEM SOLVED!!!!!

Here's how I did it,

login to admin area of my site
components/virtuemart-aio
update both of the settings including the VM plugin tables

That's it, made another test order and it went through and has emptied my cart! I really hope this helps all the other people with this problem.
Title: Re: Cart not emptying after order [SOLVED]
Post by: Milbo on December 17, 2012, 19:13:57 PM
:-) nice,

yepp, you just forgot to update the aio. and yes this posts help often people with similar problems if they use a search engine.