Hello, i'm writing my first custom addons and i've a question…
can i call external function (for example fn_get_seo_vars() in seo addon from my custom addon?
it seems generate 500 internal server error :-/
thanks
AM
Take a look at the Advanced Addon Tutorial in the CS-Cart Developers Docs for utilizing hooks.
http://docs.cs-cart.com/advanced-addon-tutorial
Hello, thank you i read enought the documentation but my problem is when i call external function inside a hook function
init.php
fn_register_hooks(
'get_route'
);
func.php
```php
function fn_my_addon_get_route(& $req)
{
$rewrite_rules = fn_get_rewrite_rules(); //defined in /addons/seo/func.php
}
?>
```
this code generate Fatal error: Call to undefined function fn_get_rewrite_rules() in path…
but that function exists and is defined in /addons/seo/func.php ok? why?
thanks