• Resolved crepetreedesigns

    (@crepetreedesigns)


    The plugin is not working after switching to Woocommerce Blocks Cart block. I previously had the Amount Free plugin working ok, however need some help to reinstate it into the Cart block.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Zohaib

    (@zohaibayub85)

    Hi,

    Are you using the cart block on a page other than the default WooCommerce cart page?

    In that case you can try and use the shortcode to display the message:

    [alg_wc_left_to_free_shipping content="%amount_left_for_free_shipping% left for free shipping"]

    Thread Starter crepetreedesigns

    (@crepetreedesigns)

    Hi, no it’s just the standard woocommerce cart page.

    Thread Starter crepetreedesigns

    (@crepetreedesigns)

    I found the following error in error_log:

    [23-Jun-2022 20:43:07 UTC] get_cart was called incorrectly. Get cart should not be called before the wp_loaded action. Backtrace: require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), WP_Hook->do_action, WP_Hook->apply_filters, vcvinit, VisualComposer\Application->init, vcevent, VisualComposer\Framework\Illuminate\Events\Dispatcher->fire, VisualComposer\Framework\Illuminate\Container\Container->call, VisualComposer\Modules\System\Ajax\Controller->VisualComposer\Helpers\Traits\{closure}, VisualComposer\Framework\Container->call, ReflectionMethod->invokeArgs, VisualComposer\Modules\System\Ajax\Controller->listenAjax, VisualComposer\Framework\Container->call, ReflectionMethod->invokeArgs, VisualComposer\Modules\System\Ajax\Controller->parseRequest, VisualComposer\Framework\Container->call, ReflectionMethod->invokeArgs, VisualComposer\Modules\System\Ajax\Controller->getResponse, vcfilter, VisualComposer\Framework\Illuminate\Filters\Dispatcher->fire, VisualComposer\Framework\Illuminate\Container\Container->call, VisualComposer\Modules\Elements\AjaxShortcode\Controller->VisualComposer\Helpers\Traits\{closure}, VisualComposer\Framework\Container->call, ReflectionMethod->invokeArgs, VisualComposer\Modules\Elements\AjaxShortcode\Controller->render, do_shortcode, preg_replace_callback, do_shortcode_tag, WC_Shortcodes::cart, WC_Shortcodes::shortcode_wrapper, WC_Shortcode_Cart::output, wc_get_template, include('/plugins/woocommerce/templates/cart/cart.php'), do_action('woocommerce_cart_collaterals'), WP_Hook->do_action, WP_Hook->apply_filters, woocommerce_cart_totals, wc_get_template, include('/plugins/woocommerce/templates/cart/cart-totals.php'), do_action('woocommerce_cart_totals_before_shipping'), WP_Hook->do_action, WP_Hook->apply_filters, Alg_WC_Left_To_Free_Shipping_Core->show_left_to_free_shipping_info_cart, Alg_WC_Left_To_Free_Shipping_Core->get_left_to_free_shipping, WC_Cart->is_empty, WC_Cart->get_cart, wc_doing_it_wrong. This message was added in version 2.3.

    Thread Starter crepetreedesigns

    (@crepetreedesigns)

    Hi, i’m getting closer to launch date and i would appreciate some help with this.

    Hello @crepetreedesigns,

    We’re sorry to know that you are having difficulties.

    I have escalated this with our development team. They will get back to you as soon as possible.

    Kind regards,
    Moshtafizur

    Plugin Contributor Pablo Pacheco

    (@karzin)

    Hi @crepetreedesigns ,

    As wp.org forums are very restrictive, can you please contact us on our forums page?

    Once you’re there please tell us what page builder you’re using. I have just tried with the WPBakery Page Builder plugin and it seems to be working fine.

    Hello @crepetreedesigns,

    I hope you are doing well and safe!

    We haven’t heard from you in a while, I’ll mark this thread as resolved.

    Feel free to let us know if you have any additional questions or problems.

    Best Regards
    Moshtafizur`

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Not working with Woocommerce Cart Block’ is closed to new replies.