Dies ist das technische Support-Forum für WPML - das mehrsprachige WordPress-Plugin.

Mitlesen können alle, doch nur WPML-Kunden können hier Fragen veröffentlichen. Das WPML-Team beantwortet Anfragen im Forum an 6 Tagen pro Woche, 22 Stunden am Tag.

Schlagwörter: 

This topic contains 7 Antworten, has 2 Teilnehmer.

Last updated by lisaH-10 vor 1 Monat, 3 Wochen.

Assigned support staff: Diego Pereira.

Autor Beiträge
August 20, 2019 um 8:16 am

lisaH-10

Hallo,

wir haben ein Social-Media-System integriert und verwenden dazu das Plugin Youzer von Kainelabs.

Fehler:
Sobald ich die Plugins WooCommerce Multilingual + WPML aktiviere funktioniert die Weiterleitung einiger Shop-Links nicht mehr korrekt.

Beschreibung:
Youzer integriert das WooCommerce-Käufer-Profil ins Social-Media-Profil.
Wenn man hier auf "Shop" klickt, sollte das Cart innerhalb des Youzer-Nutzerprofils angezeigt werden:
hidden link
URL: hidden link (%user% entspr. dem jeweiligen angemeldeten Benutzer)
So, dass man von hier aus einen Überblick über das eigene Käuferprofil hat, und gut auf Orders etc. navigieren kann.

Stattdessen findet eine falsche Weiterleitung an die allgemeine Shoppage statt.
hidden link
hidden link

Schlussfolgerung:
D.h. der Fehler könnte bei der Weiterleitung stattfinden - der Benutzername wird nicht einbezogen.

Ich habe diesbezüglich natürlich bereits Kainelabs kontaktiert und mitgeteilt, dass WPML immer offen für Zusammenarbeit ist, um wirkliche Kompatiblität zu erreichen und gewährleisten zu können (sie werden bisher nicht als kompatibel in der Liste geführt, beim Verkauf wurde es jedoch als WPML-kompatibel angegeben.)

Danke.

Beste Grüße
Lisa

PS: Nicht wundern über die verschiedenen URLS (www.vuturewear.com ist unsere Hauptseite, hidden link unsere Testseite).

August 21, 2019 um 12:39 pm #4431453

Diego Pereira
Supporter

Languages: Englisch (English ) Spanisch (Español ) Portugiesisch, Brasilien (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hallo @lisah-10, welcome to the WPML support Forum!

It's ok if we continue this ticket on english? If not please let me know and I will forward to another supporter.

This seems to be a new compatibility issue. In these cases, these are the procedures:
- Install the Youzer plugin in a clean installation and reproduce the problem in this new installation. So we can isolate it and do some testing without the interference of server settings or other plugins
- After this, I will check the problem in this new installation and look for a quick solution
- If I can not find a solution, I will forward the problem to our compatibility team
- The compatibility team will do some more testing and will contact the product author to fix the issue

I created a test website with a clean WordPress install. You can access it through this link:
hidden link - Through this link you will be automatically logged in.

Please upload the plugin to this test install, setup it the same way as in your website (using the same options) and create some dummy content to reproduce the issue. Please note that we only need the pluginand the related functionality, you don't need to setup a entire website or clone your existing site.

After that, please send us clear steps on how to see/reproduce the issue on this test install. We will run some tests.

All the best,
Diego

August 24, 2019 um 10:43 am #4451427

lisaH-10

Hi Diego,

that's ok for me.
I took the time to recreate the issues - explanation is as follows...

All links lead to /shop, instead of their specific address with the %youzername% integrated in the url. (Example: hidden link)

My account: hidden link
View Cart: hidden link

Checkout (leading well, but then Shopping Cart missleading to /shop)
Shopping Cart: hidden link

You can see, that every link leads to rome...or /shop. 🙂
The links should just lead to the youzer member related pages.

The pages are all available and work, but the links are just not adjusted correctly.

Thank you.
If you need any further explanations or got some questions, please let me know.

Best regards
Lyss

August 26, 2019 um 7:13 pm #4461007

Diego Pereira
Supporter

Languages: Englisch (English ) Spanisch (Español ) Portugiesisch, Brasilien (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hi there,

Thanks. I did some testing with WPML enabled and disabled and noticed these differences. Could you confirm that these are the same issues that happen on my website so I can refer to our team?

WPML Disabled
- If I click on "View Cart" it will lead to hidden link
- If I click on "My Account" it will lead to hidden link
- If I click on "Checkout" it will lead to hidden link

WPML Enabled
- All these links redirect to the "/shop/" page

Kind regards,
Diego

August 27, 2019 um 10:32 am #4465215

lisaH-10

Hi Diego,

yes, I can confirm. This is the issue we are dealing with.

Best Regards,
Lyss

August 27, 2019 um 4:29 pm #4468475

Diego Pereira
Supporter

Languages: Englisch (English ) Spanisch (Español ) Portugiesisch, Brasilien (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hi there,

I forwarded the details to our Themes and Plugins Compatibility Team and they will take a look at the issue and contact the author if needed. Please note that this process may take a while as it depends on how soon the author will reply to our efforts to contact him.

It would be great if you can also contact the author asking him to reply us. You could also refer them to our Go Global program so that we can help them make their product compatible with WPML: https://wpml.org/documentation/theme-compatibility/go-global-program/

This may help expedite the process.

Kind regards,
Diego

August 28, 2019 um 12:04 pm #4474097

Diego Pereira
Supporter

Languages: Englisch (English ) Spanisch (Español ) Portugiesisch, Brasilien (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hi there,

Please add the following code to the functions.php file of the theme. It should fix the issue.

add_filter( 'parse_query', 'youzer_wpml_fix_redirection' , 5 );

function youzer_wpml_fix_redirection ($q) {
	if ( bp_current_component() == 'shop') {
	    if ( isset( bp_core_get_directory_pages()->members->id ) ) {
		$q->set( 'page_id', bp_core_get_directory_pages()->members->id );
	    }
	}
}

It worked on our test site: hidden link

Please let me know if it worked for you.

Kind regards,
Diego

August 29, 2019 um 6:56 am #4478039

lisaH-10

My issue is resolved now. Thank you!