Support » Plugin: Advanced Order Export For WooCommerce » Compability with WooCommerce Extra Product Options

  • Resolved asevims

    (@asevims)


    Hello,

    your plugin is really great, thank you very much!

    I’m using “WooCommerce Extra Product Options” and would like to export the orders.

    If I try to “set up fields to export” I can also see the custom field which will not be exported. It stays blank.

    There is also another meta field in which all the data is exported as a serialised data. Is there any possibility to get this work? I’m trying this since days without results.

    Thank you very much!
    Best regards

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Author algol.plus

    (@algolplus)

    Thread Starter asevims

    (@asevims)

    Hello Alex,

    I’m using the second one from codecanyon.

    Thank you very much in advance!

    Plugin Author algol.plus

    (@algolplus)

    it’s not free.
    Could you send me this plugin ?

    See my address at bottom https://wordpress.org/plugins/woo-order-export-lite/faq/

    Plugin Author algol.plus

    (@algolplus)

    .

    • This reply was modified 7 years, 2 months ago by algol.plus.
    Thread Starter asevims

    (@asevims)

    Yes. I’ve sent it to you. Thank you!!

    Plugin Author algol.plus

    (@algolplus)

    thank you , I’ll reply later today

    Thread Starter asevims

    (@asevims)

    Thank you! The serialised data is stored in the following meta key: “_tmcartepo_data”.

    It would be fantastic if there is a way to get each input field in separated columns.

    Plugin Author algol.plus

    (@algolplus)

    You must put this code to functions.php ( active theme)

    I have to add new hook, so this code requires beta version

    //WooCommerce TM Extra Product Options
    class WOE_add_extra_fields {
    	var $tm_fields = array('Bio','Age'); //adjust list here 
    	function __construct() {
    		add_filter('woe_get_order_product_fields',array($this,'add_product_fields') );
    		add_filter('woe_get_order_product_item_meta', array($this,'fill_tm_fields') );
    	}	
    	
    	function add_product_fields($fields) {
    		foreach($this->tm_fields as $pos=>$name) {
    			$fields['tm_field_'.$pos] = array('label'=>$name,'colname'=>$name,'checked'=>1);
    		}	
    		return $fields;
    	}
    	
    	function fill_tm_fields($item_meta) {
    		//got valid array ?
    		if( isset($item_meta["_tmcartepo_data"])   AND  is_array($tmfields = maybe_unserialize($item_meta["_tmcartepo_data"][0]))  ) {
    			// gather TM values
    			$product_fields = array();
    			foreach($tmfields as $tm_field) {
    				$product_fields[ $tm_field['name'] ] =  $tm_field['value'];
    			}
    			// add to item meta 
    			foreach($this->tm_fields as $pos=>$name) {
    				 // it must be array !
    				$item_meta['tm_field_'.$pos] = array( isset($product_fields[$name]) ? $product_fields[$name] : "" );
    			}	
    		}
    		return $item_meta;
    	}
    }	
    new WOE_add_extra_fields();
    
    • This reply was modified 7 years, 2 months ago by algol.plus.
    Thread Starter asevims

    (@asevims)

    Hello Alex,
    thank you very much for your help!

    Do I have to wait for a new version or can I get the beta version somehow?

    Best regards
    Sevim

    Plugin Author algol.plus

    (@algolplus)

    hello Sevim

    I already sent new version to you. Could you check Spam folder?
    thanks, alex

    Thread Starter asevims

    (@asevims)

    Hello Alex,

    I could install the beta version and have added the code to the functions.php. However I don’t know what to change in this line:

    var $tm_fields = array(‘Bio’,’Age’); //adjust list here

    I couldn’t see that anything has changed. Could you explain me what to change?

    Many thanks!
    Ahmet

    Plugin Author algol.plus

    (@algolplus)

    hi Ahmet

    1. Edit addon field, copy “label” and add to this list.
    For example,
    You have 3 fields – do this step for all 3 fields,
    so you fill this line as
    var $tm_fields = array(“Field name 1″,”Field name 2″,”Field name 3” );

    2. This code adds new field to Product Fields
    open section “Setup fields”
    scroll down to “Products”
    click button “Setup fields”
    scroll down to bottom

    thanks, alex

    Hi Alex,
    I have the same problem as Ahamet.
    I can get the new version too? 🙂

    Many thanks
    Luciano

    Plugin Author algol.plus

    (@algolplus)

    hi Luciano

    do you use https://codecanyon.net/item/woocommerce-extra-product-options/7908619 ?

    I updated plugin ~2 weeks ago, so this code must work for you.
    thanks, alex

    Hi Alex,
    Yes, I use this plugin.

    In your plugin in “products” —> Meta key I found “_tmcartepo_data” but the result is this:

    a:2:{i:0;a:22:{s:4:”mode”;s:7:”builder”;s:8:”cssclass”;s:0:””;s:15:”hidelabelincart”;s:6:”hidden”;s:15:”hidevalueincart”;s:0:””;s:16:”hidelabelinorder”;s:6:”hidden”;s:16:”hidevalueinorder”;s:0:””;s:7:”element”;a:3:{s:4:”type”;s:8:”checkbox”;s:10:”rules_type”;a:3:{s:17:”Coppia ciaspole_0″;a:1:{i:0;s:0:””;}s:50:”Coppia ciaspole misura sotto il 37 o sopra il 44_1″;a:1:{i:0;s:0:””;}s:19:”Coppia bastoncini_2″;a:1:{i:0;s:0:””;}}s:1:”_”;a:1:{s:10:”price_type”;s:0:””;}}s:4:”name”;s:19:”Ti servono noleggi?”;s:5:”value”;s:15:”Coppia ciaspole”;s:5:”price”;d:24;s:7:”section”;s:23:”58961d0800e142.75428135″;s:13:”section_label”;s:19:”Ti servono noleggi?”;s:19:”percentcurrenttotal”;i:0;s:10:”currencies”;a:0:{}s:18:”price_per_currency”;a:1:{s:3:”EUR”;d:24;}s:8:”quantity”;s:1:”3″;s:8:”multiple”;s:1:”1″;s:3:”key”;s:17:”Coppia ciaspole_0″;s:10:”use_images”;s:0:””;s:21:”changes_product_image”;s:0:””;s:7:”imagesp”;s:0:””;s:6:”images”;s:0:””;}i:1;a:22:{s:4:”mode”;s:7:”builder”;s:8:”cssclass”;s:0:””;s:15:”hidelabelincart”;s:6:”hidden”;s:15:”hidevalueincart”;s:0:””;s:16:”hidelabelinorder”;s:6:”hidden”;s:16:”hidevalueinorder”;s:0:””;s:7:”element”;a:3:{s:4:”type”;s:8:”checkbox”;s:10:”rules_type”;a:3:{s:17:”Coppia ciaspole_0″;a:1:{i:0;s:0:””;}s:50:”Coppia ciaspole misura sotto il 37 o sopra il 44_1″;a:1:{i:0;s:0:””;}s:19:”Coppia bastoncini_2″;a:1:{i:0;s:0:””;}}s:1:”_”;a:1:{s:10:”price_type”;s:0:””;}}s:4:”name”;s:19:”Ti servono noleggi?”;s:5:”value”;s:17:”Coppia bastoncini”;s:5:”price”;d:6;s:7:”section”;s:23:”58961d0800e142.75428135″;s:13:”section_label”;s:19:”Ti servono noleggi?”;s:19:”percentcurrenttotal”;i:0;s:10:”currencies”;a:0:{}s:18:”price_per_currency”;a:1:{s:3:”EUR”;d:6;}s:8:”quantity”;s:1:”3″;s:8:”multiple”;s:1:”1″;s:3:”key”;s:19:”Coppia bastoncini_2″;s:10:”use_images”;s:0:””;s:21:”changes_product_image”;s:0:””;s:7:”imagesp”;s:0:””;s:6:”images”;s:0:””;}}

    Thanks
    Luciano

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Compability with WooCommerce Extra Product Options’ is closed to new replies.