I have created a metabox that actually works with Toolset Content Template, it shows / Hide elements depending on metabox values.
The issue comes when a Content Template is used for Edit Forms.
I have made following:
1- created a Content Template for WooCommerce single Products
2- created a Toolset form and added it to a Content Template, where i changed the metaboxes to hide many elements
3- try to edit one of the products, the content template has the metabox values of the Content Template for Single Products
This is happening because when editing a product, it's calling the ID of the Product / Content Template and not the ID of content Template of the Form. How to solve this? or what is the best way to call the ID of the content Template of the form?
I am using a custom theme with own metabox for controlling the Sidebar/Header/Footer/etc..
The Metabox is compatible with Toolset Content-Template (Toolset Blocks). I am using the Views Beta where i create content templates with Toolset Blocks.
The issue is the theme settings for Sidebar/footer/etc are not working when adding an edit post form to it. because the content Template is called like following:
hidden link
let's say
- the ID of the content template for single product is 10
- the ID of the content template where the Edit form is inserted to it is 20
when i try to edit the product it opens the form but it pulls the metabox values of content template with the ID 10. this means if the sidebar is disabled on Content Template with ID 10 and enabled with the content template ID 20, it will render the values of Content Template 10 and not 20 ( so it will be disabled).
I know it's sounds complicated but this was always like this with Content Templates when used for forms. it doesn't matter which Theme is used.
This is an edit Form (for product) added to a content template with the Theme setting metabox.. It doesn't matter what metabox values is it in this Content Template, it will always pull the value of the single product content template instead. to pull the correct value of this form content template i have pulled the id from the URL Path
Can you tell me more about how i can add an "edit button" to a new Page? and call this page within an edit post link?
example:
1 - crate page and add form to edit products
2- add "Edit Product link" on a product page
3- once clicked it opens the page form and product can be edited?