Review login - by FashionNeeds - on WordPress WooCommerce support

9 replies2 participantsUpdated by Eva Kemp

  • Avatar: FashionNeeds
    FashionNeeds
    Participant

    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?

    Please, contact administrator
    for this information.

    9 Answers

    Avatar: Eva
    Eva Kemp
    Participant

    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.

    Avatar: FashionNeeds
    FashionNeeds
    Participant

    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?

    Avatar: Eva
    Eva Kemp
    Participant

    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.

    Avatar: FashionNeeds
    FashionNeeds
    Participant

    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!

    Avatar: Eva
    Eva Kemp
    Participant

    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.

    Avatar: FashionNeeds
    FashionNeeds
    Participant

    Sorry, I ment when you click on “bekijk” (view) in that screen. It will be on the top of that page.

    Avatar: Eva
    Eva Kemp
    Participant

    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.

    Avatar: FashionNeeds
    FashionNeeds
    Participant

    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?

    Avatar: Eva
    Eva Kemp
    Participant

    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.

Want to reply? Log in, or register with your ThemeForest purchase code, to reply to this topic.

Login / Register