Support » Plugin: Registrations for WooCommerce » Formatting event names

  • Resolved simooo

    (@simooo)


    Hey!

    Thanks for the plugin. I’m finding it super useful but the biggest issue I’m having is that the event date (i.e. the WC variation) is displayed in JSON format, i.e. {“type”:”single”,”date”:”2017-07-20″} in the order details in various places – the admin order panel and in emails and maybe more.

    I noticed the issue was pointed out before, but I’m asking because I’d be happy to help sorting it out. Any idea if it’s possible to hook into how WC displays variation names?

    I’m also working on another few fixes, in case you’d want to include them.

    Best,

    Simon

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Allyson Souza

    (@allysonsouza)

    Hi @simooo!

    Great news, don’t hesitate to make a fork on GitHub and send your improvements!
    At this moment the non formatted displays was fixed, except by one in admin panel, in order page (that actually don’t have a hook in WooCommerce).

    So, give a look at development version in GitHub: https://github.com/HasteDesign/Registrations-for-WooCommerce

    Best regards,

    Allyson

    That’s great! In what file/files did you apply the fix? I was looking at the commits in the last month in github and couldn’t make out what the relevant commit was.

    Today I realised that another place where this happens is on the PayPal payments page (on PayPal’s site), but hopefully that’s already covered by your fix.

    Plugin Author Allyson Souza

    (@allysonsouza)

    The changes was made in class-wc-registrations-checkout.php, take a look at the commit from Shirkit Pull Request (He’s who fixed that): https://github.com/HasteDesign/Registrations-for-WooCommerce/pull/4/commits/a160a010945313880c1da0c77d9649674405cac2

    Thanks!

    That code didn’t actually work for me, until I removed ‘parent’ on L59:

    59 if ($order->product->parent->product_type == 'registrations') {

    59 if ($order->product->product_type == 'registrations') {

    Not sure what could have changed to cause this.

    Either way can confirm that the formatting is applied to emails but, like you said, not to admin order screen and also not to PayPal checkout.

    Plugin Author Allyson Souza

    (@allysonsouza)

    Hi @simooo,

    Sorry for the late reply, I was busy making the changes to make the plugin compatible with WooCommerce 3.0. I suggest to update to the new version and see if you still having these issues.

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Formatting event names’ is closed to new replies.