- Search Results
Hello, I do not see the request for payment. I tried to update everything and nothing helps.
Hello,
I have a problem with the tax on the administrator commission, your following code works correctly when ordering a product (product reservation) but when there is many products in order, the vat tax of administrator commissions no working.
Do you have any idea about this problem?
Thank you!
add_action( ‘wcfmmp_order_item_processed’, function( $commission_id, $order_id, $order, $vendor_id, $product_id, $order_item_id, $grosse_total, $total_commission, $is_auto_withdrawal ) {
global $WCFM, $WCFMmp, $wpdb;if( apply_filters( ‘wcfm_is_admin_fee_mode’, false ) ) {
$commission_rule = unserialize( $WCFMmp->wcfmmp_commission->wcfmmp_get_commission_meta( $commission_id, ‘commission_rule’ ) );if( isset( $commission_rule[‘tax_enable’] ) && ( $commission_rule[‘tax_enable’] == ‘yes’ ) ) {
$gross_sale_order = (float) $WCFM->wcfm_vendor_support->wcfm_get_gross_sales_by_vendor( $vendor_id, ”, ”, $order_id );
$commission_tax = (float) $WCFMmp->wcfmmp_commission->wcfmmp_get_commission_meta( $commission_id, ‘commission_tax’ );
$total_commission += $commission_tax;$admin_fee = (float) $gross_sale_order – (float) $total_commission;
$commission_tax = $admin_fee * ( (float)$commission_rule[‘tax_percent’] / 100 );
$total_commission -= (float) $commission_tax;$WCFMmp->wcfmmp_commission->wcfmmp_delete_commission_meta( $commission_id, ‘commission_tax’ );
$WCFMmp->wcfmmp_commission->wcfmmp_update_commission_meta( $commission_id, ‘commission_tax’, round($commission_tax, 2) );
$wpdb->update(“{$wpdb->prefix}wcfm_marketplace_orders”, array(‘total_commission’ => $total_commission), array(‘ID’ => $commission_id), array(‘%s’), array(‘%d’));
$wpdb->update(“{$wpdb->prefix}wcfm_marketplace_vendor_ledger”, array( ‘credit’ => $total_commission ), array( ‘reference_id’ => $commission_id ), array( ‘%s’ ), array( ‘%d’ ) );
}
}
}, 50, 9 );Topic: WePOS
Good day dear all,
is possible to disable WePOS function to create an order?So what i mean is if is possible that order issued by WePOS from vendor it not create history into our platform.
What I need is to give possibility do vendor to update his/her stock quantity inventory instantly using a barcode scanner.
So finally WePOS have only to update stock quantity. Nothing more.Wish you all th best.
Regards to everybody
Saw an alert to update Groups & Staffs to version 3.4.5 yesterday (05/09/2020) in my Bluehost WordPress Plugin page. I didnt’t upgrade, but decided to upgrade today (05/10/2020), but the upgrade alert was gone and new version was nowhere to be found. What happened to it? Please let me know how to upgrade to this latest version. Thanks!
Store manager part is not working good. Product part categories and writings are grifted. Product attributes and variations are not working. I amn using elab theme. And all my plugins are updated. 2 times i wrote, they told me they will debugging but i have no answer about 7 days.
Hello, I just purchased the full plugin package.
I need to categorize sellers into a category (For example …. Hairdressers, clothing stores, grocery stores …) Because I am creating a store based vendor market.
1. How can I create these categories? Is it done through the groups plugin? If so, the automatic group assignment option does not appear in the registry … What could be happening?2. My wordpress user database is not updated when users modify their data (Example, if I change the name of the store, the phone of the store …… from the panel of my account, in the wordpress USERS database, those data are not updated Why does this happen? How can I fix it?
I need help … Thanks
Hi,
1. I would like to show what is the total commission vendor will be getting when they are adding a product. Just a number based on the entered product price and the commission applicable for that vendor. Please see the attached screenshot of where i would like to include the number. Whenever the price fields are updated, the commission should be recalculated and presented here.2. I would like to have a shortcode to show vendor commission for the logged in user. Can you please help me with this?
Kind regards, Aleks
Hi,
1. I would like to show what is the total commission vendor will be getting when they are adding a product. Just a number based on the entered product price and the commission applicable for that vendor. Please see the attached screenshot of where i would like to include the number. Whenever the price fields are updated, the commission should be recalculated and presented here.2. I would like to have a shortcode to show vendor commission for the logged in user. Can you please help me with this?
Kind regards, Aleks