Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • in reply to: Store Banner Edition on Modal Window #67276
    Sandor
    Participant

    Thank you very much Anna,

    I will change my workaround using hidden windows instead of ajax. For research purpose only, what I saw is that the is_admin() WP function prevents the loading of scripts and styles when the logged user invokes WP ajax. But I don’t know if this response came from WC Vendors, or from Buddypress plugin, or from Onesocial Marketplace theme (which I’am using). Maybe this line will be useful for someone else.

    Thanks again.

    in reply to: Pro Dashboard in different languages #58220
    Sandor
    Participant

    @karen, I don’t know what WCML is, I’m sorry…

    in reply to: Pro Dashboard in different languages #58219
    Sandor
    Participant

    Thanks, @fervous. I will be amazingly happy when somebody who sell somthing be more explicit in the communication about this kind of subtil things. If somebody say that free version is WPML compatible, and do not says that the PRO is not, we the customers, or portential customers, can imagine with reason that both are compatible. Am I wrong?

    When I read some non-free add-on documentation in WordPress world I feel like I was reading a legal paper, with a lot of “fine print”, and this is not good at all. I think is not necesary: Wc Vendors and other plugins are very good and very useful, and can warn about known erros or incomplete features.

    Multiple translations is one of the more required features of WPML. Why don’t warn about this? I say this with the only intention of colaborate with the developers community. I often have this kind of issues in multiple cases with multiple add-ons.

    in reply to: Pro Dashboard in different languages #58195
    Sandor
    Participant

    I don’t love WPML for some reasons, but I think this is maybe a WC Vendors issue. I don’t find WC Vendors in Plugin Compatibility list of WPML: https://wpml.org/documentation/plugins-compatibility/. But in WC Vendors page of WordPress Plugins, you find the WPML compatibility feature (I attach a screenshot).

    The hack I wrote to solve this issue affects WC Vendors flow, not WPML. I try to be comprensive with this kind of issues because I think these systems have some complexity, but I agree that is not good at all to pay for tools that promise functionalities that actually don’t work.

    In my opinion, we must consider that the plugins that intercept the normal routines of WordPress and create some specific views outside the WordPress flow (e.g. WC Vendors Dashboard) have the responsability of guarantee responses with the same behavior that is expected for normal WordPress implementations, behavior with which others developers will work to create his own plugins.

    In this case, WC Vendors modifies the publication flow, and we are wrong in the hope that WPML catch it.

    Please, correct me if I am wrong.

    in reply to: Pro Dashboard in different languages #58119
    Sandor
    Participant

    Hi @dannykater,

    I saw the 404 error when my translated version of the dashboard page has customized slug. In my case, i deleted the translated version and created new one by duplicating the original, changing only the title. With this settings, I get the supages functional.

    Please, let me know if this is useful for you.

    in reply to: Pro Dashboard in different languages #58037
    Sandor
    Participant

    Erratum: where it says function_exists must say class_exists. I’m sorry.

    in reply to: Pro Dashboard in different languages #57959
    Sandor
    Participant

    Hi,

    I temporarily solved it like this, from my plugin code, or functions.php:

    function catch_dashboard(){
    	/* WC Vendors Pro */
    	if(!function_exists('WCVendors_Pro')) return false;
    	// Get the dashboard page id, from WC Vendors PRO option
    	$dashboard_page_id 	= WCVendors_Pro::get_option( 'dashboard_page_id' );
    	// Get the original or translated ID form WPML, as appropriate, and chek if both are equal
    	$is_dashboard = (get_the_ID() == icl_object_id($dashboard_page_id));
    	return $is_dashboard;
    }
    // Filter form WC Vendors plugin
    add_filter( 'wcv_view_dashboard', 'catch_dashboard' );

    Additionally, I filtered the WP body_class too, to get the same style from my theme:

    add_filter( 'body_class', function($classes){
    	if(catch_dashboard()){
    		$classes[] = 'wcvendors wcvendors-pro wcv-pro-dashboard';
    		$classes[] = 'vendor-pro-dashboard';
    		$classes[] = 'woocommerce';
    		if(current_user_can('administrator')) {
    			$classes[] = 'administrator';
    		}
    	}
    	return $classes;
    });

    I hope it will be usefull. Thanks all for the thread.

Viewing 7 posts - 1 through 7 (of 7 total)