• Resolved Allyson

    (@allysonsouza)


    Hi, I’m facing some problems when I try to display the user tickets outside the default “My Tickets” page. We’re using Awesome Support with a custom customer panel we made, and we just did a <?php do_shortcode( '[tickets]' ); ?>, but it’s not displaying the ticket title and message.

    Looking at the code, I figured it appears to be something in the wpas_get_tickets_list_column_content function, because the title column callback is not being set as title, never entering the switch/case condition, instead it’s set as [callback] => wpas_cf_value

    Since I’m not so comfortable with your plugin code, I’m asking for help to solve it in the best way.

    Thanks!

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

    (@awesomesupport)

    Hi:

    I’m not surprised that its acting weird in the context you described. It was never tested or designed to be used anywhere other than a page and certain assumptions in the code depends on being in a page context – including the availability of the custom fields class plus other things (eg: certain important scripts are only loaded on pages where the shortcode is used).

    To see the tickets outside of a page context you might have to either create a new short-code using the current one as a template or list the tickets directly (doing a query and constructing the html table with the ticket data).

    This is one of those things where a simple idea was a good one but the code just wasn’t tested or designed for that idea. I wish I had better news for you.

    Thanks.

    Plugin Author awesomesupport

    (@awesomesupport)

    Hi:

    Since there doesn’t seem to be anything else on this ticket and its been five days from the last response we’ll go ahead and close the thread. If you have anything else you need please feel free to open a new thread.

    Thanks very much.

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

The topic ‘Error displaying tickets with shortcode outside de default page’ is closed to new replies.