Forum Replies Created

Viewing 13 replies - 1 through 13 (of 13 total)
  • Hey,

    I’m Having the same issue did you get any solution ?

    Thread Starter aejaz

    (@aejaz)

    Hi,

    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.

    Thread Starter aejaz

    (@aejaz)

    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 );`
    Thread Starter aejaz

    (@aejaz)

    Hi,

    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

    Thread Starter aejaz

    (@aejaz)

    Hi,

    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/nr87qj

    Search form link – https://pristineorganics.com/store-locator/

    Please look into the issue

    Regards.

    Thread Starter aejaz

    (@aejaz)

    Hi,

    Any Update ?

    Thread Starter aejaz

    (@aejaz)

    Hi,

    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.

    Hi,

    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

    Thread Starter aejaz

    (@aejaz)

    Hi,

    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.

    http://redmountaintech.imco.sa

    Thread Starter aejaz

    (@aejaz)

    Hello 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 http://redmountaintech.imco.sa
    STARTING EXPORT: WP SITEURL http://redmountaintech.imco.sa
    STARTING EXPORT: WP HOME http://redmountaintech.imco.sa
    STARTING EXPORT: WP ADDRESS http://redmountaintech.imco.sa
    STARTING EXPORT: PLUGIN VERSION 6.1
    STARTING EXPORT: VIA WP-CLI?
    STARTING EXPORT: STATIC EXPORT URL http://example.com/

    I’m trying to export zip file.

    also, I checked with my hosting provider he said DOM Extension is already installed.

    Thread Starter aejaz

    (@aejaz)

    Hello Again,

    I converted this website as well – http://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

    Thread Starter aejaz

    (@aejaz)

    Hello leon,

    It works website is now coming perfect.

    I’m trying to convert 1 more website which is in 3 languages – http://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

    Thread Starter aejaz

    (@aejaz)

    Hello Again,

    Where can I find it?

    Pls share the link.

    Regards

Viewing 13 replies - 1 through 13 (of 13 total)