Support » Plugins and Hacks » [Resolved] Woocommerce / Payment Gateways – need to remove HTML tags
2 years, 10 months ago
My client requires certain formating on Product names so I have added HTML tags to the Product titles. This is working well throughout the site.
The problem is when a customer goes from Checkout to either Payment Gateway: PayPal and Mijireh, the HTML tags show up.
I need a way to strip the tags from the Product names but don’t know where to code this.
Site url is: http://gaylemartz.com/
Specifically going from http://gaylemartz.com/checkout/ and clicking “Place Order”
Whatever gateway is chosen, the next screen will display with tags.
Thanks in advance for any suggestions,
2 years, 9 months ago
I got the PayPal part of this solved with the help of WooThemes support:
You’d need a custom filter in your functions.php to filter on ‘woocommerce_paypal_args’.
This gist is untested, but should allow you to manipulate the item names before sending to paypal: https://gist.github.com/mikejolley/8180728