• Resolved johnymajors

    (@johnymajors)


    Our website was working fine untill recently when we gained a random but somewhat annoying problem.

    When our staff log onto our site and go to the “My Tickets” page and they click the “Open a Ticket” button, nothing happens. (the log out button is working fine)

    If they go into the backend of the system, they can navigate to the tickets area and add new tickets, edit them, assign them and close them etc …. but obviously this is a little long winded.

    I tried doing a load of different things suggested on other posts but to no avail.

    But what i did notice is that if i go into a browser and inspect the button element in developers mode, the url is listed as *href //******.co.uk/joblist* which means it is just recirculating evrytime you hit the new ticket button.

    If i add */wp-admin/post-new.php? post-type=ticket””* to the end of the URL it works as it should (but obviously this is just temporary in the developers mode)

    So my question is … How do i add the additional code the URL to get it working again?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Yeison Baron

    (@yeisonbp)

    Hi @johnymajors,

    In order to get things clear and smooth, do you want your agents to submit tickets in the front end? If so, add the following to your functions.php:

    add_filter( ‘wpas_agent_submit_front_end’, ‘__return_true’ );

    Let me know if this is what you need.

    Regards.

    Thread Starter johnymajors

    (@johnymajors)

    Hi @yeisonbp

    Just to confirm …. Open new tickets from the front end.

    They used to log in and the front end page would come up with “Add Ticket” and “Logout” Buttons on the page.
    There they would click the “Add Ticket” button and add the job. But it stopped working.

    Do i edit the functions.php in the /wp-includes

    or in wp-content/plugins/awesome-support/includes

    or somewhere else??

    Cheers

    Plugin Author Yeison Baron

    (@yeisonbp)

    Hi @johnymajors,

    to add the code, go to appearence – theme editor, choose the theme you are using and find the functions.php file from your theme. You can add the code there.

    Regards.

    Plugin Author Yeison Baron

    (@yeisonbp)

    Hi,

    I’m marking this as solved, but if you have more questions, you can let us know.

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

The topic ‘New Ticket Button URL’ is closed to new replies.