[Plugin: WooCommerce – excelling eCommerce] Checkout Error.
-
Hello, When I set a quantity for my products on woocommerce and add the full quantity to the cart I get the message in the cart that says ‘Sorry, we do not have enough “Item name” in stock to fulfill your order right now. Please try again in 60 minutes or edit your cart and try again. We apologise for any inconvenience caused. That is good but then when I go to the checkout I get this error:
Fatal error: Call to a member function show_messages() on a non-object in /home1/myname/public_html/wp-content/themes/Avada/woocommerce/checkout/cart-errors.php on line 14
Here is my cart-errors.php:
<?php
/**
* Cart errors page
*
* @author WooThemes
* @package WooCommerce/Templates
* @version 1.6.4
*/if ( ! defined( ‘ABSPATH’ ) ) exit; // Exit if accessed directly
?>
<?php $woocommerce->show_messages(); ?> (<<< THIS IS LINE 14<<<)
<p><?php _e( ‘There are some issues with the items in your cart (shown above). Please go back to the cart page and resolve these issues before checking out.’, ‘woocommerce’ ) ?></p>
<?php do_action(‘woocommerce_cart_has_errors’); ?>
<p>“><?php _e( ‘← Return To Cart’, ‘woocommerce’ ) ?></p>
Anyhelp would be really appreciated thankyou.
The topic ‘[Plugin: WooCommerce – excelling eCommerce] Checkout Error.’ is closed to new replies.