• Resolved basvweb

    (@basvweb)


    Hi,

    How can I remove the # before an order number? I had this done but all of the sudden it came back today.. and I can’t remember how I used to do it..

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support con

    (@conschneider)

    Engineer

    Hi there,

    How can I remove the # before an order number? I had this done but all of the sudden it came back today.. and I can’t remember how I used to do it..

    That depends on where you want to remove it. Where would you like to remove the hashtag exactly?

    Kind regards,

    Thread Starter basvweb

    (@basvweb)

    Hi @conschneider ,

    I would like the # to be removed from the order confirmation mail and order confirmation page right after you ordered.

    Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    Hi @basvweb ??

    What you could do in the meantime, in case that you would like to do this by editing your WooCommerce core files, you can do it by going to woocommerce/templates/emails/email and from there, edit the file email-order-details.php

    Once you are there, around line 23, you will find this code:

    https://www.screencast.com/t/wtt9W91wa

    When you find it, please feel free to remove the #, save the changes and check if that works for you!

    Bear in mind that doing it this way, will probably be overwritten when the WooCommerce plugin updates.

    Also, make sure you have a good backup in place of your full site and database. If something goes wrong, it’s nice to know that you can restore your site.

    Cheers ??

    Thread Starter basvweb

    (@basvweb)

    @gabrielfuentes Thank you so much.

    Is there a way I can do this in my Functions.php so I can update WooCommerce without any changes?

    Plugin Support abwaita a11n

    (@abwaita)

    Hi @basvweb,

    Yes, you can follow the steps in this email customization guide under the Creating Custom Templates with Code section.

    Hope this helps.
    Thanks.

    Thread Starter basvweb

    (@basvweb)

    Hi @abwaita @gabrielfuentes ,

    The # is still shown when I click to view an order in the front-end on my account page. How do I delete this?

    https://ibb.co/yYrWyP7

    Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    Hi @basvweb ??

    Thank you for the screenshot!

    You can remove that # by going to /woocommerce/templates/myaccount/orders/php and from there go to line 49 and just delete the hashtag. Here is a screenshot:

    https://www.screencast.com/t/0wOmXvFfcBgl

    Please note that it seems that your theme might be overriding this page through a Custom Template. So if the solution provided above doesn’t work, then you might need to check your theme templates to see if you can find the hashtag there.

    I hope that helps ??

    Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    Since it’s been a while since we last heard back from you, I’m going to mark this thread resolved.

    Hopefully, you were able to find a solution to your problem! If you have further questions, please feel free to open a new topic.

    Cheers!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Remove Hashtag’ is closed to new replies.