- PODS
- WC Subscription
- General
When importing custom fields that are not unique (multiple values with the same meta_key), PODS adds a filter to force the data t save as "unique". So you only end up with 1 values from your array saved.
- WordPress
- WooCommerce
- Formatting
Grab the term_id or post_id from the meta tables, by the old id you stored.
[cb_get_object_id( {old_id[1]}, "_old_id", "post" ) ]
Output the name of the new term by the old id. Useful if you product CSV has numbers for categories instead of names.
[cb_get_term_name_from_old_id( {old_id[1]}, "_old_id" ) ]
Set the tax and shipping classes.
[cb_wc_taxable_status( {field[1]} ) ]
Use the following in converting units for the shipping dimensions.
[cb_convert_unit( {weight[1]}, {weight_units[1]}, "g" ) ]
[cb_convert_unit( {length[1]}, {length_units[1]}, "cm" ) ]
[cb_convert_unit( {width[1]}, {width_units[1]}, "cm" ) ]
[cb_convert_unit( {height[1]}, {height_units[1]}, "cm" ) ]
add_action('pmxi_update_post_meta', 'cb_wc_set_catalog_visibility', 10, 3);
add_action('pmxi_update_post_meta', 'cb_wc_set_featured', 10, 3);
[cb_convert_unit( {field[1]}, "kg", "g" ) ]
If your line items are exported into a json string, you can use the following to run through the array of stdClasses and grab a certain index.
[cb_wc_line_item_info( {line_items[1]}, "name" ) ]
e.g "Plugin 1" or multiple items "Plugin 1|Plugin 2"