Repository Forums Support WooCommerce Extended Coupon Features PRO Bulk Generate and Disallowed User Roles Reply To: Bulk Generate and Disallowed User Roles

#3220
Soft79
Keymaster

Hi,

customer rules are the custom field ‘_wjecf_customer_roles’. When using the default WordPress importer/exporter it is included in the XML (WXR) file, but the value is stored as php-style serialized data e.g.


<wp:postmeta>
  <wp:meta_key><![CDATA[_wjecf_customer_roles]]></wp:meta_key>
  <wp:meta_value><![CDATA[a:1:{i:0;s:8:"customer";}]]></wp:meta_value>
</wp:postmeta>

The checkbox “First purchase only” on the usage limits tabs can be used for your scenario. This is exported as field _wjecf_first_purchase_only.