• Resolved mirex0123

    (@mirex0123)


    Hello Greg. Thanks for your work.

    1. The renewal function sets a new announcement date. How to raise an ad to the top without changing the date set when adding?

    2. How to allow guests to raise any ad to the top for a fee?

    3. How to allow guests to activate the “marked as sold” feature for 1 hour

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    1. that is not really possible right now as the sorting (for best performance) is being done by the publication date.

    That being said we are looking to add some “original_posting_date” custom field which will store the date when Ad was originally posted.

    2. you can create a renewal pricing with a price equal to 0, then the users will be able to use this pricing to bump their Ads without paying.

    3. i am not sure how this should work? after clicking the button the Ad will be marked as featured for an hour? or the button will be visible for an hour?

    Thread Starter mirex0123

    (@mirex0123)

    I do not want to use the registration and personal account. I want the “guest” to post an ad. It is necessary to do so that the “guest” could raise the ad and use the “sold” function, which would be turned on for 1 hour, then again you need to click “sold” if he wants.
    thank you.

    Plugin Author Greg Winiarski

    (@gwin)

    I am afraid this is not really possible by default as the Mark as Sold feature right now can be used only by logged in users the anonymous users do not have any edition options (although we are planning to allow them to edit the Ads in future).

    What you are looking to do would require some custom programming to change how WPAdverts works.

    Thread Starter mirex0123

    (@mirex0123)

    can you briefly explain in what files what needs to be changed to implement it?

    Plugin Author Greg Winiarski

    (@gwin)

    I am afraid this would be rather hard since you need a rather complex custom functionality which does not exist in WPAdverts, so you will be writing a new code instead of customizing the existing one.

    If you want to mark the Ad as sold instantly after publishing it you can use the code below

    
    add_action( "publish_advert", function( $id ) {
        update_post_meta( $id, Wpadverts_Mas::META, "1" );
        update_post_meta( $id, "marked_as_sold_timestamp", strtotime( "now" ) );
    } );
    

    To remove the mark-as-sold status after an hour you would need to register an event which will run periodically and find Ads which “mark as sold” status should be removed, the event you can register with wp_schedule_event() function https://codex.ww.wp.xz.cn/Function_Reference/wp_schedule_event.

    Thread Starter mirex0123

    (@mirex0123)

    I understood you! Tell me, how much will it cost you to develop such a code? How long will it take?

    Plugin Author Greg Winiarski

    (@gwin)

    Please send me a message via the contact form at https://wpadverts.com/contact/ i will send you a quote back privately.

    I understand that the workflow will be the following:

    1. user posts an Advert from page with [adverts_add] and the Ad is automatically marked as sold.

    2. after an hour (from the publication) the “mark as sold” tag is removed.

    3. user (anonymous and logged in) has an option to mark the Advert as sold again (for free?). The button that will do this can be in the confirmation email sent after publication.

    3a. if a user marks the ad as sold the Ad will be marked for an hour.

    If you would like to work it differently then it would be best if you would describe the workflow in the message.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Guest management ads’ is closed to new replies.