Enabling Sales badge on single product page crashing the site

3 replies3 participantsUpdated by Andrew Mitchell

XStore documentationProduct badges in XStore: Sale, New, Hot and Out of stock
  • Avatar: anoop
    anoop
    Participant

    I see below error when enabling sales badge. The product is configured with sale price.

    Error:

    ₹699.00 Original price was: ₹699.00.₹599.00Current price is: ₹599.00.

    There has been a critical error on this website.

    Learn more about troubleshooting WordPress.

    Debug log:

    #0 /home/user/domains/sitename.com/public_html/dev/wp-content/plugins/et-core-plugin/app/controllers/elementor/theme-builder/woocommerce/single-product/product-price.php(340): ETC\App\Controllers\Elementor\Theme_Builder\WooCommerce\Single_Product\Product_Price->render_sale_price_badge_block()
    #1 /home/user/domains/sitename.com/public_html/dev/wp-content/plugins/elementor/includes/base/controls-stack.php(2374): ETC\App\Controllers\Elementor\Theme_Builder\WooCommerce\Single_Product\Product_Price->render()
    #2 /home/user/domains/sitename.com/public_html/dev/wp-content/plugins/elementor/includes/base/widget-base.php(636): Elementor\Controls_Stack->render_by_mode()
    #3 /home/user/domains/sitename.com/public_html/dev/wp-content/plugins/elementor/includes/base/widget-base.php(774): Elementor\Widget_Base->render_content()
    #4 /home/user/domains/sitename.com/public_html/dev/wp-content/plugins/elementor/includes/base/element-base.php(494): Elementor\Widget_Base->print_content()
    #5 /home/user/domains/sitename.com/public_html/dev/wp-content/plugins/elementor/modules/element-cache/module.php(71): Elementor\Element_Base->print_element()
    #6 /home/user/domains/sitename.com/public_html/dev/wp-includes/shortcodes.php(434): Elementor\Modules\ElementCache\Module->Elementor\Modules\ElementCache\{closure}()
    #7 [internal function]: do_shortcode_tag()
    #8 /home/user/domains/sitename.com/public_html/dev/wp-includes/shortcodes.php(273): preg_replace_callback()
    #9 /home/user/domains/sitename.com/public_html/dev/wp-content/plugins/elementor/core/base/document.php(1888): do_shortcode()
    #10 /home/user/domains/sitename.com/public_html/dev/wp-content/plugins/pro-elements/modules/theme-builder/documents/theme-document.php(466): Elementor\Core\Base\Document->print_elements()
    #11 /home/user/domains/sitename.com/public_html/dev/wp-content/plugins/elementor/includes/frontend.php(1223): ElementorPro\Modules\ThemeBuilder\Documents\Theme_Document->print_elements_with_wrapper()
    #12 /home/user/domains/sitename.com/public_html/dev/wp-content/plugins/elementor/core/base/document.php(1269): Elementor\Frontend->get_builder_content()
    #13 /home/user/domains/sitename.com/public_html/dev/wp-content/plugins/elementor/modules/library/documents/library-document.php(82): Elementor\Core\Base\Document->get_content()
    #14 /home/user/domains/sitename.com/public_html/dev/wp-content/plugins/pro-elements/modules/theme-builder/documents/theme-document.php(167): Elementor\Modules\Library\Documents\Library_Document->get_content()
    #15 /home/user/domains/sitename.com/public_html/dev/wp-content/plugins/pro-elements/modules/theme-builder/documents/theme-document.php(182): ElementorPro\Modules\ThemeBuilder\Documents\Theme_Document->get_content()
    #16 /home/user/domains/sitename.com/public_html/dev/wp-content/plugins/pro-elements/modules/theme-builder/documents/single-base.php(100): ElementorPro\Modules\ThemeBuilder\Documents\Theme_Document->print_content()
    #17 /home/user/domains/sitename.com/public_html/dev/wp-content/plugins/pro-elements/modules/woocommerce/documents/product.php(136): ElementorPro\Modules\ThemeBuilder\Documents\Single_Base->print_content()
    #18 /home/user/domains/sitename.com/public_html/dev/wp-content/plugins/pro-elements/modules/theme-builder/classes/locations-manager.php(438): ElementorPro\Modules\Woocommerce\Documents\Product->print_content()
    #19 /home/user/domains/sitename.com/public_html/dev/wp-content/plugins/pro-elements/modules/theme-builder/classes/locations-manager.php(314): ElementorPro\Modules\ThemeBuilder\Classes\Locations_Manager->do_location()
    #20 [internal function]: ElementorPro\Modules\ThemeBuilder\Classes\Locations_Manager->ElementorPro\Modules\ThemeBuilder\Classes\{closure}()
    #21 /home/user/domains/sitename.com/public_html/dev/wp-content/plugins/elementor/modules/page-templates/module.php(205): call_user_func()
    #22 /home/user/domains/sitename.com/public_html/dev/wp-content/plugins/elementor/modules/page-templates/templates/header-footer.php(19): Elementor\Modules\PageTemplates\Module->print_content()
    #23 /home/user/domains/sitename.com/public_html/dev/wp-includes/template-loader.php(132): include('/home/u55746941...')
    #24 /home/user/domains/sitename.com/public_html/dev/wp-blog-header.php(19): require_once('/home/u55746941...')
    #25 /home/user/domains/sitename.com/public_html/dev/index.php(17): require('/home/u55746941...')
    #26 {main}
      thrown in /home/user/domains/sitename.com/public_html/dev/wp-content/plugins/et-core-plugin/app/controllers/elementor/theme-builder/woocommerce/single-product/product-price.php on line 351

    3 Answers

    Avatar: Ayan Rahman
    Ayan Rahman
    Support staff

    Hi,

    Thank you for reaching out to us.

    Could you please provide URL, temporary wp-admin, and FTP access? We will check what can be done to help you.
    To grant WP-Admin access, please proceed to create a new user account with an administrator role through your WordPress Dashboard. Once the account is established, you may securely transmit the username and password to us via the Private Content section designated for this purpose.

    For FTP access, we require the following details: FTP host, FTP username, FTP password, FTP port, and FTP encryption type. If you need assistance in creating these credentials, please reach out to your hosting provider who will guide you through the process.

    Warm Regards,
    The 8Theme Team

    Avatar: anoop
    anoop
    Participant

    Here is the details

    Please contact administrator
    for this information.
    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff

    Hello, anoop,

    There are several possible reasons for this issue.

    It most commonly occurs in the following cases:
    – A variable product where prices are set for variations but not for the parent product;
    – A product with a sale price but no regular price;
    – A product with a regular price of 0;
    – An imported product with incorrect price metadata.

    Please check the points mentioned above, and if the issue persists, kindly send us a link to the product with the error.

    Best regards,
    8Theme’s Team

Want to reply? Log in, or register with your ThemeForest purchase code, to reply to this topic.

Login / Register