• Resolved kvogel

    (@kvogel)


    Hi,
    I get ‘WC_Shortcode_Products’ not found PHP Fatal Error.
    I have remove this lines from wc-class-dp-shortcode-discontinued.php
    My Woocommerce version is 3.1.2

    After this modification your plugin works fine, but I don’t know what will this change cause?

    /**
    * Products shortcode class.
    */
    class DP_Shortcode_Discontinued extends WC_Shortcode_Products {

    /**
    * Set sale products query args.
    *
    * @since 3.2.0
    * @param array $query_args Query args.
    */
    protected function set_discontinued_products_query_args( &$query_args ) {
    $query_args[‘post__in’] = get_transient( ‘dp_hide_from_shop’ );
    }
    }

Viewing 1 replies (of 1 total)
  • Plugin Author twoelevenjay

    (@twoelevenjay)

    Hello, sorry for the delayed response. Removing this code will disable the ability for teh plugins shortcode sued for displaying discontinued products. you are receiving this error because the current version of Discontinued Products requires at WooCommerce version 3.2.4 or higher.

Viewing 1 replies (of 1 total)
  • The topic ‘WC_Shortcode_Products not found’ is closed to new replies.