Forum Replies Created
-
AuthorPosts
-
Peter
ModeratorHello,
There is an issue with the Conditional logic in the current version. We will have a release in the next few days to fix the issue. After that, you can recheck the issue on your site.
Thank you.
Peter
ModeratorYes, at least for now. I've informed the development team to check if we can support working with WooCommerce products via MB Rest API v2. Otherwise, we will update the documentation regarding WooCommerce product because it has its own API.
Thank you.
Peter
ModeratorWas it just cloneable fields the index changed for?Yes, only the index of the cloneable field is updated from Meta Box version 5.10.0.
Are they likely to change again?I'm not sure about that, but the index is updated from the new version.
September 15, 2024 at 9:35 PM in reply to: Getting the field data (text and images) for specific sections in cloned groups #46461Peter
ModeratorHello,
I see that the function
get_metabox_cloned_image()to get the image advanced field value in a cloneable group is correct. But I'm not sure about the code in 2 filter hooksbricks/dynamic_data/register_sourcesandbricks/dynamic_data/render_content. Maybe you can ask the Bricks support to get further assistance.September 15, 2024 at 3:27 PM in reply to: RestAPI, limit fields in response + Cache strategies #46460Peter
ModeratorHello,
Please notice that MB Rest API doesn't create a new route, it only adds the key "meta_box" to the WordPress endpoints (routes) and allows you to get/update the meta box fields. So I'm afraid that it doesn't meet your requirements.
Following the documentation https://docs.metabox.io/extensions/mb-rest-api/Peter
ModeratorHello,
There is an issue with the Conditional logic in the current version. We will have a release next week to fix the issue. After that, you can recheck the issue on your site.
Thank you.
September 13, 2024 at 11:13 PM in reply to: Migrating an ACF big site + restructuring field groups #46452Peter
ModeratorHello Oscar,
Sorry for the late reply. Can you please share your site admin account via this contact form https://metabox.io/contact/ so I can take a look?
Peter
ModeratorHello,
So it's not an issue of Meta Box itself. The cloneable item now starts the index from 1. You can try to change the index from 0 to 1 and see if it helps.
academicfindings[1][academicfinding]Also note that, supporting a customization code is beyond our scope of support. If you want to use a customization service, please contact us here for more details https://metabox.io/contact/
September 13, 2024 at 10:48 PM in reply to: Getting the field data (text and images) for specific sections in cloned groups #46450Peter
ModeratorHello,
Can you please export the field group to a JSON file and share it here? I need to check the settings of group and image advanced fields to give a better suggestion to get the field value.
Following the documentation https://docs.metabox.io/extensions/meta-box-builder/#export--importSeptember 13, 2024 at 10:35 PM in reply to: RestAPI, limit fields in response + Cache strategies #46449Peter
ModeratorHello,
1. You can follow the documentation to hide a field from Rest API
https://docs.metabox.io/extensions/mb-rest-api/#hiding-a-field2. MB Rest API doesn't support a feature to cache the rest request. You can use a third-party plugin to cache the request, for example
https://wordpress.org/plugins/wp-rest-cache/
https://wordpress.org/plugins/litespeed-cache/Peter
ModeratorHello,
There is an issue with the conditional logic in the new version and our development team has been aware of this. It should be fixed in the next update of our plugins.
Thank you.
Peter
ModeratorI understand your situation. However, to adapt to new changes from WooCommerce, we also need to update the code on our side. Please bear with us.
Let me know if you can update the field value via WC API v3.
Peter
ModeratorHello,
To update the WooCommerce product, you need to use its Rest API endpoint v3, with the field ID and value in the body request.
{ "meta_data": [ { "key": "field_id", "value": "field value" } ] }For example: I use Postman app to update a field value of a product ID 2086
URL http://site.com/metabox/wp-json/wc/v3/products/2086
screenshot https://imgur.com/nUMwFkJRefer to this topic
https://stackoverflow.com/questions/70696204/update-order-custom-field-value-with-woocommerce-rest-apiPeter
ModeratorHere https://imgur.com/vpDLOx5
I add some test values and it is saved as well.September 12, 2024 at 11:15 PM in reply to: Getting the field data (text and images) for specific sections in cloned groups #46436Peter
ModeratorHello Fredrik,
It is sustainable to use the WordPress function
get_post_meta()to get the field value from the tablewp_postmetawhen Meta Box is updated or even deactivated.Regarding the image, which is the field type that you are using?
-
AuthorPosts