• Skip to main content
  • Skip to secondary menu
  • Skip to primary sidebar
  • Skip to footer
SnippetPress

SnippetPress

The Home of WordPress Snippets

Vultr Web Hosting
  • Cheat Sheets
  • Reviews
  • Snippets
  • Tutorials

Snippets

WooCommerce Order Barcodes – Remove Barcode From Emails and My Account

June 26, 2020 by SnippetPress Leave a Comment

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

AffiliateWP – Add a Custom Tab to the Affiliate Area

June 25, 2020 by SnippetPress Leave a Comment

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

June 23, 2020 by SnippetPress Leave a Comment

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

June 22, 2020 by SnippetPress Leave a Comment

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

June 19, 2020 by SnippetPress Leave a Comment

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

« Previous Page
Next Page »

Primary Sidebar

E-mail Newsletter

More to See

WooCommerce – Prevent Product Being Added To Cart If A Specific Product Is Already In Cart

July 15, 2020 By SnippetPress

WooCommerce – Display an “Add $X To Get Free Shipping” Notice

July 13, 2020 By SnippetPress

Footer

Recent

  • Change The WordPress Page Title Separator Without A Plugin
  • WooCommerce – Prevent Product Being Added To Cart If A Specific Product Is Already In Cart
  • WooCommerce – Display an “Add $X To Get Free Shipping” Notice
  • WooCommerce – Integrate Google Merchant Center Customer Reviews
  • WooCommerce – Disable Out of Stock Variations

Search

Copyright © 2023 ·SnippetPress