Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod Pro
- » MetaMod Pro General Support
- » Cart will not reset
Cart will not reset
Cart will not reset
Hi Stephen, I have a dilemma where if I place an order and I checkout I am taken to the Thank You Page (default page for Virtuemart)
I noticed that you helped a use that was having the same issue and I wanted to know if this was possible to help me in my situation? Currently after checkout, I notice that the cart still has the same items that were checked out in the cart. Its like the minicart at the top of the page is not resetting.
The link I found was http://www.metamodpro.com/forums/topic?id=727
and the script used was:
$vm = JomGenius("virtuemart"); // need this at the start of every rule
if ( $vm->check( "pagetype = frontpage"))
{
require_once(CLASSPATH.'ps_cart.php');
$ps_cart = new ps_cart;
$ps_cart->reset();
$_SESSION['savedcart']['idx']=0;
$ps_cart->saveCart();
}
I am not sure how I can use this script. Can you provide some info. I'll send you a private message for access to the site.
Re: Cart will not reset
Hi,
what version of Joomla and VM are you using? The code from that page was only for VM1.0 and I don't think I ever managed to get code to clear the cart on VM2.x. I'm sure it's possible… perhaps ask on the VM forums and someone there can probably help, who knows VM better.
Cheers,
Stephen
Re: Cart will not reset
Hi Stephen, the version that I am working on:
Joomla 2.5.19
Virtuemart 2.0.26
I sent you user access to the site by email.
I also accessed the forum for Virtuemart and I am still waiting on a response. So just in case there is no fix for this, I can use the fix you come up with, if possible.
- Index
- » MetaMod Pro
- » MetaMod Pro General Support
- » Cart will not reset
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5944
- Posts this week:
- 2
- User Info:
- Total Users:
- 7658
- Newest User:
- carre82601
- Members Online:
- 0
- Guests Online:
- 147
- Online:
- There are no members online
Forum Legend:
Topic
New
Locked
Sticky
Active
New/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky/Active/Locked