Blog

Displaying the product extra options

Posted by:

You are here:
< Back

Note: Custom fields are only available in the full version

To create a custom field that displays the product name and all the selected options do the following:

1.- Go to WC Invoice/Custom fields and create a new custom fields.

2.- Create a custom field with this information:

Name: Whatever you want it to be named

Type: Table Column field (because this custom field is going to be added to your invoice table).

Code: return (new CArrayField(‘table’,’meta’,”))->GetVariations();

Your custom field should looks like this:

 

3.- Add your new custom field to your invoice table

And that’s it! Now your invoice will show all the custom fields it has:

0
  Related Posts
  • No related posts found.

Add a Comment