• Resolved Chris

    (@weazel91)


    Hi Malcolm,

    Thought I’d post here incase anyone is trying to achieve what I’m trying to achieve.

    What options are there that I can put in the STAGESHOW_BOXOFFICE_SORTFIELD within the PHP file? I checked the help PDF but it isn’t included.

    I am trying to arrange the prices in both the front end and back end box office in descending order of price. i.e.:

    Ticket £16.00
    Child U1YO £ 0.00
    Gratis £ 0.00

    Instead of:
    Child U1YO £ 0.00
    Gratis £ 0.00
    Ticket £16.00

    as what is is showing just now (I assume its sorting alphabetically?)

    Is this do-able / possible?

    Thanks,
    Chris

    • This topic was modified 7 years, 4 months ago by Chris.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Malcolm

    (@malcolm-oph)

    Hi Chris

    You can add sort by any database field in the Shows, Performances or Prices tables.
    Multiple sort fields can be used by listing them in order separated by commas, and each field can be in ascending or descending order by adding ASC or DESC respectively after the field name.

    So, you could add the following to the stageshow-wp-config.php file to change the order:

    define(‘STAGESHOW_BOXOFFICE_SORTFIELD’, ‘priceValue DESC’);

    Malcolm

    Thread Starter Chris

    (@weazel91)

    Sorted! Just like that!

    Thanks again,
    Chris

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP Edit – BOXOFFICE_SORTFIELD’ is closed to new replies.