Banner Logo

Be a part of the family: Connect, Receive Support,
Contribute, and Reap Abundant Rewards!

Create coupon on vendor dashboard is not working.

Theme and Plugin Support

Tagged: 

Resolved
Viewing 1 reply thread
  • Author
    Posts
    • #128273
      odedtalmon
      Participant

      Hi,
      When I’m logged in as a Vendor I try to create a coupon but I get the error message: “Invalid coupon status.”
      Look at the file class-wcmp-vendor-dashboard.php on line 2151, that’s where the error occurs but I don’t understand why it’s happening.
      Here’s the $_POST:

      Array
      (
          [post_title] => Taltali1234
          [post_ID] => 87418
          [coupon_description] => קופון ניסיון
          [discount_type] => percent
          [coupon_amount] => 10
          [expiry_date] => 
          [minimum_amount] => 
          [maximum_amount] => 
          [product_ids] => Array
              (
                  [0] => 85233
                  [1] => 85238
                  [2] => 85239
              )
      
          [customer_email] => 
          [usage_limit] => 
          [limit_usage_to_x_items] => 
          [usage_limit_per_user] => 1
          [submit-data] => שמירה
          [status] => auto-draft
          [wcmp_afm_coupon_nonce] => 100c5e08fc
          [_wp_http_referer] => /dashboard/add-coupon/
      )
      Copy

      Obviously the status doesn’t fit the conditions, but why is it set to auto-draft?

      Thanks!

    • #128362

      Hi,
      We don’t face any such issues on our end. Here is the video https://www.loom.com/share/5017387e3e37460087dd798ced7b7bf5. This is might be due to custom code. And class-wcmp-vendor-dashboard.php on line 2151 is for product code. Not related to coupon.

Viewing 1 reply thread

The topic ‘Create coupon on vendor dashboard is not working.’ is closed to new replies.