theme crashes due to badge
-
hi. whenever i enable to show on-sale badge my theme crashes
[01-Jul-2024 08:56:04 UTC] PHP Fatal error: Uncaught TypeError: Unsupported operand types: string - string in domains/domain/public_html/wp-content/themes/ecomm/framework/class-woo.php:549
Stack trace:
#0 domains/domain/public_html/wp-content/themes/ecomm/framework/class-woo.php(583): Ecomm_Woo->get_product_price_saving_percentage()
#1 domains/domain/public_html/wp-content/themes/ecomm/woocommerce/loop/sale-flash.php(37): Ecomm_Woo->get_product_sale_badge_text()
#2 domains/domain/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include('/home/u90118019...')
#3 domains/domain/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php(1439): wc_get_template()
#4 domains/domain/public_html/wp-content/themes/ecomm/woocommerce/content-product-grid-08.php(54): woocommerce_show_product_loop_sale_flash()
#5 domains/domain/public_html/wp-includes/template.php(812): require('/home/u90118019...')
#6 domains/domain/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(284): load_template()
#7 domains/domain/public_html/wp-content/themes/ecomm/woocommerce/archive-product.php(91): wc_get_template_part()
#8 domains/domain/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include('/home/u90118019...')
#9 domains/domain/public_html/wp-content/plugins/woocommerce/templates/taxonomy-product-cat.php(22): wc_get_template()
#10 domains/domain/public_html/wp-includes/template-loader.php(106): include('/home/u90118019...')
#11 domains/domain/public_html/wp-blog-header.php(19): require_once('/home/u90118019...')
#12 domains/domain/public_html/index.php(17): require('/home/u90118019...')
#13 {main}
thrown in domains/domain/public_html/wp-content/themes/ecomm/framework/class-woo.php on line 549
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.