Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • in reply to: Add custom fields to WooCommerce Order #49758
    FrancescoFrancesco
    Participant

    Thanks a lot Peter, I have done it!
    A few more questions:
    - is there a way to let Woo Clients only edit the existing fields and not adding more clonable fields to the group?
    - is there a way to add custom classes to forntend submission form buttons?
    - is there a way to customize the Submit button?

    Thanks a lot.
    Best regards.

    in reply to: Add custom fields to WooCommerce Order #49717
    FrancescoFrancesco
    Participant

    Hi there! Could you please help me with this?

    in reply to: Add custom fields to WooCommerce Order #49657
    FrancescoFrancesco
    Participant

    Ok, thanks.
    And what about editing custom fields linked to each order in the single order detail page located in the woocommerce account page?
    It would be possibile through the metabox frontend submission extension?

    in reply to: Add custom fields to WooCommerce Order #49648
    FrancescoFrancesco
    Participant

    Ok, now custom fields are showing correctly, thank you!
    Do you think it would be possible to complete this order custom fields during the WooCommerce checkout process?

    FrancescoFrancesco
    Participant

    Hi Zeylstra, in my website the MetaBox Frontend Submission Shortcode (example "[mb_frontend_dashboard edit_page="318" ...... ") the edit_page ID was wrong: it seems like with an update it was changed...
    I can't explain why but this was the solution to my issue.

    FrancescoFrancesco
    Participant

    SOLVED, SOLUTION:
    if you are using Bricks Builder go edit the page with the frontend form, choose the Submission Form element and be sure to select an Object Type for the Submission Form!

    in reply to: MB Frontend Submission stopped working in the latest weeks #47406
    FrancescoFrancesco
    Participant

    Hi Peter,
    thanks for your help.

    Yes, the Subscriber is the author of the post.

    I am using MetaBox 5.10.5 and Meta Box AIO 1.31.1.

    I've just tested it enabling only the two MetaBox plugins, MemberPress and WPCodeBox but it always show the “You are not allowed to edit this post.” notice.

    FrancescoFrancesco
    Participant

    Again thanks P. Zeylstra. for your help, I really appreciated it!

    I added the “Object type” option and set it to post for the frontend dashboard shortcode but it finally turned out that the “Edit page” option (ID of the editing page) was changed. Don't know why but in this case this was the issue.

    Thanks again.
    Best regards.

    FrancescoFrancesco
    Participant

    Thanks a lot for your quick reply P. Zeylstra.

    Could you please explain to me how and where to define the object type?

    Thanks in advance

    FrancescoFrancesco
    Participant

    Hi there! I have the same issue with Bricks Builder and MetaBox Frontend sumbission form that worked fine.
    Did you find out what is wrong with it now? Is it one of the latests Bricks updates that breakes it?

    in reply to: How to remove the slug from the permalink of a CPT #42271
    FrancescoFrancesco
    Participant

    Thanks Knut! I will try your solution.

    in reply to: How to remove the slug from the permalink of a CPT #42026
    FrancescoFrancesco
    Participant

    I can't make the code snippet work, anyone more lucky then me?

    in reply to: How to remove the slug from the permalink of a CPT #42025
    FrancescoFrancesco
    Participant

    +1 MetaBox should support removing the CPT slug from the URL!

    in reply to: Get CFs from Taxonomy terms - Oxygen #38862
    FrancescoFrancesco
    Participant

    Thank you, now it works fine!
    Best regards,
    Francesco

    in reply to: Get CFs from Taxonomy terms - Oxygen #38848
    FrancescoFrancesco
    Participant

    Of course, here is the MetaBox PHP code for the taxonomy Custom Fields

    <?php
    add_filter( 'rwmb_meta_boxes', 'your_prefix_function_name' );
    
    function your_prefix_function_name( $meta_boxes ) {
        $prefix = '';
    
        $meta_boxes[] = [
            'title'      => __( 'Album Fotografie Custom Fields', 'your-text-domain' ),
            'id'         => 'categoria-fotografie-custom-fields',
            'taxonomies' => ['album-fotografie'],
            'fields'     => [
                [
                    'name'             => __( 'Album Fotografie - Immagine in evidenza', 'your-text-domain' ),
                    'id'               => $prefix . 'album_fotografie_immagine',
                    'type'             => 'image_advanced',
                    'max_file_uploads' => 1,
                ],
                [
                    'name'              => __( 'Album Fotografie - Gallerie Scelta', 'your-text-domain' ),
                    'id'                => $prefix . 'album_fotografie_gallerie_scelta',
                    'type'              => 'switch',
                    'label_description' => __( 'Settare su On/flaggare se l\'album deve comparire nella pagina Gallerie', 'your-text-domain' ),
                    'style'             => 'square',
                    'on_label'          => 'Visibile',
                    'off_label'         => 'Nascosto',
                ],
                [
                    'name'              => __( 'Album Fotografie - Pubblicazioni Scelta', 'your-text-domain' ),
                    'id'                => $prefix . 'album_fotografie_pubblicazioni_scelta',
                    'type'              => 'switch',
                    'label_description' => __( 'Settare su On/flaggare se l\'album deve comparire nella pagina Pubblicazioni', 'your-text-domain' ),
                    'style'             => 'square',
                    'on_label'          => 'Visibile',
                    'off_label'         => 'Nascosto',
                ],
                [
                    'name' => __( 'test', 'your-text-domain' ),
                    'id'   => $prefix . 'test',
                    'type' => 'text',
                    'std'  => '1234test campo personalizzato',
                ],
            ],
        ];
    
        return $meta_boxes;
    }

    And here is the PHP Code for the Taxonomy

    <?php
    add_action( 'init', 'your_prefix_register_taxonomy' );
    function your_prefix_register_taxonomy() {
    	$labels = [
    		'name'                       => esc_html__( 'Album Fotografie', 'your-textdomain' ),
    		'singular_name'              => esc_html__( 'Album Fotografie', 'your-textdomain' ),
    		'menu_name'                  => esc_html__( 'Album Fotografie', 'your-textdomain' ),
    		'search_items'               => esc_html__( 'Search Album Fotografie', 'your-textdomain' ),
    		'popular_items'              => esc_html__( 'Popular Album Fotografie', 'your-textdomain' ),
    		'all_items'                  => esc_html__( 'All Album Fotografie', 'your-textdomain' ),
    		'parent_item'                => esc_html__( 'Parent Album Fotografie', 'your-textdomain' ),
    		'parent_item_colon'          => esc_html__( 'Parent Album Fotografie:', 'your-textdomain' ),
    		'edit_item'                  => esc_html__( 'Edit Album Fotografie', 'your-textdomain' ),
    		'view_item'                  => esc_html__( 'View Album Fotografie', 'your-textdomain' ),
    		'update_item'                => esc_html__( 'Update Album Fotografie', 'your-textdomain' ),
    		'add_new_item'               => esc_html__( 'Add New Album Fotografie', 'your-textdomain' ),
    		'new_item_name'              => esc_html__( 'New Album Fotografie Name', 'your-textdomain' ),
    		'separate_items_with_commas' => esc_html__( 'Separate album fotografie with commas', 'your-textdomain' ),
    		'add_or_remove_items'        => esc_html__( 'Add or remove album fotografie', 'your-textdomain' ),
    		'choose_from_most_used'      => esc_html__( 'Choose most used album fotografie', 'your-textdomain' ),
    		'not_found'                  => esc_html__( 'No album fotografie found.', 'your-textdomain' ),
    		'no_terms'                   => esc_html__( 'No album fotografie', 'your-textdomain' ),
    		'filter_by_item'             => esc_html__( 'Filter by album fotografie', 'your-textdomain' ),
    		'items_list_navigation'      => esc_html__( 'Album Fotografie list pagination', 'your-textdomain' ),
    		'items_list'                 => esc_html__( 'Album Fotografie list', 'your-textdomain' ),
    		'most_used'                  => esc_html__( 'Most Used', 'your-textdomain' ),
    		'back_to_items'              => esc_html__( '&larr; Go to Album Fotografie', 'your-textdomain' ),
    		'text_domain'                => esc_html__( 'your-textdomain', 'your-textdomain' ),
    	];
    	$args = [
    		'label'              => esc_html__( 'Album Fotografie', 'your-textdomain' ),
    		'labels'             => $labels,
    		'description'        => '',
    		'public'             => true,
    		'publicly_queryable' => true,
    		'hierarchical'       => false,
    		'show_ui'            => true,
    		'show_in_menu'       => true,
    		'show_in_nav_menus'  => true,
    		'show_in_rest'       => true,
    		'show_tagcloud'      => true,
    		'show_in_quick_edit' => true,
    		'show_admin_column'  => false,
    		'query_var'          => true,
    		'sort'               => false,
    		'meta_box_cb'        => 'post_tags_meta_box',
    		'rest_base'          => '',
    		'rewrite'            => [
    			'with_front'   => false,
    			'hierarchical' => false,
    		],
    	];
    	register_taxonomy( 'album-fotografie', ['fotografie'], $args );
    }

    My goal is to show on the frontend the Advanced Image and use the two switch inside the PHP code to create something like a conditional logic, but I am having issues also using the two switch, I can't query them.

Viewing 15 posts - 1 through 15 (of 16 total)