HasteDesign / Registrations-for-WooCommerce

Add a registration product type to your WooCommerce installation.
GNU General Public License v2.0
38 stars 16 forks source link

Prettify Variation Name #30

Open dcnelson89 opened 6 years ago

dcnelson89 commented 6 years ago

Is there anyway to tidy up the variation name when it appears in the Orders admin screen and confirmation emails?

Currently it is showing as: Example Event - {"type":"single","date":"2018-06-30"}

Can this be changed to: Example Event - (30/06/2018)

ajlowndes commented 6 years ago

I wasn't sure how to make changes to this plugin directly* - but I did manage to solve this problem a while back via some code in functions.php. Instructions are in the wiki page for this plugin under "clean up the orders page": https://github.com/HasteDesign/Registrations-for-WooCommerce/wiki/Clean-up-the-Orders-Page

*what I mean by that is, I don't quite have the coding skills to be sure I have inserted the functions into the right file in the structure of this plugin... I don't quite understand it enough yet. But using functions.php is a good stop-gap solution until someone who knows more can change the original code and submit a pull request...

allysonsouza commented 6 years ago

Oh, sorry guys, I really wish I had more time to work on it, but it's not too complicated, maybe they're good hooks to be inserted into WC_Registrations_Checkout or WC_Registrations_Cart, or maybe we can create a third class just to encapsulate things related to orders.