aejaz
Forum Replies Created
-
Hey,
I’m Having the same issue did you get any solution ?
Forum: Plugins
In reply to: [Order Splitter for WooCommerce] Split woocommerce Bookings into SubordersHi,
I don’t want to split any order based on vendor.
I wanted to split order based on bookings. If 1 order has 5 bookings i want the order to split in 5 sub orders.
Hi, The issue is resolved actually the “code”tag was giving issues on line 11.
I just wanted to know how to combine withdrawal commissions of vendor. right now all commissions are showing separately
function wcfmmp_generate_auto_withdrawal_on_booking_status( $booking_id, $booking ) { global $WCFM, $WCFMmp, $wpdb; if( !$WCFM || !$WCFMmp ) return; $order = $booking->get_order(); $order_id = $order->get_id(); $sql = 'SELECT GROUP_CONCAT(ID) commission_ids, COALESCE( SUM( commission.total_commission ), 0 ) AS total_commission, vendor_id, withdraw_status, order_status FROM ' . $wpdb->prefix . 'wcfm_marketplace_orders AS commission'; $sql .= ' WHERE 1=1'; $sql .= " AND order_id = " . $order_id; $sql .= " GROUP BY vendor_id"; $commission_infos = $wpdb->get_results( $sql ); if( !empty( $commission_infos ) ) { foreach( $commission_infos as $commission_info ) { if( $commission_info->withdraw_status != 'pending' ) continue; //if( $commission_info->order_status == $auto_withdrawal_status ) continue; $vendor_id = absint($commission_info->vendor_id); $payment_method = $WCFMmp->wcfmmp_vendor->get_vendor_payment_method( $vendor_id ); if( !$payment_method ) continue; // Reset Commission withdrawal charges as per total withdrawal charge $withdraw_charges = $WCFMmp->wcfmmp_withdraw->calculate_withdrawal_charges( $commission_info->total_commission, $vendor_id ); // Update Commission withdrawal Status $commissions = explode( ",", $commission_info->commission_ids ); $no_of_commission = count($commissions); $withdraw_charge_per_commission = (float)$withdraw_charges/$no_of_commission; foreach( $commissions as $commission_id ) { $wpdb->update("{$wpdb->prefix}wcfm_marketplace_orders", array('withdraw_status' => 'requested', 'withdraw_charges' => round($withdraw_charge_per_commission,2)), array('ID' => $commission_id), array('%s', '%s'), array('%d')); } $withdraw_request_id = $WCFMmp->wcfmmp_withdraw->wcfmmp_withdrawal_processed( $vendor_id, $order_id, $commission_info->commission_ids, $payment_method, 0, $commission_info->total_commission, $withdraw_charges, 'requested', 'by_auto_request' ); if( $withdraw_request_id && !is_wp_error( $withdraw_request_id ) ) { $is_auto_approve = $WCFMmp->wcfmmp_withdraw->is_withdrawal_auto_approve( $vendor_id ); if( $is_auto_approve ) { $payment_processesing_status = $WCFMmp->wcfmmp_withdraw->wcfmmp_withdrawal_payment_processesing( $withdraw_request_id, $vendor_id, $payment_method, $commission_info->total_commission, $withdraw_charges ); if( $payment_processesing_status ) { //wcfm_log( __('Auto Withdrawal Request successfully processed.', 'wc-multivendor-marketplace') . ': #' . sprintf( '%06u', $withdraw_request_id ) ); } else { wcfm_log( __('Auto Withdrawal Request processing failed, please contact Store Admin.', 'wc-multivendor-marketplace') . ': #' . sprintf( '%06u', $withdraw_request_id ) ); } } else { // Admin Notification $shop_name = $WCFM->wcfm_vendor_support->wcfm_get_vendor_store_by_vendor( absint($vendor_id) ); $wcfm_messages = sprintf( __( 'Vendor <b>%s</b> has placed a Withdrawal Request #%s.', 'wc-multivendor-marketplace' ), $shop_name, '' . sprintf( '%06u', $withdraw_request_id ) . '' ); $WCFM->wcfm_notification->wcfm_send_direct_message( $vendor_id, 0, 0, 1, $wcfm_messages, 'withdraw-request' ); //wcfm_log( __('Auto withdrawal request successfully sent.', 'wc-frontend-manager') . ': #' . sprintf( '%06u', $withdraw_request_id ) ); } do_action( 'wcfmmp_withdrawal_request_submited', $withdraw_request_id, $vendor_id ); } else { wcfm_log( __('Auto withdrawal request failed, please try after sometime.', 'wc-multivendor-marketplace') ); } } } } add_action( 'woocommerce_booking_complete', 'wcfmmp_generate_auto_withdrawal_on_booking_status', 50, 2 );`
Forum: Plugins
In reply to: [WooCommerce] Order Review Before CheckoutHi,
The developer of this plugin seems to be not updating it anymore – https://maxim-kaminsky.com/woocommerce-order-review-page/
I sent him a message 1 week ago but didn’t get any reply yet.
This looks good – https://stackoverflow.com/questions/52726635/hooking-after-validation-but-before-order-create-in-woocommerce-checkout But how I can display order summary & customer details in POP-UP?
Thanks
Forum: Plugins
In reply to: [MDTF - Meta Data and Taxonomies Filter] Not Working with WPML PluginHi,
I tried using the shortcode as well but still, it’s showing zero results found.
Attached screenshots of settings
Widget Settings – https://prnt.sc/nr86og
MDTF Shortcode settings – https://prnt.sc/nr86xk
MDTF Main settings – https://prnt.sc/nr87kx
Search form from Widget & Shortcode – https://prnt.sc/nr87qjSearch form link – https://pristineorganics.com/store-locator/
Please look into the issue
Regards.
Forum: Plugins
In reply to: [MDTF - Meta Data and Taxonomies Filter] Not Working with WPML PluginHi,
Any Update ?
Forum: Plugins
In reply to: [MDTF - Meta Data and Taxonomies Filter] Not Working with WPML PluginHi,
I did how you told me now it’s showing the same filter page in search results.
I Put a relative link for result page as you have mentioned (/store-locator/). also, I have selected the english language in the widget.
Please look into it.
Regards.
Forum: Plugins
In reply to: [QuadMenu - Divi Mega Menu] Menu randomly doesn’t show upHi,
I’m having the same issue in Mobile
Unfortunately, the Menu sometimes does not show up. All the elements “are there” (you can click on it) but nothing is visible. You have to scroll, wait some time and then the Menu is visible again.My website is – shaheengroup.org
Pls look into it
Regards
Forum: Plugins
In reply to: [WP2Static] Can’t Make Static FileHi,
I checked there is not a single error in the server.
I will give my website WordPress credentials can you pls check it out for me. if possible can you pls generate a zip file of the static website.
Forum: Plugins
In reply to: [WP2Static] Can’t Make Static FileHello leon,
My export file
STARTING EXPORT: 2018-12-28 11:31:00
STARTING EXPORT: PHP VERSION 7.1.25
STARTING EXPORT: OS VERSION Linux grh19.myukcloud.com 3.10.0-714.10.2.lve1.5.17.el7.x86_64 #1 SMP Mon Apr 30 13:06:32 EDT 2018 x86_64
STARTING EXPORT: WP VERSION 4.9.8
STARTING EXPORT: WP URL https://redmountaintech.imco.sa
STARTING EXPORT: WP SITEURL https://redmountaintech.imco.sa
STARTING EXPORT: WP HOME https://redmountaintech.imco.sa
STARTING EXPORT: WP ADDRESS https://redmountaintech.imco.sa
STARTING EXPORT: PLUGIN VERSION 6.1
STARTING EXPORT: VIA WP-CLI?
STARTING EXPORT: STATIC EXPORT URL https://example.com/I’m trying to export zip file.
also, I checked with my hosting provider he said DOM Extension is already installed.
Forum: Plugins
In reply to: [WP2Static] Messed Up ConversionHello Again,
I converted this website as well – https://redmountaintech.imco.sa/mystaticsite/
But It converts the only Homepage and other pages are messed Up because of no CSS.
Pls look into this as well.
Regards
Forum: Plugins
In reply to: [WP2Static] Messed Up ConversionHello leon,
It works website is now coming perfect.
I’m trying to convert 1 more website which is in 3 languages – https://auctionaccess.com/
IP – 5.134.8.27
I think You need to setup the host file to view this website. Because I have not pointed my server yet to the domain.
The website has DIVI theme,
WPML Plugin for Translation &
Gravity Forms.It has translated only Homepage ( English ). But other pages are not working (
they are still pointing to the main website ).Also, the language switcher is not working.
Please Look into it
Regards
Forum: Plugins
In reply to: [WP2Static] Messed Up ConversionHello Again,
Where can I find it?
Pls share the link.
Regards