Forum Replies Created

Viewing 15 replies - 1 through 15 (of 16 total)
  • Great job Raul, thanks!

    Solution:
    If you use it with the shortcode:
    Open “\wp-content\plugins\twenty20\inc\twenty20-shortcode.php”
    find line 75
    $output .= '<script>jQuery(window).load(function(){';
    and replace it with:
    $output .= '<script>jQuery(window).on("load", function(){';
    Save & close.

    If you use the widget:
    Open “\wp-content\plugins\twenty20\inc\widget-twenty20.php”
    find line 61
    jQuery(window).load(function(){
    and replace it with:
    jQuery(window).on('load', function(){
    Save & close.

    That’s it! Cheers!

    Give a brother a beer

    Solution:
    If you use it with the shortcode:
    Open “\wp-content\plugins\twenty20\inc\twenty20-shortcode.php”
    find line 75
    $output .= '<script>jQuery(window).load(function(){';
    and replace it with:
    $output .= '<script>jQuery(window).on("load", function(){';
    Save & close.

    If you use the widget:
    Open “\wp-content\plugins\twenty20\inc\widget-twenty20.php”
    find line 61
    jQuery(window).load(function(){
    and replace it with:
    jQuery(window).on('load', function(){
    Save & close.

    That’s it! Cheers!

    Give a brother a beer

    Solution:
    If you use it with the shortcode:
    Open “\wp-content\plugins\twenty20\inc\twenty20-shortcode.php”
    find line 75
    $output .= '<script>jQuery(window).load(function(){';
    and replace it with:
    $output .= '<script>jQuery(window).on("load", function(){';
    Save & close.

    If you use the widget:
    Open “\wp-content\plugins\twenty20\inc\widget-twenty20.php”
    find line 61
    jQuery(window).load(function(){
    and replace it with:
    jQuery(window).on('load', function(){
    Save & close.

    That’s it! Cheers!

    Give a brother a beer

    Solution:
    If you use it with the shortcode:
    Open “\wp-content\plugins\twenty20\inc\twenty20-shortcode.php”
    find line 75
    $output .= '<script>jQuery(window).load(function(){';
    and replace it with:
    $output .= '<script>jQuery(window).on("load", function(){';
    Save & close.

    If you use the widget:
    Open “\wp-content\plugins\twenty20\inc\widget-twenty20.php”
    find line 61
    jQuery(window).load(function(){
    and replace it with:
    jQuery(window).on('load', function(){
    Save & close.

    That’s it! Cheers!

    Give a brother a beer

    Thread Starter negru13

    (@negru13)

    Solution:
    If you use it with the shortcode:
    Open “\wp-content\plugins\twenty20\inc\twenty20-shortcode.php”
    find line 75
    $output .= '<script>jQuery(window).load(function(){';
    and replace it with:
    $output .= '<script>jQuery(window).on("load", function(){';
    Save & close.

    If you use the widget:
    Open “\wp-content\plugins\twenty20\inc\widget-twenty20.php”
    find line 61
    jQuery(window).load(function(){
    and replace it with:
    jQuery(window).on('load', function(){
    Save & close.

    That’s it! Cheers!

    Give a brother a beer

    Thread Starter negru13

    (@negru13)

    Sure, I’ve modified the review. Good luck with the plugin!

    • This reply was modified 4 years ago by negru13.
    negru13

    (@negru13)

    Same REST API error here.. please take a look at your code.

    negru13

    (@negru13)

    +4 Same error here man. Please take a look at your code.

    • This reply was modified 4 years ago by negru13.
    Thread Starter negru13

    (@negru13)

    Since no one answered this is all that I’ve managed to achieve, maybe it serves anyone else stuck in this matter:

            add_filter( 'um_first_name_form_edit_field', 'my_form_edit_field', 10, 2 );
            function my_form_edit_field( $output, $mode ) {
            
              $fields = UM()->builtin()->get_specific_fields( 'first_name' );
              foreach ($fields as $key => $value) {
               
                $fields['first_name']['placeholder'] = $fields['first_name']['title'];
                $field_value = get_user_meta(um_user('ID'), $key, true) ? : '';
            
                $output = '<div class="um-field um-field-'.$key.'" data-key="'.$key.'">
                <div class="um-field-label">
                <label for="'.$key.'">'.$fields['first_name']['title'].'</label>
                <div class="um-clear"></div>
                </div>
                <div class="um-field-area">
                <input class="um-form-field valid "
                type="text" name="'.$key.'"
                id="'.$key.'" value="'.$field_value.'"
                placeholder="'.$fields['first_name']['title'].'"
                data-validate="" data-key="'.$key.'">
                </div>
                </div>';
            
                //echo $output;
              }
            
            
              return $output;
            }

    I still need a way to do this for all the fields not only for a specific one like this.

    Thread Starter negru13

    (@negru13)

    So, what should I do here? It’s been 2 weeks. How do I get this plugin to display the correct price instead of 0.0?

    Thread Starter negru13

    (@negru13)

    Hi,
    Yes, all settings that you highlighted are the same on my side. Also, I’ve noticed that on my product page in the backend I get “Invalid product to use this tool!”.
    My website is on my localhost for testing purposes..

    Thread Starter negru13

    (@negru13)

    Ok, I see here is the data:

    {"project":{"name":"project","label":"Projects","singular_label":"Project","description":"","public":"true","publicly_queryable":"true","show_ui":"true","show_in_nav_menus":"true","show_in_rest":"false","rest_base":"","rest_controller_class":"","has_archive":"false","has_archive_string":"","exclude_from_search":"false","capability_type":"post","hierarchical":"false","rewrite":"true","rewrite_slug":"","rewrite_withfront":"true","query_var":"true","query_var_slug":"","menu_position":"","show_in_menu":"true","show_in_menu_string":"","menu_icon":"","supports":["title","editor","thumbnail","excerpt","custom-fields","comments","revisions","author","page-attributes","post-formats"],"taxonomies":["category"],"labels":{"new_item":"Project","menu_name":"","all_items":"","add_new":"","add_new_item":"","edit_item":"","view_item":"","view_items":"","search_items":"","not_found":"","not_found_in_trash":"","parent_item_colon":"","featured_image":"","set_featured_image":"","remove_featured_image":"","use_featured_image":"","archives":"","insert_into_item":"","uploaded_to_this_item":"","filter_items_list":"","items_list_navigation":"","items_list":"","attributes":"","name_admin_bar":""},"custom_supports":""},"homepage_featured":{"name":"homepage_featured","label":"Homepage featured","singular_label":"homeage featured","description":"posts that appear in homepage ","public":"true","publicly_queryable":"true","show_ui":"true","show_in_nav_menus":"true","show_in_rest":"false","rest_base":"","rest_controller_class":"","has_archive":"false","has_archive_string":"","exclude_from_search":"false","capability_type":"post","hierarchical":"false","rewrite":"true","rewrite_slug":"","rewrite_withfront":"true","query_var":"true","query_var_slug":"","menu_position":"","show_in_menu":"true","show_in_menu_string":"","menu_icon":"","supports":[],"taxonomies":[],"labels":{"new_item":"homepage_featured","archives":"homepage_featured","name_admin_bar":"homepage_featured","menu_name":"","all_items":"","add_new":"","add_new_item":"","edit_item":"","view_item":"","view_items":"","search_items":"","not_found":"","not_found_in_trash":"","parent_item_colon":"","featured_image":"","set_featured_image":"","remove_featured_image":"","use_featured_image":"","insert_into_item":"","uploaded_to_this_item":"","filter_items_list":"","items_list_navigation":"","items_list":"","attributes":""},"custom_supports":""},"team_member":{"name":"team_member","label":"Team","singular_label":"Member","description":"","public":"true","publicly_queryable":"true","show_ui":"true","show_in_nav_menus":"true","show_in_rest":"false","rest_base":"","rest_controller_class":"","has_archive":"false","has_archive_string":"","exclude_from_search":"false","capability_type":"post","hierarchical":"false","rewrite":"true","rewrite_slug":"","rewrite_withfront":"true","query_var":"true","query_var_slug":"","menu_position":"","show_in_menu":"true","show_in_menu_string":"","menu_icon":"","supports":["title","editor","thumbnail","custom-fields","page-attributes"],"taxonomies":[],"labels":{"new_item":"team_member","menu_name":"","all_items":"","add_new":"","add_new_item":"","edit_item":"","view_item":"","view_items":"","search_items":"","not_found":"","not_found_in_trash":"","parent_item_colon":"","featured_image":"","set_featured_image":"","remove_featured_image":"","use_featured_image":"","archives":"","insert_into_item":"","uploaded_to_this_item":"","filter_items_list":"","items_list_navigation":"","items_list":"","attributes":"","name_admin_bar":""},"custom_supports":""}}

    Thread Starter negru13

    (@negru13)

    Sure, here:

    First

    name: project
    label: Projects
    singular_label: Project
    description: ""
    public: true
    publicly_queryable: true
    show_ui: true
    show_in_nav_menus: true
    show_in_rest: false
    rest_base: ""
    rest_controller_class: ""
    has_archive: false
    has_archive_string: ""
    exclude_from_search: false
    capability_type: post
    hierarchical: false
    rewrite: true
    rewrite_slug: ""
    rewrite_withfront: true
    query_var: true
    query_var_slug: ""
    menu_position: ""
    show_in_menu: true
    show_in_menu_string: ""
    menu_icon: ""
    custom_supports: ""

    Second

    name: homepage_featured
    label: Homepage featured
    singular_label: homeage featured
    description: posts that appear in homepage 
    public: true
    publicly_queryable: true
    show_ui: true
    show_in_nav_menus: true
    show_in_rest: false
    rest_base: ""
    rest_controller_class: ""
    has_archive: false
    has_archive_string: ""
    exclude_from_search: false
    capability_type: post
    hierarchical: false
    rewrite: true
    rewrite_slug: ""
    rewrite_withfront: true
    query_var: true
    query_var_slug: ""
    menu_position: ""
    show_in_menu: true
    show_in_menu_string: ""
    menu_icon: ""
    custom_supports: "" 

    Third

    name: team_member
    label: Team
    singular_label: Member
    description: ""
    public: true
    publicly_queryable: true
    show_ui: true
    show_in_nav_menus: true
    show_in_rest: false
    rest_base: ""
    rest_controller_class: ""
    has_archive: false
    has_archive_string: ""
    exclude_from_search: false
    capability_type: post
    hierarchical: false
    rewrite: true
    rewrite_slug: ""
    rewrite_withfront: true
    query_var: true
    query_var_slug: ""
    menu_position: ""
    show_in_menu: true
    show_in_menu_string: ""
    menu_icon: ""
    custom_supports: "" 

    This is the info below “Settings”

    Thread Starter negru13

    (@negru13)

    Update:
    The issue was not the plugin, was the wordpress 5.0.3 update that caused the Orders (All) not showing up problem.
    For fixing this issue add to your website through a code snippet plugin this code:

    function fix_request_query_args_for_woocommerce( $query_args ) {
    	if ( isset( $query_args['post_status'] ) && empty( $query_args['post_status'] ) ) {
    		unset( $query_args['post_status'] );
    	}
    	return $query_args;
    }
    add_filter( 'request', 'fix_request_query_args_for_woocommerce', 1, 1 );

    This is a temporary fix.

    • This reply was modified 5 years, 10 months ago by negru13.
Viewing 15 replies - 1 through 15 (of 16 total)