Support » Plugin: Perfect Brands for WooCommerce » After recent update can’t set coupon limits

  • Resolved ljshopch

    (@ljshopch)


    Hello, I updated today your plugin. Now I have an error on the coupons page.
    Can’t set the limits for example to have 1 code being used once. Also there is this error on screen:

    Fatal error: Uncaught Error: Call to undefined method WP_Post::get_ID() in /home/clients/2b241a4c0cd83d547081de6cd33e1b3c/web2/wp-content/plugins/perfect-woocommerce-brands/classes/admin/class-pwb-coupon.php:21 Stack trace: #0 /home/clients/2b241a4c0cd83d547081de6cd33e1b3c/web2/wp-includes/class-wp-hook.php(309): Perfect_Woocommerce_Brands\Admin\PWB_Coupon->coupon_restriction(595579) #1 /home/clients/2b241a4c0cd83d547081de6cd33e1b3c/web2/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array) #2 /home/clients/2b241a4c0cd83d547081de6cd33e1b3c/web2/wp-includes/plugin.php(476): WP_Hook->do_action(Array) #3 /home/clients/2b241a4c0cd83d547081de6cd33e1b3c/web2/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php(282): do_action('woocommerce_cou...', 595579, Object(WC_Coupon)) #4 /home/clients/2b241a4c0cd83d547081de6cd33e1b3c/web2/wp-admin/includes/template.php(1401): WC_Meta_Box_Coupon_Data::output(Object(WP_Post), Array) #5 /home/clients/2b241a4c0cd83d547081de6cd33e1b3c/web2/ in /home/clients/2b241a4c0cd83d547081de6cd33e1b3c/web2/wp-content/plugins/perfect-woocommerce-brands/classes/admin/class-pwb-coupon.php on line 21

    How to fix this? Need to keep the perfect brands plugin as well as the ability to create promo codes.

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.