• Resolved Louise Waterfield

    (@louisewaterfield)


    I am having issues for a site (in development)
    I am using WPML for multi-langauge support – mostly works great (thanks again ollybach for adding this as a feature a few months ago) However there is a problem as there can only be one order page specified in WPPizza – my order page is tagged by WPML as english – when I load the order form from the italian pages, the whole site is switched to English. That’s going to be confusing.
    you can see the behaviour here:
    https://www.coffee2glo.it/wordpress

    I don’t think there any options in WPLML to stop that happening – is there any kind of work around for this problem within WPPizza?

    https://www.ads-software.com/plugins/wppizza/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author ollybach

    (@ollybach)

    you are of course right.
    when i added the wpml variables i forgot about the order page (as i actually never had the need to use it in a wpml environment).

    I will add that to the next version. shouldn’t be to difficult to figure out.

    as i am messing around with some other things in the plugin , i might not commit that version for a few days yet, but – if i havent released that new version by the end of the week – i will post some code here so this works on your site

    Thread Starter Louise Waterfield

    (@louisewaterfield)

    excellent – thank you!

    Plugin Author ollybach

    (@ollybach)

    ok if you cannot wait (or i get sidetracked with doing other things and cannot release a new version sooner than you need it) you can do the following:

    in plugins/wppizza/inc/common.output.formatting.functions.inc on approx line 794 it currently says :

    if($options['order']['orderpage']){//go to page

    change this line to read

    if($options['order']['orderpage']){//go to page
    	/**wpml select of order page**/
    	if(function_exists('icl_object_id')) {
    		$options['order']['orderpage']=icl_object_id($options['order']['orderpage'],'page');
    	}

    which should work (works here with a very basic setup, so test it and let me know if it doesnt work in your case)

    I will add that to the next version, so you can just edit that file directly and when you update it will still work

    hope that helps, but let me know if you have problems of course

    Plugin Author ollybach

    (@ollybach)

    stating the obvious here (but anyway)

    you need to translate your orderpage of course and put the shortcode on it (or just duplicate the page into given language(s))

    Thread Starter Louise Waterfield

    (@louisewaterfield)

    I made the changes and that works great
    thanks again

    Plugin Author ollybach

    (@ollybach)

    now integrated into 2.8.6

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘single language order page on multi language site’ is closed to new replies.