Trigger onBeforeSaveCategory

18.08.2015 11:48
#1
JPNeumann
Joomshopping forum user no avatar
Name: Neumann
17.08.2011
Posts: 18
Quote
Trigger onBeforeSaveCategory

I wrote a plugin to copy and translate category automaticly (google translator api). It seems, that trigger onBeforeSaveCategory in controller categories.php function save() is on wrong possition. After trigger are many code before really saving.
It's not possible to manipulate (short-)description because writing after trigger.
Coud you check this?


JoomShopping: 4.10.4
 
19.08.2015 07:51
#2
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 16513
Quote
Aw: Trigger onBeforeSaveCategory

Will be in new version

$dispatcher->trigger('onBeforeStoreCategory', array(&$post, &$category));


Before

if (!$category->store()) {
JError::raiseWarning("",_JSHOP_ERROR_SAVE_DATABASE);
$this->setRedirect("index.php?option=com_jshopping&controller=categories");
return 0;
}

 
24.08.2015 14:02
#3
JPNeumann
Joomshopping forum user no avatar
Name: Neumann
17.08.2011
Posts: 18
Quote
Aw: Trigger onBeforeSaveCategory

Excellent! Thank you!

 
Copyrights MAXXmarketing GmbH. All Rights Reserved