VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: WebSoft on July 01, 2012, 22:06:24 PM

Title: Frontend editing
Post by: WebSoft on July 01, 2012, 22:06:24 PM
Hi - anybody got the frontend editing to save anything  ???

I have Joomla 2.5.4 and VM 2.0.6 and PHP 5.3.1
And testet it on VM 2.0.8

Tried with Imac, Win7, Win XP - Opera, safari, chrome, IE and Firefox
When i click "save" - jumps to VM home - and nothing gets saved !

Somebody solved this ???
Title: Re: Frontend editing
Post by: Milbo on July 01, 2012, 22:10:07 PM
Frontend editing is not done yet. We also do not list it as feature, sorry. But of course, when someone finds what todo and posts the code, we will integrate it.
Title: Re: Frontend editing
Post by: WebSoft on July 01, 2012, 22:31:04 PM
Thx - just looks very ready - looking forward to this feature  :D
Title: Re: Frontend editing
Post by: gain on July 26, 2012, 12:59:35 PM
Quote from: WebSoft on July 01, 2012, 22:06:24 PM
Hi - anybody got the frontend editing to save anything  ???

I have Joomla 2.5.4 and VM 2.0.6 and PHP 5.3.1
And testet it on VM 2.0.8

Tried with Imac, Win7, Win XP - Opera, safari, chrome, IE and Firefox
When i click "save" - jumps to VM home - and nothing gets saved !

Somebody solved this ???

Hi!

If you really need it, you can change line 63 in components/com_virtuemart/virtuemart.php

if ($task == 'save') $app->redirect('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id='.JRequest::getInt('virtuemart_product_id') );

with something like

if ($task == 'saveNOREDIRECT') $app->redirect('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id='.JRequest::getInt('virtuemart_product_id') );


Just make the if not to enter for the save task, so when you click the save button he don't redirect you to the productdetails, but to the save method of the admin area.

Dunno why they redirect away...
Hope it helps without breaking smth...

PS: Updates overwrite the mod...
Title: Re: Frontend editing
Post by: un10cked on October 06, 2012, 06:44:13 AM
Quote from: gain on July 26, 2012, 12:59:35 PM
Quote from: WebSoft on July 01, 2012, 22:06:24 PM
Hi - anybody got the frontend editing to save anything  ???

I have Joomla 2.5.4 and VM 2.0.6 and PHP 5.3.1
And testet it on VM 2.0.8

Tried with Imac, Win7, Win XP - Opera, safari, chrome, IE and Firefox
When i click "save" - jumps to VM home - and nothing gets saved !

Somebody solved this ???

Hi!

If you really need it, you can change line 63 in components/com_virtuemart/virtuemart.php

if ($task == 'save') $app->redirect('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id='.JRequest::getInt('virtuemart_product_id') );

with something like

if ($task == 'saveNOREDIRECT') $app->redirect('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id='.JRequest::getInt('virtuemart_product_id') );


Just make the if not to enter for the save task, so when you click the save button he don't redirect you to the productdetails, but to the save method of the admin area.

Dunno why they redirect away...
Hope it helps without breaking smth...

PS: Updates overwrite the mod...

Thanks for the solution

Tried this yesterdayon 2010 but didnt work. Would you have any idea why? :)
Title: Re: Frontend editing
Post by: bytelord on October 06, 2012, 15:13:28 PM
Hello,

You can try version 2.0.12 which frontend editing is working. Take a look on the feautures and don't forget to update your template overrides changes: http://virtuemart.net/news/list-all-news/426-end-of-life-for-virtuemart-11-heidelpay-now-in-virtuemart-2012

Regards