Child theme - woo.setup.php override not working

Hi,

I want to do some modifications in woo-setup.php, just uncommenting to hide nav bar when 0 items.
I have created function.php and style.css from your template, and activate child theme - working correctly.

I copied woo-setup.php to shapley-child/inc/woo-setup.php and do those changes, but it looks that still parent functions is executed instead of child. I have added some different echo to both parent and child just to be sure which is executed, and I have received message from parent.

Sould I modify functions.php somehow to execute proper woo-setup.php?
i have check in parent function calling of woocommerce:

/**
 * WooCoomerce Support
 */
if ( class_exists( 'WooCommerce' ) ) {
    require get_template_directory() . '/inc/woo-setup.php';
}

Should I override it in child functions.php somehow?

Hi @nephe,

I hope you are well today and thanks for posting here.

I could confirm the issue on my test site therefore notified the theme developer about this so that it will be fixed.

The issue will be fixed ASAP.

In the meanwhile you can try resolving the issue by changing the above shared code as following in the shapely theme.


/**
 * WooCoomerce Support
 */
if ( class_exists( 'WooCommerce' ) ) {
    require get_stylesheet_directory() . '/inc/woo-setup.php';
}

Best Regards,
Movin