Hi ther Toolset-Team,
I am trying to: display my custom field for a product in a shop in the information tab on the product single page. I have to use a theme my customer wants to use (Aurum). So i added my view in the functions.php like this:
some code with add_filter.... and then:
function woo_custom_information_tab_content() {
echo render_view( array( 'name' => 'view-anzeige-produkt-details' ) );
}
The view is shown on the product details page but it lists the custom fields of all products in the loop...
I think maybe my brain is on a go-slow here....
How can i just show the custom fields of the current product here? i mean something like "Value set by the current page where this View is shown". But this is no option in the filter when i want the view to show products....
or do i just have to add the content template in the functions? I want to use the functions.php, because i do not want to touch the themes single-product. php or whatever that is called 😉
Hope you can help
Thanks in advance
Hannes
Ahhhh.... My issue is resolved now.
I used echo render_view_template( ID of template ); and it works.