Trigger onBeforeSaveCategory

18.08.2015 11:48
#1
JPNeumann
Joomshopping forum user no avatar
Name: Neumann
17.08.2011
Posts: 19
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
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25918
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: 19
Quote
Aw: Trigger onBeforeSaveCategory

Excellent! Thank you!

 


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.