Author Topic: [fixed] 1.9.8.RC2G Cart product quantity does not update!  (Read 3341 times)

grtrustme

  • Beginner
  • *
  • Posts: 32
  • Perfection in your hands
[fixed] 1.9.8.RC2G Cart product quantity does not update!
« on: September 22, 2011, 02:36:30 am »
I m using Ubuntu OS, Apache Web Server with mod_rewrite. I am also using SEO friendly urls without index.php in my joomla 1.7.

When i am using SEO friendly urls some things react weirdly in virtuemart.

In my cart, i m trying to update the quantity in a product and first of all it calls a non-SEO friendly url and then redirects me to another non-SEO friendly url.
Ofcourse the update fails.

I tried to create the form action url in the file /components/com_virtuemart/views/cart/tmpl/default_pricelist.php (about line 164) with this
<form action="<?php echo JRoute::_('index.php?option=com_virtuemart&view=cart&task=update') ?>" method="post" style="display: inline;">

and it produces the error: 'Notice: Undefined index: update'

(if i change the task=update and put task=delete, it does not produce the error. It generates the SEO url correctly)

So i guess there is ALSO something wrong with the update action. Could you please have a look at it? Thank you.

grtrustme

  • Beginner
  • *
  • Posts: 32
  • Perfection in your hands
Re: 1.9.8.RC2G Cart product quantity does not update!
« Reply #1 on: September 22, 2011, 02:47:24 am »
As i saw, in the file /components/com_virtuemart/router.php there is NO reference to the update task. Only to the delete task. I added that, and the SEO url was generated successfully. But i don't know if it will work fine after that. I will try it.

grtrustme

  • Beginner
  • *
  • Posts: 32
  • Perfection in your hands
Re: 1.9.8.RC2G Cart product quantity does not update!
« Reply #2 on: September 22, 2011, 23:54:38 pm »
I downloaded the latest svn version, still in the router.php there is no reference for update. And still in the cart page, when i change the quantity of a product and press update, fails.

grtrustme

  • Beginner
  • *
  • Posts: 32
  • Perfection in your hands
Re: 1.9.8.RC2G Cart product quantity does not update!
« Reply #3 on: September 24, 2011, 00:27:04 am »
Fixed! Now the quantity gets updated successfully. But now there is another small problem. I will open a new topic about that.

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10040
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: 1.9.8.RC2G Cart product quantity does not update!
« Reply #4 on: September 26, 2011, 19:36:21 pm »
Thanks grtrustme,

We work on your reports, they are good, thank you for this. I just can say ACK, they are in the queque :-)
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

grtrustme

  • Beginner
  • *
  • Posts: 32
  • Perfection in your hands
Re: 1.9.8.RC2G Cart product quantity does not update!
« Reply #5 on: September 26, 2011, 23:11:40 pm »
It's me who should thank you for what you are doing in Virtuemart2.

Best best regards!