Forum Replies Created
-
AuthorPosts
-
September 13, 2024 at 10:35 PM in reply to: RestAPI, limit fields in response + Cache strategies #46449
Peter
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?
Peter
ModeratorHello Yasmine,
Can you share a screen record of the issue with validation for the cloneable subfield when you use Meta Box 5.10.1? I test your code on my demo site and the validation (required) works properly for the cloneable subfield, screenshot https://imgur.com/zxjvP8L
Peter
ModeratorHello,
It doesCan you share a screenshot that demonstrates "Elementor supports displaying an external image from the dynamic tag"? Notice the
dynamic tag. And with the widget of Elementor, not a widget from a third-party plugin.Peter
ModeratorHello,
Yes, the frontend validation uses the PHP code to validate the data and it is running in the admin area then sends the result to the frontend.
September 12, 2024 at 10:23 PM in reply to: ✅Field inside a popup not looping through in MB View #46429Peter
ModeratorHello,
First thing, I see the product details are displayed correctly with the Twig code. So it isn't an issue with MB Views, screenshot https://ibb.co/qJns2Px
Second, I use the Inspect tool of the browser and see that the popup element ID isn't correct. It has
${id}variable in the HTML ID, screenshot https://ibb.co/tDnSV8W
you can recheck your code.The last thing, is is a custom code and not an issue of the MB Views plugin itself so this case is beyond our scope of support. If you cannot complete the task, we offer a customization service with an extra fee. Please contact us here for more details https://metabox.io/contact/
Peter
ModeratorHello,
Can you share the access to view the screenshot? And let me know the page that has the frontend form on your site.
September 12, 2024 at 10:02 PM in reply to: Page opens very slowly when accessed to add more entries in the backend #46427Peter
ModeratorHello Dragan,
If you have too many subfields when editing a page, it could slow down a bit to load the field settings. Using the custom table can help you to improve the loading time. You can try to use that feature.
After that, if you still see the page loads very slow, please try to deactivate all plugins except Meta Box, MB extension plugins, switch to a WordPress theme and observe the loading time again.
September 11, 2024 at 11:04 PM in reply to: Validation of date field - same as another date field within a group #46424Peter
ModeratorHello Fredrik,
With PHP code, you can use the filter hook
rwmb_after_save_fieldto validate the field value.
https://docs.metabox.io/actions/rwmb-after-save-field/With Javascript code, you need to create a custom code to check the two field values. Meta Box only supports validating for a single field with code. Refer documentation
https://docs.metabox.io/validation/September 11, 2024 at 10:56 PM in reply to: metabox block category null in WP_Block_Type_Registry #46423Peter
ModeratorYou can try to deactivate all plugins except Meta Box, MB extension plugins, switch to a WordPress theme and check this issue again.
Peter
ModeratorHello,
I can see the issue with the conditional logic on my demo site when running Meta Box AIO 1.30.1. I've escalated the issue to the development team to check it, I will get back to you later.
-
AuthorPosts