I am experiencing some trouble with getting (to) the correct checkout url on a site made multilingual with WPML.
I had a look through the code of the template-functions.php and on line 64 I saw where it gets the url from:
$checkout_url = get_permalink( $edd_options['purchase_page'] );
Then I went made a WPML Language Configuration File (http://wpml.org/documentation/support/language-configuration-files/) and added that option to it. In the WPML backend I can “translate” the output of that option, which is a Page_ID.
Now I have tried “translating” this with the page_IDs of the checkout pages of the other languages, as well as with the whole URL of those checkout pages, however the plugin does not pick up on it.
I have also tried hardcoding a WPML compatible string into the plugin, if only to see if that would help, but also that does not give the desired effect.
Such a string looks like this:
$checkout_url = get_permalink( icl_object_id( 4, 'page', true ) );
where 4 is the Page_ID of the English Checkout Page
Basically I can only get the checkout (and the following purchase confirmation) to work on the default (English) language, not on any of the other languages.
Do you have/know of any solution for this?
- The topic ‘[Plugin: Easy Digital Downloads] checkout url on multilingual site’ is closed to new replies.