Getting Fatal Error in WordPress WooCommerce theme “Call to undefined function wc_get_theme_slug_for_templates()”

theme Menu

Hello,

  • I am new in wordpress.
  • I am trying to make ecommerce site in worpress.
  • I have used plugin “WooCommerce” and a woocommerce website theme.

My WooCommerce Theme Menu Bar look like:

All links of theme menu working except shop and I am getting this error at the end of “Shop” page:

Error Description:

Fatal error: Uncaught Error: Call to undefined function
wc_get_theme_slug_for_templates() in
C:xampphtdocswordpress2wp-contentthemesvw-ecommerce-shopwoocommerceglobalwrapper-end.php:23
Stack trace: #0
C:xampphtdocswordpress2wp-contentpluginswoocommerceincludeswc-core-functions.php(195):
include() #1
C:xampphtdocswordpress2wp-contentpluginswoocommerceincludeswc-template-functions.php(400):
wc_get_template(‘global/wrapper-…’) #2
C:xampphtdocswordpress2wp-includesclass-wp-hook.php(286):
woocommerce_output_content_wrapper_end(”) #3
C:xampphtdocswordpress2wp-includesclass-wp-hook.php(310):
WP_Hook->apply_filters(”, Array) #4
C:xampphtdocswordpress2wp-includesplugin.php(453):
WP_Hook->do_action(Array) #5
C:xampphtdocswordpress2wp-contentthemesvw-ecommerce-shopwoocommercearchive-product.php(110):
do_action(‘woocommerce_aft…’) #6
C:xampphtdocswordpress2wp-includestemplate-loader.php(74):
include(‘C:xampphtdocs…’) #7
C:xampphtdocswordpress2wp-blog-header.php(19): in
C:xampphtdocswordpress2wp-contentthemesvw-ecommerce-shopwoocommerceglobalwrapper-end.php
on line 23

Please help to resolve this issue.

Thanks!

Read more here:: Getting Fatal Error in WordPress WooCommerce theme “Call to undefined function wc_get_theme_slug_for_templates()”

Leave a Reply

Your email address will not be published. Required fields are marked *