Forum Replies Created

Viewing 15 replies - 1 through 15 (of 32 total)
  • you can also use placeholder {site_url} instead of https://DOMAIN

    until the new corrected version is out

    Thread Starter kranate

    (@kranate)

    ok.. great approach to support. but I’m gladly trying to help.

    you should try to prevent that all kind of input with data toggle attribute were fetched. that is handled by your code extension for boostrap-toggle. just attaching to your classes or ids.

    Thread Starter kranate

    (@kranate)

    Hi Prince,

    I will check that asap. But my question is.. is it possible to change it in any custom format? I need f.e. the german date format.

    I’m working with the pro version 4.0.7.
    I activated the option “Do not send parent order email to anyone”.
    but the summary is always been send with the mails of the splitted orders.
    what is the correct way to prevent sending the summary?

    could we expect any support from plugin developer here?

    it would be interesting why this is necessary for some sites. I could tell the same. this happens only in 1 of 17 my sites.

    Thread Starter kranate

    (@kranate)

    I think it would also work fine with:

    delete_post_meta($order_id, '_tribe_has_tickets');

    could you add this to your next version?
    and for further clarify..
    it’s not about setting a meta key.
    the existing meta key should be updated or better deleted.

    • This reply was modified 4 years, 10 months ago by kranate.
    • This reply was modified 4 years, 10 months ago by kranate.
    Thread Starter kranate

    (@kranate)

    yes, that’s correct.
    every new order needs this meta key with NULL. so you will have a better support for the tribe plugins.
    at the moment the existing meta key with value “1” is cloned. an that makes the problem with the tickets.

    thank you!

    Thread Starter kranate

    (@kranate)

    Hi Fahad!

    I think I found a better solution for Events Calendar Plugin.
    It is important for that to “generate tickets” when purchased.
    So after splitting/duplicating this have to be done again.

    could you please add something like the following to your code:

    update_post_meta( $new_order_id, '_tribe_has_tickets', '');

    • This reply was modified 4 years, 10 months ago by kranate.
    • This reply was modified 4 years, 10 months ago by kranate.
    Thread Starter kranate

    (@kranate)

    it seems that I get with the following code only the order data of the deleted/old order.
    not from the new splitted orders.
    could you please help me fetching the new orders in my child theme functions.php

    add_action( 'woocommerce_thankyou', 'woocommerce_auto_bearbeitung', 1000, 1);
    function woocommerce_auto_bearbeitung( $order_id ) {
        if ( ! $order_id )
            return;
    
        $order = wc_get_order( $order_id );	
    
    Thread Starter kranate

    (@kranate)

    sorry.. here I am again.

    The option works fine.
    But I need for my workflow the option to CHANGE the status after creating the order. I guess that the splitted order would be created with the selected status. I think the plugin tribe events calendar expects the transition to the status processing for generating a ticket.

    could you help here? may be with a hook I can you use after creating the splitted order?

    Thread Starter kranate

    (@kranate)

    OMG
    sorry.. may be it was to late yesterday.
    I found the option and will check this.

    thank you for your support!

    Thread Starter kranate

    (@kranate)

    is there really a reason why you can’t add without any condition like this:

    
    		/**
    		 * Duplicate Order Header meta
    		 */
    		
    		public function clone_order_header($order_id, $_order_total=false){
    			
    			
    			//pree($_order_total);
    			if($_order_total){
    				
    			}else{
    				
    				$_order_total = get_post_meta($this->original_order_id, '_order_total', true);
    				
    			}
    			
    			//pree($_order_total);exit;
    	
    			update_post_meta( $order_id, '_order_shipping', get_post_meta($this->original_order_id, '_order_shipping', true) );
    			update_post_meta( $order_id, '_order_discount', get_post_meta($this->original_order_id, '_order_discount', true) );
    			update_post_meta( $order_id, '_cart_discount', get_post_meta($this->original_order_id, '_cart_discount', true) );
    			update_post_meta( $order_id, '_order_tax', get_post_meta($this->original_order_id, '_order_tax', true) );
    			update_post_meta( $order_id, '_order_shipping_tax', get_post_meta($this->original_order_id, '_order_shipping_tax', true) );
    			update_post_meta( $order_id, '_order_total',  sanitize_wcos_data($_order_total));
    	
    			update_post_meta( $order_id, '_order_key', 'wc_' . apply_filters('woocommerce_generate_order_key', uniqid('order_') ) );
    			update_post_meta( $order_id, '_customer_user', get_post_meta($this->original_order_id, '_customer_user', true) );
    			update_post_meta( $order_id, '_order_currency', get_post_meta($this->original_order_id, '_order_currency', true) );
    			update_post_meta( $order_id, '_prices_include_tax', get_post_meta($this->original_order_id, '_prices_include_tax', true) );
    			update_post_meta( $order_id, '_customer_ip_address', get_post_meta($this->original_order_id, '_customer_ip_address', true) );
    			update_post_meta( $order_id, '_customer_user_agent', get_post_meta($this->original_order_id, '_customer_user_agent', true) );
    			
    							
    			update_post_meta( $order_id, '_tribe_tickets_meta', get_post_meta($this->original_order_id, '_tribe_tickets_meta', true) );				
    		}
    		
    		/**
    		 * Duplicate Order Billing meta
    		 */
    
    Thread Starter kranate

    (@kranate)

    now I could see your message in the changelog for version 2.3.2.
    but your update doesn’t work for me.

    it only works like this:
    => in “Duplicate Order Header meta” section
    => with $_tribe_tickets_meta = get_post_meta($order_id, '_tribe_tickets_meta', true);

    		/**
    		 * Duplicate Order Header meta
    		 */
    		
    		public function clone_order_header($order_id, $_order_total=false){
    			
    			
    			//pree($_order_total);
    			if($_order_total){
    				
    			}else{
    				
    				$_order_total = get_post_meta($this->original_order_id, '_order_total', true);
    				
    			}
    			
    			//pree($_order_total);exit;
    	
    			update_post_meta( $order_id, '_order_shipping', get_post_meta($this->original_order_id, '_order_shipping', true) );
    			update_post_meta( $order_id, '_order_discount', get_post_meta($this->original_order_id, '_order_discount', true) );
    			update_post_meta( $order_id, '_cart_discount', get_post_meta($this->original_order_id, '_cart_discount', true) );
    			update_post_meta( $order_id, '_order_tax', get_post_meta($this->original_order_id, '_order_tax', true) );
    			update_post_meta( $order_id, '_order_shipping_tax', get_post_meta($this->original_order_id, '_order_shipping_tax', true) );
    			update_post_meta( $order_id, '_order_total',  sanitize_wcos_data($_order_total));
    	
    			update_post_meta( $order_id, '_order_key', 'wc_' . apply_filters('woocommerce_generate_order_key', uniqid('order_') ) );
    			update_post_meta( $order_id, '_customer_user', get_post_meta($this->original_order_id, '_customer_user', true) );
    			update_post_meta( $order_id, '_order_currency', get_post_meta($this->original_order_id, '_order_currency', true) );
    			update_post_meta( $order_id, '_prices_include_tax', get_post_meta($this->original_order_id, '_prices_include_tax', true) );
    			update_post_meta( $order_id, '_customer_ip_address', get_post_meta($this->original_order_id, '_customer_ip_address', true) );
    			update_post_meta( $order_id, '_customer_user_agent', get_post_meta($this->original_order_id, '_customer_user_agent', true) );
    			
    			if($order_id){
    					$_customer_user_agent = get_post_meta($originalorderid, '_customer_user_agent', true);
    					$_tribe_tickets_meta = get_post_meta($order_id, '_tribe_tickets_meta', true);
    					
    					if($_customer_user_agent)
    					update_post_meta( $order_id, '_customer_user_agent',  $_customer_user_agent);
    					
    					if($_tribe_tickets_meta)
    					update_post_meta( $order_id, '_tribe_tickets_meta', get_post_meta($this->original_order_id, '_tribe_tickets_meta', true) );
    				}				
    																																  
    		}
    		
    		/**
    		 * Duplicate Order Billing meta
    		 */
    
    Thread Starter kranate

    (@kranate)

    Hi Fahad,

    maybe you missed this ticket because you changed to status to resolved.
    but there is still no message in the last changelogs about this.
    are you working on a solution?

    Thread Starter kranate

    (@kranate)

    the problem with image is resolved. it was an theme problem.
    but please answer to my last question.

    another addition to my question.
    Why are e-mail body texts still stored in the database? These are no longer used, right?
    there are stored in wp_options => um_options.

Viewing 15 replies - 1 through 15 (of 32 total)