Home Forums WC Vendors Pro Support Pro Dashboard in different languages

NOTICE: We've Moved to a Ticket System for Support

As of August 31, 2017 (12am EST) our support forums will be retired (read-only), and we will be moving to a support ticket system.  This will allow us to better organize and answer support requests, and provide a more personalized experience as we assist our customers.

For the time being, we will leave our forums open for reading and learning while we work on creating a more robust Knowledge Base for everyone to use.

If you are a WC Vendors Pro customer please open a support ticket here. 

If you are a WC Vendors user please open a support ticket on the Wordpress.org forums.

The information on this forum is outdated and in most instances no longer relevant. Please be sure to check our documentation for the most up to date information.

https://docs.wcvendors.com/

Thank you to all of our customers!

 

Viewing 50 posts - 1 through 50 (of 52 total)
  • Author
    Posts
  • #38162
    Arvin Nuckchady
    Participant

    Hello,

    I am using wcv pro + wpml. I have an issue in woocommerce > wc vendors > pro tab.

    My site is in english, so I have a page called “pro dashboard”. I am translating it into French, so I have a page called “tableau de bord”. As you know, in “woocommerce > wc vendors > pro tab”, we have to select a WCV Pro Dashboard Page. If I select in english the page “Pro Dashboard”, this field become empty in French (same thing other way round. If I select in French “Tableau de bord”, the english field becomes empty). It’s like, I can’t display the pro dashboard in 2 languages. I have attached a picture showing the issue.

    Thanks for your helping me,

    Arvin

    #38170
    Arvin Nuckchady
    Participant

    I have just noticed that I have the same issue in the following tabs:

    – pages (vendor dashboard, shop settings, orders page, vendor terms)
    – vendor ratings (feedback form page)

    Every fields where I have to select a page become empty when I switch language.

    Thanks for letting me know what you think

    Arvin

    #38281
    Juan José
    Participant

    Hi, same issue for me. Please, any solution for this? Thanks.

    #38367
    Arvin Nuckchady
    Participant

    Hi Ben, Jamie,

    Sorry for bothering you guys. I am sure you are developing lots of new amazing features but I was wondering whether you had the time to look at my issues as it’s been 3 days already. It would be great to find a solution because the fields where I have to select a page become empty when I switch language. As you can imagine, these issues are of major importance for me.

    Thanks for your support,

    Arvin

    #38377
    WC Vendors Support
    Participant

    Hi Arvin,

    WPML audited WC Vendors Free & Pro and found it to be 100% compatible with their suite of plugins. This was for Free v1.9, and Pro v1.3. We dont run WPML or use it, so I’m not sure what other advice I can offer you on this one…..

    #38437
    Arvin Nuckchady
    Participant

    Thanks for your answer Ben.
    If you think that the issue comes from WPML, I will check with them.

    #38465
    WC Vendors Support
    Participant

    I wouldnt say the issue is a bug in WPML — I’d guess it’s more of a configuration issue. But again, I dont use it, so…. 🙂

    #40640
    Juan José
    Participant

    Hi @arvin.n,

    You solved the problem? I have the same problem and do not know how solve it.

    Thanks in advance,

    Juanjo

    #40643
    João
    Participant

    Hi,

    I had the same problem with wpml and also a problem with wpml and wcvendors shipping (don’t ask me what, but the whole thing just didn’t work perfectly) so I went to find another solution and found qTranslateX.

    This plugin doesn’t create any duplicate pages or products so everything is much easier and hard to break. Basically the translated terms are stored on the db like this: [:en]Hello[:fr]Bonjour[:]
    And then it shows just the desired language in the frontend. So even when you change the language it is fast as the page is still the same.

    Btw, I am working with the plugin developer to let vendors translate product titles and descriptions in the frontend dashboard. Also, he will find a way to define each user’s language so they only receive emails in the desired language (and not in the customer’s language or machine that generated the email. Right now if an someone buys in english, the french vendor receives that email also in english).

    Another advantage is that all the attention goes to the same page and is not spread to copies in other languages. For me that makes much more sense even in SEO terms. Ah, they also have some plugins to integrate woocommerce and yoast seo with qTranslate. I’m using and they work fine.

    So give it a try and you should be fine!

    #40662
    Jamie
    Keymaster

    Hello All,

    I’m currently working with the WPML team to get everything working so that we don’t have any problems. Can someone outline exactly what you’re doing with the different pages and the problems you’re having so that the WPML team can replicate the problem? They are not seeing the issues you’re having/are unable to recreate them.

    With regards to the dashboard page, we would have to create a filter in our get_dashboard_page so that wpml could override this to change the returned response based on the defined pages. We set one page only which is why this probably doesn’t work.


    @jpkapinha

    If you have any questions about the front end and the qtranslate stuff get the developer to send me an email (support _at_ wcvendors.com and I’ll assist also. The more plugins we can get working for languages other than english the better!

    cheers,

    Jamie.

    #40694
    João
    Participant

    @digitalchild, I will do that for sure. Currently I’m waiting for him to launch qTranslate next update and after that we will start coding the WC Vendors integration and I’ll put you in contact!

    Thanks,
    João Capinha

    #40893
    Arvin Nuckchady
    Participant

    Hello,


    @digitalchild
    thanks for your help.
    In few words, the issue is the following:

    – The default language is english. I want the site to be in French also.
    – In english, everything works fine but when i switch to French, all the styling in the pro frontend dashboard (WCV pro) is gone.
    – I found that in the 2nd language, there are some issues in wcv tabs : pro, pages, and vendor ratings. Every fields where I have to select a page are empty (pro dashboard, vendor dashboard, shop settings, order page, vendor terms, feedback form page). Even though I select a page, the field becomes empty when I refresh the page.
    NB: if I switch the default language to French. Then, the fields become empty when I select english.

    Please do not hesitate if I was not clear enough 🙂

    Thanks again !!

    #40912
    Jamie
    Keymaster

    Hello,

    It looks like I’m going to need a copy of WPML to do more testing. I’ll ask the WPML team so I can continue my testing. How do you have those pages configured on the backend?

    cheers

    Jamie.

    #41246
    Derek
    Participant

    exactly the same problem, hope there is an anwser!

    #41291
    Anna
    Member

    Derek,
    Jamie is currently working with the WPML team to try and achieve better integration with wc vendors.

    #43407
    Danny Kater
    Participant

    Hi guys,

    It all works fine for 1 language at the time. I set the WCV Pro Dashboard to the English page and the Dashboard works in English. But as soon as i switch WordPress to French and set the WCV Pro Dashboard to the French page the English setting disappears or gets overwritten.

    See attachements for the steps:
    1. English WCV Pro Dashboard page is set
    2. Switch to French, setting is empty
    3. Set French WCV Pro Dashboard page
    4. Switch to English, setting is empty

    Would be great if there’s a solutation for this soon.

    Thanks a lot!

    #43499
    Danny Kater
    Participant

    I see there is a WPML configuarion file added in the 1.9.4 update?

    #43611
    Jamie
    Keymaster

    Hello,

    The reason this only works for one language is because Pro needs to know what the dashboard_page_id to load well.. everything. Because you are loading different pages with different languages then it only works with one page. This is why styles and things have issues for your second or third language dashboards. I will have to look into how we can make this work with an array of page id’s instead of just a single id. I will look at creating a new filter in 1.4 so that you can hook in and add your extra page ids. We don’t have a multiple page selector interface for the backend.

    cheers,

    jamie.

    #45315
    Arvin Nuckchady
    Participant

    Hi Jamie,

    Thanks for helping us on that.
    Do you know when this issue will be fixed? Also, will it be easy to implement for non-coder if there is no multiple page selector interface in the backend? I don’t know anything about coding and I need to have the site working in both French and English. If there is no page selector, could you provide a step by step guide to make it work?

    Thanks a lot for your help @digitalchild.

    #48035
    Danny Kater
    Participant

    I temporarily solved it like this:

    In the WC Vendors Pro page “class-wcvendors-pro-dashboard.php” is replaced all:

    $dashboard_page_id = WCVendors_Pro::get_option( 'dashboard_page_id' );

    with:

        		// CUSTOM
    		global $sitepress;
    		
    		if ( $sitepress->get_current_language() == $sitepress->get_default_language()) {
            		$dashboard_page_id = WCVendors_Pro::get_option( 'dashboard_page_id' ); 
    		} else {
    			$dashboard_page_id = get_option( 'wcvdashboard_page_id_'.$sitepress->get_current_language() );	
    		}
    		// CUSTOM END

    Then just per WPML language add an option (in the WP options table in your DB) called: “wcvdashboard_page_id_fr”. The “fr” to be changed to the language shortcode.

    For some reason not all stylesheets and scripts are loaded properly. To start I had to enqueue the ink.min.css stylesheet:

    wp_enqueue_style( "", "https://surfsnb.com/wp-content/plugins/wc-vendors-pro/public/assets/lib/ink-3.1.10/dist/css/ink.min.css?ver=3.1.10" );

    Ratings, orders, products and add a product seem to work fine. Just the settings page misses some more scripts as the tabs aren’t working.

    Jamie, any idea why these scripts aren’t loaded anymore?

    #48844
    Danny Kater
    Participant

    Jamie, Ben, Anna,

    I’ve managed to kind of get it working by myself as described above. (I’ve just wrote some custom JS to make the tabs work.)

    Just one single problem for now: Sometimes there is a problem with the permalinks. One moment all the pages work, the next moment all pages give page not found error. After refreshing the permalinks from the WP Settings they all work again.

    Any idea how to fix this temporarily? We need to get the website online in 2 languages asap. If yes, then it works all great and no hurry on this anymore.

    Would be great to get an answer from you!

    Thanks in advance.

    #48975
    Anna
    Member

    Danny,
    Is the translation altering the permalinks? If so, then the page assigned to dashboard, orders, etc will not work properly.
    Looks like you’re close to getting this to work… I will see if Jamie or Ben can take a look here later.

    #48992
    Jamie
    Keymaster

    Hi Danny,

    It would have been easier to just disable the check for dashboard page on the -public class. I do this to stop our scripts and styles from loading on ALL pages of your front end because I don’t want to mess with a theme and theme authors can be lazy sometimes which leads to some serious style issues.

    I will be providing a multi page selector however it requires that I modify free and pro which takes a bit of time. This is due to the settings framework that we inherited.

    cheers,

    Jamie.

    #49197
    Christian
    Participant

    Hello Jamie,

    I would appreciate it when your multiple page selector is ready. Do not forget to contact WPML to offer you the “Go Global” compatibility program.

    See my support request:
    1: https://www.wcvendors.com/help/topic/dashboard-translated-with-wpml-does-not-work-well/
    2: https://www.wcvendors.com/help/topic/translation-of-shortcodes-into-the-menus-and-submenus-of-the-dashboard/

    Thank you for your professional involvement.

    Regards,

    Christian

    #49937
    Emad Rashad
    Participant

    Hi All,

    I have the same issue here, can you tell me if you arrived to good solution

    Thanks

    #49971
    Christian
    Participant

    1351/5000
    Hello Emad,

    For my part I have not managed to correct this problem. I have to wait for the work Jamie will provide in the months to come, to create a multiple page selector that WPML will recognize in the administrative section of WC VENDORS.

    I tried the theory of Danny Kater, but it does not work or I did not understand the explanations because they are evasive: ex: Then just per WPML language add an option (in the WP options table in your DB) Called: “wcvdashboard_page_id_en”. The “en” to be changed to the shortcode. I am not well qualified to start playing with my database.

    That being said, I hope that this problem will be solved soon, meanwhile I temporarily put my site on hold.

    Merry Christmas

    Regards,

    Christian

    #50171
    Christian
    Participant

    Hello,

    If you are not able to fix the problem so that WC Vendors PRO is compatible with WPML, I would appreciate receiving a refund from you.

    I found another substitute like YITH WooCommerce Multi Vendor that is compatible with WPML.

    Thank you.

    Christian

    #50286
    Danny Kater
    Participant

    Hi @muxcam,

    At the end my temporary solution didn’t really work steadily….

    As there’s an WCV Pro update coming ‘soon’ I expect it to be in there? Jamie’s been on this for a while.

    Maybe Jamie(@digitalchild) can confirm?

    Thanks!

    #50289
    Christian
    Participant

    Hi @dannykater
    Thank you for your frankness, I will wait patiently but if it can not solve the problem so that WC Vendors PRO is compatible with WPML, I will have no choice to subtract YITH WooCommerce Multi Vendor and hope to recover my investment . By the way, you have a very nice site, congratulations.

    Thanks Christian

    #56012
    Danny Kater
    Participant

    Jamie @digitalchild,

    I will be providing a multi page selector however it requires that I modify free and pro which takes a bit of time. This is due to the settings framework that we inherited.

    When are you expecting the PRO update with this functionality?

    Thanks!

    #56013
    Danny Kater
    Participant
    #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.

    #58037
    Sandor
    Participant

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

    #58079
    Danny Kater
    Participant

    Hi Sandor, thanks for posting your code.

    My dashboard already showed up in all languages, just not the child pages: /product, /settings, /feedback etc. etc. Does this code solved this problem for you?

    I’ve put your code in functions.php and tested it. The child pages still don’t show up unfortunately.

    The first problem i see is that get_the_ID() gives null on the /product page as it showes a 404 page not found.

    Thanks!

    #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.

    #58146
    Christian
    Participant

    Thank you Sandor, your code working well for my site, there may be some adjustment for pie chart and data logging, but I’ll look at it all in sham next week.

    But overall your code seems valid and am very happy to continue my project.

    Thanks again Sandor.

    Christian

    #58175
    Karen
    Participant

    WPML is $195 on wordpress.org (lifetime updates). If you use it, does it do a good job with translations (Pro- Dashboard Included) ? Thank you for any feedback.

    Regards,

    Karen

    #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.

    #58200
    Anna
    Member

    Hello,
    WC Vendors (free) is WPML compatible, which is what you have highlighted there.
    Where you may experience some challenges is with the front-end pages and the dashboard in WC Vendors Pro. Not all of those pages are able to be fully translated into multiple languages, though normally do well, barring a few strings, in one other language.
    Please see Jamie’s response for a better description: https://www.wcvendors.com/help/topic/pro-dashboard-in-different-languages/#post-43611

    #58215
    Karen
    Participant

    Thank you Sandor and Anna for your comments !

    @Sandor- if WPML is fully compatible with WC Vendors PRO – then WCML would be a great buy?

    @Fervous- WC Vendors 1.4 is making WC Vendors PRO completely compatible with WCML ? Thank you.

    Regards,

    Karen

    #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.

    #58220
    Sandor
    Participant

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

    #58233
    Danny Kater
    Participant

    @SANDOR,

    Indeed after changing the slug to the same as the main language (duplicating the page) the dashboard and subpages show fine.

    It’s just the javascript that doesn’t work anymore in all languages’ product-edit.php page? Things like adding picture / galery / attributes. There’s no js errors though…

    Does this all work fine for you? How about you @MUXCAM ?

    Thanks!

    #58234
    Danny Kater
    Participant

    Sorry, got it working! Great solution!

    #58243
    Karen
    Participant

    @Sandor, sorry the C is supposed to be a P – WPML

    #59243
    Arvin Nuckchady
    Participant

    @DANNYKATER,

    I read your post and apparently you found a solution to have the wcv pro dashboard in different languages when using wpml. Could you share the exact process? That would be awesome 🙂
    Thanks a lot!!!

    #60308
    Arvin Nuckchady
    Participant

    Hi guys,

    I was wondering, if you could you tell me what the status on the solution concerning the pro dashboard – WCV pro issue? Thanks for your help!

    #60323
    Anna
    Member

    @arvin-n
    The pro dashboard page currently cannot be translated to multiple languages (it can be translated, just not to multiple languages) using a plugin like WPML. This particular page will require some more attention before this can be done.
    I am not sure if the user provided code above works or not..

    #62265
    Arvin Nuckchady
    Participant

    OK. Thanks Anna for your answer

    #64423
    Adri Oosterwijk
    Participant

    Hi, I stumbled into this issue as well.


    @anna
    , the code provided by Sandor works. At least partially. Without this function the dashboard page was in terms of styles messed up. Tipical… I never thought another language could break a style sheet…..

    @all, at this moment the dashboard page loads fine in English (default) and in Dutch(second language). However clicking on the Products, Orders tab don’t give me the Dutch page the url is still …/dashboard/products instead of …/nl/dashboard/products. Any suggestions?


    @danny
    , I’m curious how you manage to get it all working. Would you be so kind to eleborate?

    Next, when I go to the “Dutch” dashboard the pie chart is reflecting only the orders placed in Dutch, so it seems. I get another number as in the default language. Any ideas?

    Best wishes,

    Adri

Viewing 50 posts - 1 through 50 (of 52 total)
  • The forum ‘WC Vendors Pro Support’ is closed to new topics and replies.