• Resolved ff kk

    (@wpadgyda)


    Hello,

    It is claimed that Dokan is WPML compatible: https://wpml.org/extensions/dokan/

    Since Dokan runs on Woocommerce, WPML must have included the Woocommerce multilingual plugin in their tests I assume. Else, WPML languages would not work in woocommerce I assume.

    However, it all is fine except that it does not translate the currency for “Earning” on the Dokan seller dashboard window. I.e. for example you have English (UK) with GBP as currency and German (DE) with EUR as currency. Once switching from DE to UK, everything is in GBP, even adding products. Sales output as well in GBP, but the “Earnings” output is still in EUR. I am not sure, whether it’s only the symbol in EUR and the amount would be in GBP.

    Also what is affacted by this is the reports window in Dokan seller dahboard panel, then tab “Top earning”. Actually everything, wjhich is connected to earning(s).

    Please be so kind and make it 100% compatible.

    Thanks.

Viewing 15 replies - 1 through 15 (of 21 total)
  • Thank you for reporting this to us.
    I will make sure that this report reaches our compatibility team.
    As far as I see, currently the extension is being re-tested for its new versions.

    Thread Starter ff kk

    (@wpadgyda)

    Thanks. Please also forward the following copmpatibility issue, which is likely connected to the problem described above:

    The WPML language switcher and the currency does not synchronize fully. Description:

    For example pick EN (GBP) and DE (EUR). Then select the shop page of Woocommerce for any language. It is very inconsistent as if Dokan and Woocommerce Multilingual have overlapping functions how to handle this. I.e. at first it for DE for example it shortly selects EUR, but then quickly shows currency in GBP. It might show it correctly sometimes, just switch languages a couple of times and select other pages and return to WC shop page. By going to any other page than the WC shop page, it correctly shows EUR for language DE, then going back and forth several times, it slowly adjusts/synchronizes language and currency. But at the beginning, returning to the WC shop page one would see language DE and GBP.

    So I assume, there it cannot decide which function to pick, which leads to inconsistencies. Cache is off so it is not a caching problem.

    Please update these incompatibilities in your next update.

    Appreciate it. Thanks.

    Thank you for the details.
    I will convey them to our compatibility team.
    I cannot guarantee you if the issues will be fixed in the next update. Usually communicating between theme/plugin authors take some time…

    Thread Starter ff kk

    (@wpadgyda)

    Hi,

    To give you guys some more info and maybe make the problem more easy to solve. It actually all runs down to the “regular price” in WC, i.e. the base currency. All other problems seem to be connected to it. Else, it almost works fine.

    Problem: Theoretically or from an algorithmic point of view without looking too much into the code. A solution would be for example that as Woocommerce creates “Regular Price” field, WC Multilingual plugin creates additional price fields from the Regular Price field/base currency and fills them with conversion/exchange rates. Then Dokan must map the “Regular Price” for example in UK English/GBP into the WC Multilingual GBP field and not the EUR Regular Price field. You can check this going into Dokan Seller Dashboard, then Products and enter some price not in EUR (assuming EUR is set as base currency/default currency). It all updates into EUR. It should be a mapping problem. Please find a solution that is also compatible with all Dokan add-ons, else it will produce new compatibility issues. Once solved, please report to WeDevs/Dokan so that they can update their frontend.

    Thanks a lot.

    Thank you for the details.
    WooCommerce Multilingual already creates some fields that hold the other currency values and they are used to provide the values when you switch the currency.
    I am not entirely sure about their frontend and what happens there. I have conveyed this to our compatibility team as well.

    In order for us to better understand the issue, I would like to ask you to open a new ticket in our support forum at wpml.org if you please.
    There we can exchange credentials securely and see exactly what happens.
    In order for you to not begin with the basics there, please do mention me – and mention this ticket in the ticket body so that I or my colleagues assign the ticket to me and handle it.

    Thread Starter ff kk

    (@wpadgyda)

    Hi,

    Yes, the fields for the regular prices other than base currency are fine, but the mapping from the seller interface/dashboard is still incorrect. The latest update of Dokan 2.5.3 and Woocommerce Multilingual 4.1.1 resolved, however, all the currency discrepancies on the frontend. I.e. now switching languages shows the correct currency.

    To explain the mapping problem:

    Assume base currency is in EUR and another currency is in GBP. Regular price in EUR is empty and the field that Woocommerce Multilingual provides, i.e. the regular price in GBP is filled e.g. with 15 GBP. Then start with language German for example and switch to English, i.e. GBP, and go to Dokan seller dashboard – products – edit product. What happens now is that once updated the field for price of product in GBP, i.e. change from 15GBP to 17GBP. But then it maps this price of 17GBP into the regular price field for EUR and it shows up in the backend of products overview as price in EUR, i.e. it filled the regular price field in EUR, but did not change anything of the GBP price of the product.

    This mapping problem must be resolved for dokan seller dashboard – shipping. There are 4 fields, where one adds prices/costs for shipping. These are “Default Shipping Price”, “Per Product Additional Price “, “Per Qty Additional Price ” and “Cost”. Hence, any viable solution must map these fields from GBP to GBP, from USD to USD. Currently, it is from GBP to EUR, from USD to EUR and so on.

    You already resolved half of it. Please resolve the rest. And we can be happy again.

    Thanks.

    Regular price in EUR is empty

    While EUR is your default currency it is not correct to leave it empty.

    What happens if you fill the EUR regular price?
    Is it behaving the same way?

    Thread Starter ff kk

    (@wpadgyda)

    Thanks for your feedback.

    So Woocommerce must have a base currency, because taxes are paid in base currency. In the backend for the case that base currency, e.g. in EUR, is empty, then it will show on product overview.

    Pls take for example again the seller in EUR and the seller in GBP. Assume seller in EUR sells in German market so he/she would click on Dokan seller dashboard – product, add price in EUR. Fine.

    Now, take the British seller who sells in UK only so it makes sense for him/her only to add price for product in GBP. Then, EUR field stays empty. Now if he/she decides to sell the same product in EUR, then he would click on WPML language switcher and pick UK English, then add a product in EUR. Hence, the field in EUR is filled.

    For us, we can add a conversion rate from base to all other currencies, but not the other way around if there is more than one currency, e.g. USD, GBP, etc. Because then, it is unclear which exchange rate to convert from USD – EUR or from GBP – EUR for the same product. It should in ideal Foreign Exchange markets lead to the same EUR price for any exchange rates, but sometimes there are discrepancies.

    To answer your questions: If the seller puts in GBP in Dokan user interface/frontend and we fill in EUR, then there is a price in EUR that is shown for WPML language switcher German/EUR for example, but the price in GBP remains. It just allows the product to be shown for GBP and EUR. So setting the backend price works fine, but then that would not be a Dokan incompatibility issue anymore. For any regular price set in backend it shows the correct price in frontend. Only the Dokan seller who changes price change always the base currency, even if the GBP seller changes GBP product price. IN this case, in the backend he resets the EUR regular price and the GBP price adjusts automatically to this new EUR price.

    Hope, it’s somewhat clear. I know it can be confusing so I am happy we don’t need to fully understand the code.

    Thanks.

    Cheers.

    Thread Starter ff kk

    (@wpadgyda)

    Correction: “then he would click on WPML language switcher and pick UK English” should be and pick German.

    Thank you for the explanation.
    I added it to our compatibility team.
    Could you also ask for assistance from the authors of Dokan?
    It seems that they are not responding to e-mails from our compatibility team.

    Thread Starter ff kk

    (@wpadgyda)

    Yes, I did. They will forward your concern to the relevant department/team. We are just the customers, but I told them that as many of their customers have asked for multi-currency feature in Dokan it is also in their best interest to resolve this. And it seems it is almost resolved, a couple of mappings. They say that they are just very busy with Woocommerce 3.0 integration. Just keep asking them to provide what you need to resolve it. Hope it will get resolved soon, then many of Dokan clients will also use WPML/Woocommerce Multilingual I assume.

    Cheers.

    Thank you!
    I will get back to you once I have some news about this.

    Thread Starter ff kk

    (@wpadgyda)

    Sure. And by the way, a viable solution should also take into account the standard Woocommerce price filter as it currently does not work, supposedly because it draws only from the base currency. Thanks.

    In this forum there is no private reply, so it is better to avoid asking and providing credentials here.

    • This reply was modified 7 years, 1 month ago by George Botsev. Reason: Replied to wrong ticket
Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘Almost 100% compatible with Dokan plugin.’ is closed to new replies.