YayCurrency Documentation
  • YayCurrency Documentation
  • Getting Started
    • Introduction
    • System Requirements
    • How to Install
    • Enter License key
    • How To Update YayCurrency
    • Uninstall and Delete
  • Main Features
  • Configurations
    • Manage Currency
    • Custom Rounding
    • Checkout Options
      • Hide estimated price at checkout
      • Hide checkout notice payment method
      • Force payment by customer country
      • Force Currency for Specific Payment Methods
    • Display Options
      • Use params on URL
      • Add A Few Parameters to Display Currency Switcher
    • Advanced Settings
      • Apply multiple currencies to Google Crawlers (or Bots)
      • Fixed Price for Each Currency Option for Bundle/Composite Product
    • Analytics
    • Order Info
    • Developer zone
      • Available YayCurrency Hooks
      • Available YayCurrency Shortcodes
  • Menu Option
  • Widget Option
  • Compatibility
    • Cache plugins
    • Dokan
    • YITH Points and Rewards
    • Name Your Price
    • Polylang
    • WPML
    • WooCommerce Subscriptions
    • Wholesale Pro by Barn2
    • WooCommerce Product Bundles
    • LearnPress
    • Lottery for WooCommerce
    • FunnelKit Automations
    • WordPress Tour & Travel Booking
    • B2B Market by MarketPress
    • Tiered Pricing Table for WooCommerce
    • Bookings Appointments for WooCommerce
    • Advanced Product Fields Extended
  • Why Upgrade?
  • OTHER LINKS
    • FAQs
    • Common Issues
    • Troubleshooting
      • How to pay without PayPal
    • Changelog
    • Support
Powered by GitBook
On this page

Was this helpful?

  1. Configurations
  2. Checkout Options

Hide checkout notice payment method

PreviousHide estimated price at checkoutNextForce payment by customer country

Last updated 1 year ago

Was this helpful?

When you disable 'Checkout in different currency', the order will be placed in your store's default currency.

At the checkout page, if you choose currency different from the default, you will see a notice like this:

If you don't want to show this notice at checkout, you can hide them using custom coding.

It is recommended to add it tofunctions.php of child theme so that it will be preserved when you update the theme.

add_filter('yay_currency_checkout_notice_payment_methods', 'yay_currency_checkout_notice_payment_methods', 10, 2);
function yay_currency_checkout_notice_payment_methods( $show, $apply_currency ) {
    return false;
}

Once added, you will see it disappear at the checkout.

To hide this notice, you can add the following code to or to the file functions.php of your store theme.

Code Snippets