Banner Logo

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

SUMO Reward Points Doubling of bonuses

WCMp Core

Resolved
Viewing 3 reply threads
  • Author
    Posts
    • #129624
      l.gan
      Participant

      Hi, I bought a plugin for the bonus system. It’s called SUMO Reward Points. And I ran into several problems. (please watch the video https://disk.yandex.ru/i/d_bYq2n8CN7iog)

      1. Doubling of bonuses from when the suborder status is changed “completed”
      2. Absence of a message on the vendor’s store page about the accrual of bonuses.

      Next, I contacted the plugin developer. I explained everything to him, and received a request from him for hooks to eliminate incompatibilities.
      Here is his message: “We suggest you please contact that plugin author & ask them to provide hooks when creating the suborder & displaying messages so that it help us to check the feasibility from our side.”

      Please see, I made a screenshot of the plugin support dialog: https://disk.yandex.ru/i/ZSFTqRmJN3zusQ

      I will share a link to this topic with the SUMO Reward Points plugin development team, and hopefully this joint effort will make both SUMO Reward Points and WCMp plugins even more incredibly cool.

      Thank you team

    • #130376

      Hi,
      WCMp create suborders from below file
      /plugins/dc-woocommerce-multi-vendor/classes/class-wcmp-order.php

      Kindly check the file.

      Regards,

    • #130549
      l.gan
      Participant

      Hi, I got a response from the plugin developer and he shared the code – which stops duplicate suborder bonuses.

      I am sharing this on the forum, maybe other users of your wonderful plugin will find it useful.

      add_filter( ‘rs_points_data_before_insertion’ , ‘points_data_before_insertion’ ) ;

      function points_data_before_insertion( $args ) {

      $order_id = isset( $args[ ‘orderid’ ] ) ? $args[ ‘orderid’ ] : ” ;
      if( ! $order_id ) {
      return $args ;
      }

      $is_vendor_order = is_wcmp_vendor_order( $order_id ) ;
      if( $is_vendor_order ) {
      $args[ ‘user_id’ ] = 0 ;
      $args[ ‘pointstoinsert’ ] = 0 ;
      }

      return $args ;
      }

      If, based on this code, you can somehow add additions to your plugin and stop duplicate suborders for this particular plugin, SUMO point (so that I would not need to continue using this code, but have a solution already inside your plugin and not worry about its support – I would be very very happy)

    • #130603
      This reply has been marked as private.
Viewing 3 reply threads

The topic ‘SUMO Reward Points Doubling of bonuses’ is closed to new replies.