• Hi, I’m the author of Name Your Price and I was finally testing compatibility with your multicurrency feature. The price in the cart appears to be converted when switching between currencies.

    However, the Name Your Price specific prices (minimum, maximum, suggested) are not. I think it should be possible to add compatibility with the following code snippet:

    <?php
    /**
    * Support for the Woocommerce Name Your Price
    * Plugin: https://woocommerce.com/products/name-your-price/
    *
    * @package PeachPay
    */

    if ( ! defined( 'PEACHPAY_ABSPATH' ) ) {
    exit;
    }

    /**
    * Initializes Woocommerce Product Addon compatibility.
    */
    function peachpay_wcnyp_init() {
    add_filter( 'wc_nyp_raw_suggested_price', 'peachpay_update_product_sale_price', 10000, 2 );
    add_filter( 'wc_nyp_raw_minimum_price', 'peachpay_update_product_sale_price', 10000, 2 );
    add_filter( 'wc_nyp_raw_maximum_price', 'peachpay_update_product_sale_price', 10000, 2 );
    }
    add_action( 'peachpay_init_compatibility', 'peachpay_wcnyp_init' );

    But it was hard for me to test as I couldn’t seem to get currency switching working even though those are the correct filters on my side. Anyway, hope it helps.

  • You must be logged in to reply to this topic.