WooCommerce Order Barcodes generates a unique barcode for each order, which can be very useful for order management. The barcode will display in the order admin area and on things like packing slips (if you also have a packing slip plugin), but they'll also show on customer emails and in the customer My Account area. If you're only using the barcodes for the internal … [Read more...] about WooCommerce Order Barcodes – Remove Barcode From Emails and My Account
Snippets
AffiliateWP – Add a Custom Tab to the Affiliate Area
The Affiliate Area in AffiliateWP has several tabs at the top of the page, like "Affiliate URLs", "Statistics", "Graphs" etc. These are all really handy for your affiliates, but what if you want to add your own tab with your own content? It's really easy with the following snippet: add_filter( 'affwp_affiliate_area_tabs', 'snippetpress_affwp_custom_tab' ); function … [Read more...] about AffiliateWP – Add a Custom Tab to the Affiliate Area
WooCommerce – Change a Currency Symbol
To change a currency symbol in WooCommerce, all you need is a code snippet. In the following example we're going to change the symbol for Canadian Dollars from "$" to "CA$": add_filter('woocommerce_currency_symbol', 'snippetpress_change_woo_currency_symbol', 10, 2); function snippetpress_change_woo_currency_symbol( $symbol, $currency ) { switch( $currency ) { case … [Read more...] about WooCommerce – Change a Currency Symbol
WooCommerce Stripe – Modify Payment Method Icon
If you're using the official Stripe Plugin for WooCommerce, you may have noticed that each of the payment methods you enable has an icon next to it in the checkout. Occasionally, you might want to display a different icon for a payment method. For example, the Alipay logo that is included as default in the plugin is out of date, so you may want to display the new logo … [Read more...] about WooCommerce Stripe – Modify Payment Method Icon
Add a Custom Currency to WooComerce
WooCommerce supports hundreds of currencies, but there may be a situation when you need to add your own. It's really simple to do, and just requires a code snippet. Let's say for example you want to add Bitcoin to WooCommerce. The currency code for Bitcoin is "XBT" and its symbol is "฿" add_filter( 'woocommerce_currencies', 'snippetpress_add_currency' ); function … [Read more...] about Add a Custom Currency to WooComerce