rene
Forum Replies Created
- AuthorPosts
rene
ParticipantThis is exactly our problem
Delivery time is only displayed in the invoice but not in the e-mail for new customer orders that go to the customer and branchrene
ParticipantThis reply has been marked as private.rene
ParticipantHello Alex,
If I comment out line 83 in “class-lafka-shipping-areas.php” then I can call up the shopping cart and the products are also visible in the shopping cart, even if I only comment out lines 425 – 432
/*public static function clear_wc_shipping_rates_cache() {
if ( isset( WC()->cart ) ) {
$packages = WC()->cart->get_shipping_packages();
foreach ( $packages as $package_key => $package ) {
WC()->session->set( ‘shipping_for_package_’ . $package_key, false ); // Or true
}
}
}*/
it works and the products are also in the shopping cart visible. However, when I put it back to its original state, there are no products in the shopping cart. I do not understand that entirely.Regards,
Renerene
ParticipantDo you need any login details?
rene
ParticipantHello,
Haven’t heard from Alex yetrene
ParticipantHow to fix the problem now?
This is in class-lafka-shipping-areas.php filerene
ParticipantLocal Delivery Drivers for WooCommerce” plugin support looked at your plugin why cart is always empty.
Here what you wrote what the problem is.
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, WooCommerce->init, do_action(‘woocommerce_init’), WP_Hook->do_action, WP_Hook->apply_filters, LDDFW_Admin->lddfw_shipping_settings__premium_only, WooCommerce->__get, WooCommerce->shipping, WC_Shipping::instance, WC_Shipping->__construct, WC_Shipping->init, do_action(‘woocommerce_shipping_init’), WP_Hook->do_action, WP_Hook->apply_filters, Lafka_Shipping_Areas::clear_wc_shipping_rates_cache, WC_Cart->get_shipping_packages, WC_Cart->get_items_needing_shipping, WC_Cart->get_cart, wc_doing_it_wrong. This message was added in version 2.3.This is the function:
public static function clear_wc_shipping_rates_cache() {
if ( isset( WC()->cart ) ) {
$packages = WC()->cart->get_shipping_packages();
foreach ( $packages as $package_key => $package ) {
WC()->session->set( ‘shipping_for_package_’ . $package_key, false ); // Or true
}
}
}rene
ParticipantBut why isn’t it working for me?
I have the Lafka version: 4.3.4rene
ParticipantThis reply has been marked as private.rene
ParticipantI have exactly the same problem
After saving, the slots will shift.
Now you have to drag the slots to the right place again, save again and from now on you can’t change it anymore, otherwise it will move again that’s an interim solution that I found outrene
ParticipantI contacted the support of Local Delivery Drivers for WooCommerce” plugin they looked at it and wrote me the following
We had an issue with the lafka theme and their plugin before the error then was:
get_cart was called incorrectly, Get cart should not be called before the wp_loaded action
Now I don’t know how to change that
rene
ParticipantGood day
I was in contact with Local Delivery Drivers for WooCommerce plugin support. You wrote that
We had an issue with the lafka theme and their plugin before the error then was:get_cart was called incorrectly, Get cart should not be called before the wp_loaded action
How can you change that
rene
ParticipantWe changed it new to PHP 7.4
rene
ParticipantThis reply has been marked as private.rene
ParticipantThis reply has been marked as private.- AuthorPosts