Product successfully added (two times message problem)

Please post your issues and questions about One Page Checkout for Virtuemart 2 to this forum.

Product successfully added (two times message problem)

Postby admin » Sat May 12, 2012 9:09 pm

We debugged the problem with the latest Vm 2.0.6 which gives an option to disable ajax. We recommend to comment this line in \components\com_virtuemart\controllers\cart.php at around line 78. This is a Virtuemart 2.0.6 bug.

Original code:

Code: Select all
   if ($cart->add($virtuemart_product_ids,$success)) {
            $msg = JText::_('COM_VIRTUEMART_PRODUCT_ADDED_SUCCESSFULLY');
            $mainframe->enqueueMessage($msg);
            $type = '';
         
         } else {


please comment the line as below:
Code: Select all
   if ($cart->add($virtuemart_product_ids,$success)) {
            $msg = JText::_('COM_VIRTUEMART_PRODUCT_ADDED_SUCCESSFULLY');
            //$mainframe->enqueueMessage($msg);
            $type = '';
         
         } else {


This will add the message only once.
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm

Return to One Page Checkout for Virtuemart 2

cron