filipV-3
Admite hilos creados en los últimos 30 días: 0
Debates favoritos del foro
Este usuario no tiene debates favoritos.
Temas del foro creados
Status | Debate | Supporter | Voces | Mensajes | Caducidad |
---|---|---|---|---|---|
Custom type field entries won't save any more
1
2
Iniciado por: filipV-3 en: Toolset Professional Support |
3 | 30 | hace 6 años, 8 meses | ||
CRED repeating image fields – gallery. Woo and non-woo
Iniciado por: filipV-3
en: Toolset Professional Support
Problem: I would like to allow my site users to upload images and create a product image gallery when they create a new Product using CRED. I would rather not show the custom fields in the Product editing screen. Solution: Create a repeating image custom field and apply that field to the Product post type. Create a CRED form that will create new Products. Auto-generate the form so your custom repeated image input is added. Use the cred_save_data hook to capture the images uploaded with CRED, and determine the image IDs using the post guid and image URLs. Generate a comma-separated list of IDs, and store that list in the _product_image_gallery meta field of the new Product. add_action('cred_save_data', 'cred_product_gallery_action',10,2); function cred_product_gallery_action($post_id, $form_data) { global $wpdb; // if a specific form if ($form_data['id']==69) { if (isset($_POST['wpcf-product-gallery-image-cred'])) { $list_ids = array(); foreach($_POST['wpcf-product-gallery-image-cred'] as $url) { $item_id = $wpdb->get_col($wpdb->prepare("SELECT ID FROM $wpdb->posts WHERE guid='%s';", $url )); $list_ids[] = $item_id[0]; } update_post_meta($post_id, '_product_image_gallery', implode($list_ids,',')); delete_post_meta($post_id, 'wpcf-product-gallery-image-cred'); } } } You may twirl the custom field section closed in the Product editing screen, or you can hide it completely from the admin area using the Screen Options tab in the top right corner of the admin screen. Relevant Documentation: https://toolset.com/documentation/programmer-reference/cred-api/#cred_save_data |
2 | 11 | hace 6 años, 8 meses | ||
woocommerce product native taxonomies can’t make hierarchical
Iniciado por: filipV-3
en: Toolset Professional Support
Problem: I would like to use a select field to display Product Categories in a CRED form that creates WooCommerce Products, but I can only choose checkboxes. Solution: Modify the CRED field shortcode to use type "select" and single_select "true". [cred_field field='product_cat' display='select' single_select='true' output='bootstrap'] Relevant Documentation: https://toolset.com/documentation/user-guides/cred-shortcodes/#cred_field |
2 | 6 | hace 6 años, 8 meses | ||
no results map multiple markers
Iniciado por: filipV-3 en: Toolset Professional Support |
2 | 8 | hace 6 años, 8 meses | ||
Terribly frustrating!!
Iniciado por: filipV-3 en: Toolset Professional Support |
2 | 5 | hace 6 años, 8 meses | ||
can't save post field group multiple checkbox fields
Iniciado por: filipV-3 en: Toolset Professional Support |
2 | 6 | hace 7 años, 3 meses | ||
multiple currencies in post fields
Iniciado por: filipV-3 en: Toolset Professional Support |
2 | 2 | hace 7 años, 4 meses | ||
Cred Setup
Iniciado por: filipV-3 en: Toolset Professional Support |
2 | 3 | hace 7 años, 4 meses | ||
walkthrough CRED
Iniciado por: filipV-3 en: Toolset Professional Support |
2 | 4 | hace 7 años, 4 meses | ||
images no longer resize
Iniciado por: filipV-3 en: Toolset Professional Support |
3 | 13 | hace 7 años, 4 meses | ||
The fields and view button doesn't react in VC when used in The7 theme
Iniciado por: filipV-3 en: Toolset Professional Support |
2 | 4 | hace 7 años, 6 meses | ||
WPML can't translate added user fields content
Iniciado por: filipV-3 en: Toolset Professional Support |
2 | 10 | hace 7 años, 6 meses |