WCMp Core
-
AuthorPosts
-
-
November 8, 2021 at 7:26 PM #129624l.ganParticipant
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
-
November 10, 2021 at 7:14 PM #130376MVX Support NinjaKeymaster
Hi,
WCMp create suborders from below file
/plugins/dc-woocommerce-multi-vendor/classes/class-wcmp-order.phpKindly check the file.
Regards,
-
November 14, 2021 at 12:20 AM #130549l.ganParticipant
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)
-
November 15, 2021 at 7:56 PM #130603MVX Support NinjaKeymasterThis reply has been marked as private.
-
-
AuthorPosts
The topic ‘SUMO Reward Points Doubling of bonuses’ is closed to new replies.