• Resolved Jon

    (@freshyjon)


    Is there a shortcode (or a PHP function) that I can use to display ONLY the current user’s tickets that have an “Open” state? (I.e, display all tickets to the user that aren’t closed).

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author awesomesupport

    (@awesomesupport)

    Hello:

    The current version does not have this. However, the new version will have that feature. You can download a release candidate for the new version here: https://awesome-support-public-files.s3.amazonaws.com/awesome-support-V4-4-0-RC15.zip.

    Thanks.

    Thread Starter Jon

    (@freshyjon)

    Glad that there will be an option to display only the Open tickets. Is this via an attribute on the shortcode?

    Also, is there an ETA on the final release of v4.4? I’d rather not use a work-in-progress plugin on a live site.

    Plugin Author awesomesupport

    (@awesomesupport)

    Hello:

    Unfortunately we don’t have an ETA on the final release. It all depends on users installing the beta and offering feedback – at this point we’re completely dependent on users who are willing to install the beta and making sure there are no issues (located here: https://awesome-support-public-files.s3.amazonaws.com/awesome-support-V4-4-0-RC16.zip )

    Once its been released we will be sending out a notice via email as well as posting a message in this forum.

    Thread Starter Jon

    (@freshyjon)

    OK. Sounds good. How would I test the tickets that are set to Open status? Is it an attribute via a shortcode?

    This is the current one:

    [tickets]

    Plugin Author awesomesupport

    (@awesomesupport)

    Hi:

    No, it is set via a configuration setting under TICKETS->SETTINGS->GENERAL.

    Thanks.

    Thread Starter Jon

    (@freshyjon)

    Is there an option to do it via shortcode? I’d like to be able to output ALL tickets to an END user on one page. But then on another page, only display their OPEN tickets.

    Is there a method to do both? With the older version of the plugin I was attempting to di this via PHP loop, but wasn’t having any luck figuring out how to limit it to only Open tickets of the user:

    $user_id = get_current_user_id();
    
    	$ticket_options = array(
    		'post_type'			=> 'ticket',
    		'order'				=> 'DESC',
    		'orderby'			=> 'date',
    		'posts_per_page'	=> 5,
    		'meta_key'		=> '_wpas_status',
    		'meta_value'	=> 'open',
    	);

    How can I output ALL tickets of a user somewhere, but then only OPEN tickets of a user somewhere else?

    • This reply was modified 7 years ago by Jon.
    Plugin Author awesomesupport

    (@awesomesupport)

    Hi:

    Unfortunately we don’t have that type of conditional behavior in the shortcode. You’d definitely have to make core code changes to the shortcode and associated queries and templates to make that happen.

    Unfortunately the exact code changes are not something I am able to provide at this time.

    Thread Starter Jon

    (@freshyjon)

    Thoughts on adding parameters to the shortcode to allow for this? I see “status” is an option via a shortcode: https://getawesomesupport.com/wp-content/uploads/2017/02/AS-PublicTickets-Doc-04.jpg

    https://getawesomesupport.com/documentation/public-tickets/shortcode-parameters/

    Or is this not the same plugin?

    Plugin Author awesomesupport

    (@awesomesupport)

    Hi:

    That’s a different plugin – its a premium add-on called PUBLIC TICKETS.

    Thanks.

    Thread Starter Jon

    (@freshyjon)

    In case anyone is interested, I was able to do this here: https://gist.github.com/Garconis/9e603f17c3077af1408b6036cf55c101

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Display list of only open tickets to user’ is closed to new replies.