简体   繁体   English

的joomlatancemart添加新的类别代码位置

[英]joomla virtuemart adding new category code location

This is regarding virtuemart 2.0. 这是关于containermart 2.0。 A new row is inserted into the prefix_virtuemart_categories table when a new category is added. 添加新类别后,会将新行插入prefix_virtuemart_categories表中。 where is this query executed?.ie,in which file(models/controllers...) . 该查询在哪里执行?.ie,在哪个文件(模型/控制器...)中。 I want to do something after a new category is added .Please help me. 添加新类别后,我想做点什么。请帮助我。

You can check it by going to the your com_virtuemart component.Here's the navigation from where you category will save it to the database. 您可以通过转到com_virtuemart组件进行检查。这里是您进行分类的导航,将其保存到数据库中。

Joomla site -> administrator -> components -> com_virtuemart ->controllers ->category.php Joomla网站->管理员->组件-> com_virtuemart->控制器-> category.php

Open this file and you can see there is one function called save() ,that is what you want .You can do what else you want here.Good luck. 打开此文件,您会看到有一个名为save()函数,这就是您想要的。您可以在此处执行其他操作。祝您好运。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM