WordPress.org

Forums

WooCommerce - excelling eCommerce
[resolved] Pages Shortcodes not working after update to 2.1.2 (27 posts)

  1. bijayyadav
    Member
    Posted 1 year ago #

    I updated my woocommerce plugin to 2.1.2, now the pages like Change Password, view order, lost password are not working. It was working in its previous version. The shortcodes are shown on the front end rather than the forms to be shown.

    Thanks in advance.

    https://wordpress.org/plugins/woocommerce/

  2. LordLiverpool
    Member
    Posted 1 year ago #

    I have the exact same issue. I upgraded to 2.1.2

    and now instead of the Edit My Address page I just get a shortcode displayed:

    [woocommerce_edit_address]

  3. LordLiverpool
    Member
    Posted 1 year ago #

    @bijay

    I found this article

    http://www.remicorson.com/woocommerce-2-1-x-endpoints-vs-shortcodes/#comment-11527

    I still don't understand the problem!!

  4. bijayyadav
    Member
    Posted 1 year ago #

    thanks Lord,

    I too found that no full reference though. I permanently removed those pages and setup the custom links still it does not work. I too dont understand the problem either.

  5. LordLiverpool
    Member
    Posted 1 year ago #

    @bijay

    I posted a question here

    http://www.remicorson.com/woocommerce-2-1-x-endpoints-vs-shortcodes/

    The man who runs that website is a WooCommerce developer. Hopefully he will reply to my question.

    Maybe you could post a question too? If you did it might make him respond.

    Thanks

  6. LordLiverpool
    Member
    Posted 1 year ago #

    @bijay

    I have uninstalled 2.1.2 and regressed to 2.0.20 I don't have the time to spend on this, if you get an answer please let me know.

    Cheers

  7. Mike Jolley
    Member
    Plugin Author

    Posted 1 year ago #

    Hi guys,

    Your issue is that you are expecting shortcodes to function which no longer exist. On new installs, these pages won't be created, but if you are updating you may already have those pages in place.

    Although the upgrade script does attempt to trash them for you, this might not have happened if they were customised. Delete them. Delete edit-account and change password, then go to your 'my account' page and click the change password/edit account links. You'll be taken to and endpoint which offers the same functionality.

    Thanks

  8. Mike Jolley
    Member
    Plugin Author

    Posted 1 year ago #

    I've wrote a little doc on the subject here http://docs.woothemes.com/document/woocommerce-endpoints-2-1/

  9. respectyoda
    Member
    Posted 1 year ago #

    Hey Mike,

    I read your "little" documentation on the endpoints and implemented it by adding a link to the menu, but the page didn't appear at all. For instance, I added the link that has the caption "View Order" and when I clicked on the link, it showed the 'My Account' page, not the "View Order" page as I expected it to.

  10. Mike Jolley
    Member
    Plugin Author

    Posted 1 year ago #

    What URL did you give the page?

  11. respectyoda
    Member
    Posted 1 year ago #

    I followed the instruction provided in the documentation by using the full URL. For instance, the URL in the link is: http://(mysite).com/my-account/view-order/

    For obvious reasons, I am not disclosing the name of the site.

  12. Mike Jolley
    Member
    Plugin Author

    Posted 1 year ago #

    /my-account/view-order isn't going to be directly accessible because you've not specified an order to view. It doesn't need to be in your navigation menu and shouldn't be.

    Go to My Account, look at the orders, click 'view': https://dl.dropboxusercontent.com/s/gylskujq18j5rjb/2014-02-26%20at%2022.31%20%281%29.png

    The URL will be something like /my-account/view-order/9239/ and THAT will work.

  13. respectyoda
    Member
    Posted 1 year ago #

    Ah I see! Then you should make the documentation a little bit clearer on that. Thanks.

  14. bijayyadav
    Member
    Posted 1 year ago #

    Solved the issue. Thanks !!!!

  15. scruffy1
    Member
    Posted 1 year ago #

    hi following up on this, there seems to be an issue within the my-account short codes, unless I am missing it

    on the my-account page as per instructions from above we see a page with the following text

    "Hello, xxxx. From your account dashboard you can view your recent orders, manage your shipping and billing addresses and change your password."

    the change your password appears to be a woo built in link which should go to the correct page, however it takes you around in a loop on my-account page.

    So following all the great help you posted above and using the relevant shortcode for the account page [woocommerce_my_account] this page does not work as you would expect

    so what am I missing from above ?

    thanks

  16. Scoutn
    Member
    Posted 1 year ago #

    I have the same problem as Scruffy above. A loop with the my-account page. I have tested with a new wordpress and woocommerce install, same issue. Only workaround I have found is to turn off permalinks, and that's not ideal.

  17. respectyoda
    Member
    Posted 1 year ago #

    The "My Account" page does need the shortcode of

    [woocommerce_my_account]

    Then you must make sure WooCommerce knows where this page is by going to the backend and navigating to this place:

    WooCommerce ->Settings -> Accounts

    Then option for the "My Account Page" must be set to the "My Account" page. The options for the end-points will have to match the links that you add to the menu.

    If you have an issue with permalinks, change it to the default one and save it. Then change it again to the "Post name" option and all should be well.

  18. scruffy1
    Member
    Posted 1 year ago #

    respectyoda

    thats not the problem

    my account pages works perfectly, woo built into the my account page a link to change password, but this takes you back to my account page

    thats the issue

  19. Scoutn
    Member
    Posted 1 year ago #

    I have all that set and it was set correctly on the new test installation I created.

    All of the end-points result in a loop on the my-account page; nothing is shown to edit.

  20. respectyoda
    Member
    Posted 1 year ago #

    Scruffy, you can actually change the password on the my account page. This is why one is taken back to the my account page.

  21. scruffy1
    Member
    Posted 1 year ago #

    i see the change password link which is wrong and loops back to my account page, i also see edit for each address these do work

  22. scruffy1
    Member
    Posted 1 year ago #

    respectyoda, no you can't it does not show it other than the link to change password which loops back to my account page

  23. respectyoda
    Member
    Posted 1 year ago #

    Configure the link yourself to have it point to "/my-account/edit-account/"

    Note: Use relative URLS instead of absolute URLS.

  24. scruffy1
    Member
    Posted 1 year ago #

    yeh thanks will probably do that, but it would be good for woo to fix it too

  25. jbctiong
    Member
    Posted 11 months ago #

    Is there still a Lost Password shortcode exist and if yes what is the link? Thanks!

  26. bittu043
    Member
    Posted 7 months ago #

    hello everyone, i have little problem. i want to create a new page in which i can paste this code for view all order in one page
    <?php wc_get_template( 'myaccount/my-orders.php', array( 'order_count' => $order_count ) ); ?>
    how i do it please help

  27. starboard1
    Member
    Posted 5 months ago #

    If anyone is having the issue of the 'Reset password' link looping back to My Accounts page, I found it was because the files in mytheme/woocommerce/emails were out of date.

    The Woocommerce system status said they were up to date but when I copied the template files from the latest upgrade of woocommerce to override mine, it fixed the issue (Github showed some edits as well which confirmed this).

    Either that or delete them from your theme if you haven't modified them at all.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic