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.
Thank you to all of our customers!
- This topic has 51 replies, 14 voices, and was last updated 6 years ago by
Matthieu.
-
AuthorPosts
-
July 25, 2016 at 5:28 pm #38162
Arvin Nuckchady
ParticipantHello,
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
July 25, 2016 at 6:53 pm #38170Arvin Nuckchady
ParticipantI 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
July 27, 2016 at 2:55 pm #38281Juan José
ParticipantHi, same issue for me. Please, any solution for this? Thanks.
July 28, 2016 at 2:51 pm #38367Arvin Nuckchady
ParticipantHi 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
July 28, 2016 at 8:16 pm #38377WC Vendors Support
ParticipantHi 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…..
July 29, 2016 at 6:54 am #38437Arvin Nuckchady
ParticipantThanks for your answer Ben.
If you think that the issue comes from WPML, I will check with them.July 29, 2016 at 12:35 pm #38465WC Vendors Support
ParticipantI 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…. 🙂
August 21, 2016 at 3:48 pm #40640Juan José
ParticipantHi @arvin.n,
You solved the problem? I have the same problem and do not know how solve it.
Thanks in advance,
Juanjo
August 21, 2016 at 4:46 pm #40643João
ParticipantHi,
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!
August 22, 2016 at 12:06 am #40662Jamie
KeymasterHello 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.
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.
August 22, 2016 at 7:05 am #40694Joã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 CapinhaAugust 23, 2016 at 8:46 pm #40893Arvin Nuckchady
ParticipantHello,
@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 !!
August 24, 2016 at 2:37 am #40912Jamie
KeymasterHello,
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.
August 28, 2016 at 10:40 pm #41246Derek
Participantexactly the same problem, hope there is an anwser!
August 29, 2016 at 3:17 pm #41291Anna
MemberDerek,
Jamie is currently working with the WPML team to try and achieve better integration with wc vendors.September 23, 2016 at 1:28 pm #43407Danny Kater
ParticipantHi 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 emptyWould be great if there’s a solutation for this soon.
Thanks a lot!
September 25, 2016 at 2:23 am #43499Danny Kater
ParticipantI see there is a WPML configuarion file added in the 1.9.4 update?
September 27, 2016 at 2:45 am #43611Jamie
KeymasterHello,
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.
October 17, 2016 at 10:37 pm #45315Arvin Nuckchady
ParticipantHi 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.
-
This reply was modified 6 years, 7 months ago by
Arvin Nuckchady.
November 19, 2016 at 9:48 am #48035Danny Kater
ParticipantI 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?
-
This reply was modified 6 years, 6 months ago by
Danny Kater.
-
This reply was modified 6 years, 6 months ago by
Danny Kater.
-
This reply was modified 6 years, 6 months ago by
Danny Kater.
November 29, 2016 at 12:44 pm #48844Danny Kater
ParticipantJamie, 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.
-
This reply was modified 6 years, 6 months ago by
Danny Kater.
November 30, 2016 at 4:33 pm #48975Anna
MemberDanny,
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.November 30, 2016 at 8:40 pm #48992Jamie
KeymasterHi 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.
December 3, 2016 at 1:25 am #49197Christian
ParticipantHello 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
December 11, 2016 at 5:58 am #49937Emad Rashad
ParticipantHi All,
I have the same issue here, can you tell me if you arrived to good solution
Thanks
December 11, 2016 at 12:23 pm #49971Christian
Participant1351/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
December 13, 2016 at 1:44 pm #50171Christian
ParticipantHello,
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
December 14, 2016 at 11:53 am #50286Danny Kater
ParticipantHi @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!
December 14, 2016 at 12:18 pm #50289Christian
ParticipantHi @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
February 13, 2017 at 11:08 am #56012Danny Kater
ParticipantJamie @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!
February 13, 2017 at 11:30 am #56013Danny Kater
Participant-
This reply was modified 6 years, 3 months ago by
Danny Kater.
March 1, 2017 at 4:17 pm #57959Sandor
ParticipantHi,
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.
March 2, 2017 at 3:42 pm #58037Sandor
ParticipantErratum: where it says function_exists must say class_exists. I’m sorry.
March 3, 2017 at 4:41 am #58079Danny Kater
ParticipantHi 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!
March 3, 2017 at 12:27 pm #58119Sandor
ParticipantHi @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.
-
This reply was modified 6 years, 3 months ago by
Sandor.
March 3, 2017 at 4:56 pm #58146Christian
ParticipantThank 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
March 3, 2017 at 11:09 pm #58175Karen
ParticipantWPML 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
March 4, 2017 at 10:29 am #58195Sandor
ParticipantI 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.
March 4, 2017 at 10:38 am #58200Anna
MemberHello,
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-43611March 4, 2017 at 11:53 am #58215Karen
ParticipantThank 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
March 4, 2017 at 12:19 pm #58219Sandor
ParticipantThanks, @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.
-
This reply was modified 6 years, 3 months ago by
Sandor.
March 4, 2017 at 12:24 pm #58220March 4, 2017 at 1:11 pm #58233Danny Kater
ParticipantIndeed 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!
March 4, 2017 at 1:21 pm #58234Danny Kater
ParticipantSorry, got it working! Great solution!
March 4, 2017 at 2:50 pm #58243March 16, 2017 at 11:30 am #59243Arvin Nuckchady
ParticipantI 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!!!March 29, 2017 at 4:36 pm #60308Arvin Nuckchady
ParticipantHi 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!
March 29, 2017 at 7:12 pm #60323Anna
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..April 17, 2017 at 9:30 pm #62265Arvin Nuckchady
ParticipantOK. Thanks Anna for your answer
May 6, 2017 at 2:31 am #64423Adri Oosterwijk
ParticipantHi, 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
-
This reply was modified 6 years, 7 months ago by
-
AuthorPosts
- The forum ‘WC Vendors Pro Support’ is closed to new topics and replies.