title: Importing into role based price with wp all import
body: <p>I'm using the woocommerce plugin Role Based Price as we have two extra users thats price will get updated from a csv. </p>
  
  <p>When i import using the WP All Import tool i specify the custom field i want to update with the function but all i get is a NULL value in the table. </p>
  
  <p>Can someone please point out what i'm doing wrong here. </p>
  
  <p>I assumed it was because the data in the manual update is a string and the values trying to import are integer</p>
  
  <p>So in WPALLIMPORT it looks like this under the custom field option</p>
  
  <pre><code>Custom Field                        Value
  _role_based_price                   [my_role_pricing({distributor_price[1]},{installer_price[1]})]
  </code></pre>
  
  <p>Then My Function</p>
  
  <pre><code>function my_role_pricing( $distributor_price, $installer_price ) {
  $price_array = array(
      "distributor_customer" =&gt; array(
          "regular_price" =&gt; $distributor_price
          ),
      "installer_customer" =&gt; array(
          "regular_price" =&gt; $installer_price
          )
      );
  return serialize( $price_array );
  </code></pre>
  
  <p>}</p>
  
  <p>This is what my CSV looks Like</p>
  
  <pre><code>user_role;Code;regular_price
  installer_customer;ProductCode;1000
  distributor_customer;ProductCode;1500
  </code></pre>
  
  <p>The Mysql Table With Manually Set Role Prices Before Import</p>
  
  <pre><code>meta_key: _role_based_price
  meta_value: a:2:{s:20:"distributor_customer";a:1:{s:13:"regular_price";s:4:"1100";}s:18:"installer_customer";a:1:{s:13:"regular_price";s:4:"1300";}}
  </code></pre>
  
  <p>The Mysql Table With Price After Import</p>
  
  <pre><code>meta_key: _role_based_price
  meta_value: a:2:{s:20:"distributor_customer";a:1:{s:13:"regular_price";N;}s:18:"installer_customer";a:1:{s:13:"regular_price";N;}}
  </code></pre>