Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.

helpme

 

Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.

 

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.

kdmonk1
Beginner Modder
ranks
useravatar
Offline
7 Posts
Administrator has disabled public posting

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

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3313 Posts
User info in posts
Administrator has disabled public posting

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.

kdmonk1
Beginner Modder
ranks
useravatar
Offline
7 Posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1679
Total Polls:
6
Total Posts:
5913
Dormant:
User Info:
 
Total Users:
10778
Newest User:
negina4qx
Members Online:
0
Guests Online:
141

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