• Resolved Joe Bloggs

    (@joe-bloggs)


    Hey guys,

    I’m on PHP v8.2.11 and just switched on coupons.

    I’m getting the following depreciation error which stops completing the checkout with the coupon applied:

    Deprecated: Creation of dynamic property WC_Coupon::$sort is deprecated in?/var/www/vhosts/example.com/httpdocs/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php?on line?375

    Any ideas?

    Many thanks,
    Jo

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi there @joe-bloggs ??

    Thank you for contacting Woo support!

    PHP 8.2.11 – Depreciated – Creation of dynamic property WC_Coupon

    Kindly note that, according to the official WooCommerce documentation, the server requirements for PHP versions is version 7.4 and up to version 8.1.

    I hope this is helpful! Please let us know if you have any further questions or concerns.

    ?

    Hey guys,

    I have PHP v8.2.4

    I am ading custom code suign ‘woocommerce_applied_coupon’ this hook but i am gettting this error msg.

    Here I am doing this: Increasing product quantity after the coupon code is applying

    Deprecated: Creating a dynamic property WC_Coupon::$sort is deprecated in /var/www/vhosts/example.com/httpdocs/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php on line 375

    Any ideas?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP 8.2.11 – Depreciated – Creation of dynamic property WC_Coupon’ is closed to new replies.