vilanova
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] International and national shippingHi! Thanks for your reply.
I think my problem is that any other shipping method I set up will generate this error, not necessarily Melhor Envio. To set up different fixed shipping rates for products shipped abroad, I set up 3 different classes (one for each product, currently we have 3 products): https://snipboard.io/AOLr16.jpg
In the Shipping Zones section, I set up the respective values: https://snipboard.io/WztF9G.jpg, <a href=”https://snipboard.io/T2wox4.jpg “>https://snipboard.io/T2wox4.jpg
Then, on the product itself, I selected the class, for example: https://snipboard.io/iu6g7I.jpg . I believe it is because I selected this class on the product that the other shipping method stopped working. Is this the correct way to set up flat rate shipping that varies depending on the product and quantity (in a scenario where you also have another shipping method set up)?thanks a lot,
thais
Forum: Plugins
In reply to: [WooCommerce] International and national shippingHi!
To confirm, Melhor Envio stops working, but does the international shipping work as expected?
exactly! the international shipping worked as expected
- WooCommerce > Settings > Shipping: https://snipboard.io/SPxdfo.jpg
- WooCommerce > Settings > Shipping > Click on Edit on a Shipping Zone (Brazil): https://snipboard.io/5WLrup.jpg and https://snipboard.io/WQ9CF2.jpg (same page)
- WooCommerce > Settings > Shipping > Click on Edit on a Shipping Zone (abroad): https://snipboard.io/3ZnkGv.jpg
- WooCommerce > Settings > Shipping > Click on Edit on a Shipping Zone > Click on edit on each shipping method so we can check the specific settings (Brazil): https://snipboard.io/UtidvL.jpg, https://snipboard.io/CJSMjN.jpg, https://snipboard.io/3TjQzD.jpg and https://snipboard.io/MHn5NI.jpg). “sem classe de entrega” = “no shipping classes”
- WooCommerce > Settings > Shipping > Click on Edit on a Shipping Zone > Click on edit on each shipping method so we can check the specific settings (abroad): https://snipboard.io/H6qkN7.jpg
- The cart/checkout page with the issue (Brazil): https://snipboard.io/xCsV1K.jpg (it is working)
- The cart/checkout page with the issue (abroad): In case the person chooses another country, I don’t have a screenshots to share because I don’t know how to configure it 🙂
thanks a lot!
thais
Forum: Plugins
In reply to: [Unofficial ConvertKit] 2 registration pagesHi!
where can i find this custom integration? only Registration Form and Comment From appear for me:
https://tinyurl.com/y5rnaagtthanks,
thaisForum: Plugins
In reply to: [Unofficial ConvertKit] New userHello thank you!
I was setting it up wrong. I managed to do the integration, thank you!Hi!
OK! but is there a way for me to add autocomplete = “new-password” in the password field?
thanks,
thaishi!
ok, thank you!
Hi!
thanks for the reply. Of course, the code I entered in the Snippet (and a screenshot of it here: https://tinyurl.com/y4f83skq):/** * Custom shortcode to display WPForms form entries. * * Basic usage: [wpforms_entries_table id="FORMID"]. * * Possible shortcode attributes: * id (required) Form ID of which to show entries. * user User ID, or "current" to default to current logged in user. * fields Comma seperated list of form field IDs. * number Number of entries to show, defaults to 30. * * @link https://wpforms.com/developers/how-to-display-form-entries/ * * @param array $atts Shortcode attributes. * * @return string */ function wpf_entries_table( $atts ) { // Pull ID shortcode attributes. $atts = shortcode_atts( [ 'id' => '', 'user' => '', 'fields' => '', 'number' => '', ], $atts ); // Check for an ID attribute (required) and that WPForms is in fact // installed and activated. if ( empty( $atts['id'] ) || ! function_exists( 'wpforms' ) ) { return; } // Get the form, from the ID provided in the shortcode. $form = wpforms()->form->get( absint( $atts['id'] ) ); // If the form doesn't exists, abort. if ( empty( $form ) ) { return; } // Pull and format the form data out of the form object. $form_data = ! empty( $form->post_content ) ? wpforms_decode( $form->post_content ) : ''; // Check to see if we are showing all allowed fields, or only specific ones. $form_field_ids = ! empty( $atts['fields'] ) ? explode( ',', str_replace( ' ', '', $atts['fields'] ) ) : []; // Setup the form fields. if ( empty( $form_field_ids ) ) { $form_fields = $form_data['fields']; } else { $form_fields = []; foreach ( $form_field_ids as $field_id ) { if ( isset( $form_data['fields'][ $field_id ] ) ) { $form_fields[ $field_id ] = $form_data['fields'][ $field_id ]; } } } if ( empty( $form_fields ) ) { return; } // Here we define what the types of form fields we do NOT want to include, // instead they should be ignored entirely. $form_fields_disallow = apply_filters( 'wpforms_frontend_entries_table_disallow', [ 'divider', 'html', 'pagebreak', 'captcha' ] ); // Loop through all form fields and remove any field types not allowed. foreach ( $form_fields as $field_id => $form_field ) { if ( in_array( $form_field['type'], $form_fields_disallow, true ) ) { unset( $form_fields[ $field_id ] ); } } $entries_args = [ 'form_id' => absint( $atts['id'] ), ]; // Narrow entries by user if user_id shortcode attribute was used. if ( ! empty( $atts['user'] ) ) { if ( $atts['user'] === 'current' && is_user_logged_in() ) { $entries_args['user_id'] = get_current_user_id(); } else { $entries_args['user_id'] = absint( $atts['user'] ); } } // Number of entries to show. If empty, defaults to 30. if ( ! empty( $atts['number'] ) ) { $entries_args['number'] = absint( $atts['number'] ); } // Get all entries for the form, according to arguments defined. // There are many options available to query entries. To see more, check out // the get_entries() function inside class-entry.php (https://a.cl.ly/bLuGnkGx). $entries = wpforms()->entry->get_entries( $entries_args ); if ( empty( $entries ) ) { return '<p>No entries found.</p>'; } ob_start(); echo '<table class="wpforms-frontend-entries">'; echo '<thead><tr>'; // Loop through the form data so we can output form field names in // the table header. foreach ( $form_fields as $form_field ) { // Output the form field name/label. echo '<th>'; echo esc_html( sanitize_text_field( $form_field['label'] ) ); echo '</th>'; } echo '</tr></thead>'; echo '<tbody>'; // Now, loop through all the form entries. foreach ( $entries as $entry ) { echo '<tr>'; // Entry field values are in JSON, so we need to decode. $entry_fields = json_decode( $entry->fields, true ); foreach ( $form_fields as $form_field ) { echo '<td>'; foreach ( $entry_fields as $entry_field ) { if ( absint( $entry_field['id'] ) === absint( $form_field['id'] ) ) { echo apply_filters( 'wpforms_html_field_value', wp_strip_all_tags( $entry_field['value'] ), $entry_field, $form_data, 'entry-frontend-table' ); break; } } echo '</td>'; } echo '</tr>'; } echo '</tbody>'; echo '</table>'; $output = ob_get_clean(); return $output; } add_shortcode( 'wpforms_entries_table', 'wpf_entries_table' );hi!
ok, thanks a lot.
Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] placeholder and ACFhello,
thanks. I managed to make it work.
function professor_nome( $replace, $EM_Event, $result ) { if( $result === "#_PROFESSOR" ) { $id = $EM_Event->output("#_ATT{professor}"); $replace = get_the_title( $id ); } return $replace; } add_filter('em_event_output_placeholder', 'professor_nome', 10, 3);thanks!
hello, i did it now but the error persists. but i realized that the site page appears correctly. Only in the panel that is the icon running all the time…
how can I do to get this fixed?
thanksForum: Plugins
In reply to: [Qubely - Advanced Gutenberg Blocks] Counter not workinghi!
thank you very much for your reply but I just changed the way I am doing this section.thanks!
Forum: Plugins
In reply to: [Custom Query Blocks] archive true but posttype not viewed in listthanks!
Forum: Plugins
In reply to: [Custom Query Blocks] archive true but posttype not viewed in listIt worked! thank you very much for your help. Could you give me your email? I am always in need of programmers who understand WordPress
thanksForum: Plugins
In reply to: [Custom Query Blocks] archive true but posttype not viewed in listhi!
I changed to another theme and still got the same error … do you believe this may be occurring because I have the site on localhost?Forum: Plugins
In reply to: [Custom Query Blocks] archive true but posttype not viewed in listHello!
Here is the full code:function post_type_programas() { $labels = array( 'name' => _x( 'Programas', 'Post Type General Name', 'text_domain' ), 'singular_name' => _x( 'Programa', 'Post Type Singular Name', 'text_domain' ), 'menu_name' => __( 'Programas', 'text_domain' ), 'name_admin_bar' => __( 'Programas', 'text_domain' ), 'archives' => __( 'Arquivo de Programas', 'text_domain' ), 'attributes' => __( 'Atributos de Programas', 'text_domain' ), 'parent_item_colon' => __( 'Item Pai:', 'text_domain' ), 'all_items' => __( 'Todos os Itens', 'text_domain' ), 'add_new_item' => __( 'Adicionar novo Item', 'text_domain' ), 'add_new' => __( 'Adicionar novo', 'text_domain' ), 'new_item' => __( 'Novo Item', 'text_domain' ), 'edit_item' => __( 'Editar Item', 'text_domain' ), 'update_item' => __( 'Atualizar Item', 'text_domain' ), 'view_item' => __( 'Ver Item', 'text_domain' ), 'view_items' => __( 'Ver Itens', 'text_domain' ), 'search_items' => __( 'Buscar Item', 'text_domain' ), 'not_found' => __( 'Não Encontrado', 'text_domain' ), 'not_found_in_trash' => __( 'Não Encontrado na Lixeira', 'text_domain' ), 'featured_image' => __( 'Imagem em Destaque', 'text_domain' ), 'set_featured_image' => __( 'Escolher Imagem em Destaque', 'text_domain' ), 'remove_featured_image' => __( 'Remover Imagem em Destaque', 'text_domain' ), 'use_featured_image' => __( 'Usar como Imagem em Destaque', 'text_domain' ), 'insert_into_item' => __( 'Inserir no Item', 'text_domain' ), 'uploaded_to_this_item' => __( 'Uploaded to this item', 'text_domain' ), 'items_list' => __( 'Items list', 'text_domain' ), 'items_list_navigation' => __( 'Items list navigation', 'text_domain' ), 'filter_items_list' => __( 'Filter items list', 'text_domain' ), ); $rewrite = array( 'slug' => 'programas', 'with_front' => true, 'pages' => true, 'feeds' => true, ); $args = array( 'label' => __( 'Programa', 'text_domain' ), 'description' => __( 'Programas do Pró-Saber', 'text_domain' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'thumbnail' ), 'taxonomies' => array( 'category', 'post_tag' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-smiley', 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'query_var' => 'programas', 'rewrite' => $rewrite, 'capability_type' => 'page', ); register_post_type( 'programas', $args ); } add_action( 'init', 'post_type_programas', 0 );thanks a lot!