You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
the "replace_template" function in the "frontend.php" file does not seem to consider the existence of child themes.
I think it should be changed as follows:
public function replace_template($template)
{
// see if tempalte exists in the theme child
$template = locate_template('woocommerce/password-form.php');
if (empty($template)) {
// if no, use theme template
$template = get_template_directory() . '/woocommerce/password-form.php';
}
if (empty($template)) {
// otherwise use default plugin template
$template = WCL_PLUGIN_DIR . '/templates/password-form.php';
}
return $template;
}
What do you think about it?
Thank you
Marco
The text was updated successfully, but these errors were encountered:
Hi,
the "replace_template" function in the "frontend.php" file does not seem to consider the existence of child themes.
I think it should be changed as follows:
What do you think about it?
Thank you
Marco
The text was updated successfully, but these errors were encountered: