This topic has 10 replies, 2 voices, and was last updated 8 years, 10 months ago ago by Eva Kemp
Hi,
At the moment when a customer would like to leave a review he needs to login. However, when clicking on the login button on “the review” page this will take you to wordpress to login. I rather would like the link to the login page would be the same as the login page (in the right top corner of the screen).
At the moment when you click on “inloggen” it will send you to: http://www.fashionneeds.nl/bram?redirect_to=http%3A%2F%2Fwww.fashionneeds.nl%2Fproduct%2Fopen-hanger-met-rode-steen%2F
While I rather want to be send to the login page: https://www.fashionneeds.nl/mijn-account/
Can you help me?
Hello,
In this case you need edit WordPress file wp-includes/comment-template.php in line 2076 and edit the code sprintf( __( 'You must be <a href="%s">logged in</a> to post a comment.' )
, you should write your url instead of %s
, so it’ll be sprintf( __( 'You must be <a href="https://www.fashionneeds.nl/mijn-account/">logged in</a> to post a comment.' )
Please try it.
Regards,
Eva Kemp.
Hi thanks Eva, I tried it but it seems to work only partly. This product:
http://www.fashionneeds.nl/product/open-hanger-met-rode-steen/
Has the text in Dutch but the link still goes to the wordpress page
However, this product:
http://www.fashionneeds.nl/product/gouden-eiffeltoren-oorbellen-kopie/
Has the text in English and the link goes to my account which is good.
I thought I set all text to Dutch but apperently the code I used yesterday also works partly. I would like to have the text in the review (beoordelingen) section in Dutch like the first example but the link which directs to my account such as in the second example. Can you help me?
Hello,
I’ve checked both pages you provided and login links redirect to My Account page for both of them.
Please clear browser cache and check once again.
Regards,
Eva Kemp.
That did the trickm thank you. Besides that question I also wondered how to change the upper lines of text in the “my account page”. It now states: Order (ordern number) was placed on (date) and is currently (Status). However I would like to have this translated to Dutch but I can find where do do this. Many thanks!
Hello,
Sorry, but I don’t see the text you mentioned:
http://storage3.static.itmages.com/i/15/0619/h_1434725102_5008674_fc6a3e74e3.png
Could you please show a screenshot?
Regards,
Eva Kemp.
Sorry, I ment when you click on “bekijk” (view) in that screen. It will be on the top of that page.
Hello,
That text can be translated in .po file in wp-content/plugins/woocommerce/i18n/languages. Please read this article http://docs.woothemes.com/document/woocommerce-localization/ (paragraph “Translating with PoEdit”).
Regards,
Eva Kemp.
Isn’t there another way? Because I am not ablte to save the file due to error codes.
In my localization plugin in it states:
The author uses the load_textdomain function instead of the load_plugin_textdomain. This can cause problems with WordPress, some filters and actions will not be working properly.
Can this have anything to do with the error codes?
Hello,
You need translate via .po file and not via plugin. Please read the paragraph 6.Translating with PoEdit http://docs.woothemes.com/document/woocommerce-localization/ .
Regards,
Eva Kemp.
You must be logged in to reply to this topic.Log in/Sign up