I’m creating another site with XStore theme, and I need redeclare same functions. However, I found that many functions are in plugin the et-core-plugin.
There is a code for the possibility of redeclare:
“if ( ! function_exists( ‘etheme_catalog_setup’ ) ) …”
But it is completely useless!!! Why did they put it there?
Plugins load rather than functions.php from the child theme! Redeclare is therefore complicated – just create plugin that is load before et-core-plugin (and mu-plugins is not the right way to go).
Redeclare over a child theme is not possible at all!
This is not a good job…
Please inform the developers. et-core-plugin is not a good way.
etheme_catalog_setup function is located in the xstore/framework/woo.php (line 747) and you are able to change it using child theme and it will work.
ThemeForest has a number of requirements to submit theme for selling, We have created XStore Core plugin only because of the ThemeForest requirements and moved all the functions and options that couldn’t be placed directly in theme according to these requirements.
What function from the XStore core plugin do you want to redeclare? Tell us and maybe we’ll find some workaround for you.
Hm… that function is ok, but I need redeclare function “etheme_cart_quantity” – /et-core-plugin/app/models/customizer/functions.php on line 6419. There are many useful functions that cannot be redeclare in child theme… :-/
Could you tell us what exactly do you want to change in that function? Maybe we’ll be able to add some filters in the core plugin. Because unfortunately, we can’t move the mentioned functions to the theme.
You must be logged in to reply to this topic.Log in/Sign up
One standard license is valid only for 1 project. Running multiple projects on a single license is a copyright violation.