Problem:
How to access native WooCommerce Post Fields, like for example sku and sale_price, and others, with Toolset, so to display them?
Solution:
The ShortCode
helps you to display Product Meta data:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-woo-product-meta
It basically calls the WooCommerce
woocommerce_template_single_meta()
function that by default outputs the following:
Product SKU
Categories
Tags
Now, to output this in a more controlled way, you can use the "Post Fields" section in the GUI when you insert the Fields, but also have a look at the inbuilt ShortCodes here:
https://toolset.com/documentation/user-guides/views-shortcodes/#woocommerce-views
Most of the data can already be called with those ShortCodes.
SKU is a hidden field, not a regular WordPress Field.
So you need to first make it visible in Toolset by adding it in Toolset > Settings > Front-End Content > Hidden custom fields
Then it'll appear in the GUI under "Post Fields".
We have a new DOC that might hep you determine what you can and cannot use with Toolset and how to register the fields:
https://toolset.com/documentation/user-guides/creating-woocommerce-products-using-cred-forms/
It's related to CRED but the registration section and the Field's Table there is very useful for an overview.