• Resolved mstudioIL

    (@mstudioil)


    I do not know if it related to the plugin, but I using payment getaway plugin on my site that using 2 languages, I can set language on the plugin.
    The plugin redirect to the payment company and I want the form to be language of the site, they said it can be but WPML, any way to do it with your plugin and polylang?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor jomo

    (@jonathanmoorebcsorg)

    Which “payment getaway plugin” are you referring to?

    This plugin only adapts the woocommerce plugin for polylang, may need their own support for polylang or you may need to implement your own compatibility layer, which normally isn’t too hard to do but will depend on the plugin in question.

    For example it may be possible with Loco Translate or Polylang string translation tables.

    Marking the issue as closed as other plugins are out of scope of support by this plugin.

    Thread Starter mstudioIL

    (@mstudioil)

    I referring to payment plugin allow people to pay with credit card on the payment company’ site, the site gets the language code to show the site’s language according to the code.
    P.S. if you close the issue I can not answer you

    Plugin Contributor jomo

    (@jonathanmoorebcsorg)

    Which “payment plugin” and which payment company are you referring to?
    If they have a filter for the url you could hook this and substitute the language code with the Polylang language code.
    pll_current_language or pll_get_post_language($order_id) should do it.

    Thread Starter mstudioIL

    (@mstudioil)

    It is Israeli company, did found English info, the plugin has parameter for language,
    he for Hebrew and en for English, they work with WPML so I believe it work also with Polylang.
    I will check to see if their is any code for the language

    Thread Starter mstudioIL

    (@mstudioil)

    I read the pll_current_language reference but I did not understand how to get the value it return.
    using get_locale() ; can help?

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Payment method’ is closed to new replies.