• Hi,

    It seems that this is incompatible with the latest version of WooCommerce (3.0.6). Right after plugin activation I get the following error lines on the WP Plugin Page

    Warning: Declaration of WC_Product_Wcpb::get_price() should be compatible with WC_Product::get_price($context = 'view') in /home/hoteldep/public_html/wp-content/plugins/wc-product-bundles/classes/wc_bundled_product.php on line 0
    
    Warning: Declaration of WC_Product_Wcpb::get_regular_price() should be compatible with WC_Product::get_regular_price($context = 'view') in /home/hoteldep/public_html/wp-content/plugins/wc-product-bundles/classes/wc_bundled_product.php on line 0
    
    Warning: Declaration of WC_Product_Wcpb::get_sale_price() should be compatible with WC_Product::get_sale_price($context = 'view') in /home/hoteldep/public_html/wp-content/plugins/wc-product-bundles/classes/wc_bundled_product.php on line 0
    
    Warning: Declaration of WC_Product_Wcpb::get_weight() should be compatible with WC_Product::get_weight($context = 'view') in /home/hoteldep/public_html/wp-content/plugins/wc-product-bundles/classes/wc_bundled_product.php on line 0

    Please help.

    Thanks,
    Francisco

Viewing 5 replies - 1 through 5 (of 5 total)
  • I found this new plugin, it’s working normally. WooCommerce Product Bundle

    • This reply was modified 7 years, 9 months ago by .

    I’ve found the solution for this problem. What I did was to place inside the parentheses of the functions the value ($context = ‘view’).
    So, for each function I placed this value inside the parentheses in this way:

    public function get_price( $context = ‘view’ )
    public function get_sale_price( $context = ‘view’ )
    public function get_regular_price( $context = ‘view’ )
    public function get_weight( $context = ‘view’ )

    I only added this value for each function, nothing more and everything works fine so.

    @marcrock thanks for the fix.

    THANKS!!!!

    @marcrock

    Where do you enter that information?

    In the editor section?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Incompatibility’ is closed to new replies.