WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
Any way to delete decimal point and 2 zeros after from the ticket price? (4 posts)

  1. studiokatana
    Member
    Posted 2 years ago #

    Hello

    Is there a way for us to delete the decimal point and 2 zeros after from the ticket price?

    Many Asian countries don't use "Cents" system and it is kind of confusing for our clients.

    Thank you

    http://wordpress.org/extend/plugins/events-manager/

  2. agelonwl
    Member
    Posted 2 years ago #

    You can change that using the template files at /templates/forms

    http://wp-events-plugin.com/documentation/using-template-files/

  3. studiokatana
    Member
    Posted 2 years ago #

    Thank you for that Agelonwl.

    I am not a programmer, and don't know how to mod PHP.
    Any chance you can teach me the detailed steps?

  4. agelonwl
    Member
    Posted 2 years ago #

    First, follow the tutorials on how to copy template files to your current theme

    Second, you need to edit/customize two php file e.g. ticket-single.php and ticket-list.php (which is self explanatory)

    Third, this code $EM_Ticket->get_price(true); if true, will include currency symbol e.g. $ else if false, will just display the amount e.g. 5.00

    Fourth, you can easily follow this url http://www.w3schools.com/php/func_string_money_format.asp for the PHP format. Just supply the code $EM_Ticket->get_price(true)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic