New listings in pending status cannot be retrieved if they are in pending status

This topic contains 26 replies, has 2 voices, and was last updated by  Vladimire Calixte 5 years, 1 month ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #478023

    Vladimire Calixte
    Free User
    Post count: 85

    I did try the Code Snippets plugin to test. I have used it on other sites successfully but on this site it give a 500 server error when I try to add a new snippet.

    When I added the code to the functions.php file of the child theme there is no change. I have had other code snippets from you that worked great so I think it is this particular snippet that does not work. Of course it could be a lot of other things. I am attaching the functions.php file so that you can check for yourself.

    #478024

    Vladimire Calixte
    Free User
    Post count: 85

    I had to rename the file by adding .txt so that I could get it to upload (hopefully).

    #478025

    Vladimire Calixte
    Free User
    Post count: 85

    Well, that did not work either. 🙁

    “Sorry, this file type is not permitted for security reasons.”

    #478027

    Vladimire Calixte
    Free User
    Post count: 85

    One more try…

    #478266

    Vladimire Calixte
    Free User
    Post count: 85

    Should the following line be at the beginning of the snippet you sent? I have tried it both with and without and site members still can’t access a listing in pending status.

    remove_filter(‘geodir_filter_widget_listings_where’,’_my_show_user_pending_edit’, 10, 2);

    #478394

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Sorry i did this off the top of my head and as stated it was not tested but was a guide.
    Change get_current_user() to get_current_user_id()
    (i have updated this in my example if u would rather just copy and paste that)

    Stiofan

    #478528

    Vladimire Calixte
    Free User
    Post count: 85

    You almost convinced us that what we wanted to do would be impossible and I wish that had not happened. It has shaken my faith in your support somewhat.

    However, your code is working now and our new site members can now find and edit their listing even when its status is ‘pending’. So thank you very much for your help with this issue and the code snippet you provided!

    #478530

    Vladimire Calixte
    Free User
    Post count: 85

    I spoke (wrote) too soon. The pending listing can be recalled and edited but there is still one small part missing. There is no payment button in the editing screen.

    Please provide another code snippet to display that on the edit screen of pending listings.

    #478532

    Vladimire Calixte
    Free User
    Post count: 85

    The additional code snippet should check whether a payment has already been made and only show a payment button if it has not. Otherwise, it should show the ‘update’ button.

    #478535

    Vladimire Calixte
    Free User
    Post count: 85

    Actually, if we could have a payment button and an update button at the same time on unpaid pending listings that would be ideal for us and easier for you.

    #478548

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    The user is sent an invoice by email they can pay to make it live at any time or the GD Dashboard links to their invoice history page which is usually /wpi-checkout/invoice-history/ and they can also pay there.

    Stiofan

    #478565

    Vladimire Calixte
    Free User
    Post count: 85

    OK, that is good enough (the first part). We also have a secure form to collect payment information which we can manually enter into Stripe. It is a small percentage of people who experience this issue and we can reach out to them to offer support. Now that they can edit their pending profile, that is a big improvement so many thanks for your help!

Viewing 12 posts - 16 through 27 (of 27 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket