News:

Looking for documentation? Take a look on our wiki

Main Menu

Re: New pre subrelease VirtueMart 2.0.1 (with j2.5)

Started by Twix, January 25, 2012, 21:19:36 PM

Previous topic - Next topic

Twix

#15
Nice!!

I've fixed the paymentmethod edit and add. Replace the code from the previous post with this:

   /**
    * Handle the edit task
    * Still in alpha!
    *
     * @author Twentronix
    */
   function edit(){
      $app  = JFactory::getApplication();
      $task = JRequest::getCmd('task');
      $cid  = JRequest::getVar( 'cid', array(0), '', 'array' );
      $id   = (int)$cid[0];
      
      $link = 'index.php?option=com_virtuemart&view='.'paymentmethod'.'&layout=edit';
      if ($id != null){
         $link = $link.'&cid[]='.$id;
      }
      $app->redirect($link, $msg);
   }

I'm not sure if this is the best way to fix it, but it works :)

Milbo

But it works in j1.7.x and in j1.5.

We have first to understand what they do different in j2.5 and then we will change the vmcontroller.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

capricornio

Milbo,

This error is also happening when I want to add/edit a manufacturer, manuf. category, coupons etc. So it's definitely in the vmcontroller.
Any idea when you have an updated release ? VM is pretty useless when you can't configure your shop and I guess the majority will move from Joomla 1.7 to 2.5 very soon

Thnx

Twix


jenkinhill

capricornio, have you been reading this other thread?  http://forum.virtuemart.net/index.php?topic=96983.msg319924#msg319924

I disagree that the majority will move to 2.5 very soon. Most will wait to see if it is fully functional first. After all, most VM2 users have installed it on J1.5 as they feel safer.....
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

maxi1973

Joomla 1.7 will be no more developed since April 2012 ... a lot of users is running to joomla 2.5.
I suppose it's too early to run, let's start walking, it's too soon to april  :D

I suppose, at least, in march we will have a more stable version of joomla so VM developers may study a stable too version for all users. (sorry for english)

NO PANIC, NO PANIC!!!

Milbo

hahahha

We already have stuff implement other need todo now, for example we have name=adminForm AND id=adminForm already. I am quite sure j2.5 is great, simular to vm2.0.0 not completly matured.... even they have a lot j1.5 code and we not vm1.1 code. I think j2.5.3 or so will be really great and stable.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

jenkinhill

#22
Yeah, it looks like the rushed out J2.5.1 update (in 48 hrs time) still won't have all issues resolved. ( https://groups.google.com/forum/#!topic/joomlabugsquad/4RLnsIvDCVY) I'll probably now wait for 2.5.2 at least......
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum