• When I insert the [product_category] shortcode, I get the following error on saving the content:

    Fatal error: Call to a member function get_cart() on a non-object in (…) /framework/woo-config.php on line 425

    The page is saved but the shortcode itself is displayed in a bad grid format.

    https://wordpress.org/plugins/woocommerce/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter marcsoler

    (@marcsoler)

    I’m using the Avada theme but this file isn’t an overridden file

    There are two product category shortcodes:

    1. Show multiple products in a category by slug (example: gift).

    [product_category category="gift"]

    2. Display product categories loop

    [product_categories number="12" parent="0"]

    * Set the parent paramater to 0 to only display top level categories.

    Thread Starter marcsoler

    (@marcsoler)

    I know… but the error appears on any WooCommerce shortcode I use the moment I save the page…

    Hi, i think Avada child theme has some code in there, or a template override, which has broken it. I would suggest you change to other theme and have a try again.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal error when using shortcode’ is closed to new replies.