Home Forums Plugins CURCY – WooCommerce Multi Currency Wrong value of surcharge in checkout

Wrong value of surcharge in checkout

  • Author
    Posts
  • #68341

    Victor Huusmann
    Participant

    Hi there,

    I wrote to you on WordPress Forum as well regarding some currency rate issues.

    As mentioned, I I have just added an extra fee / surcharge at checkout for Norway.

    However, it’s not displaying the correct value. It’s displaying DKK 168,75, but the correct value should be DKK 135.

    I applied this code in functions.php, with your input regarding $fee = wmc_get_price(135); in the code. Here’s the code:

    /**
    * Add a standard $ value surcharge to all transactions in cart / checkout
    */
    add_action( ‘woocommerce_cart_calculate_fees’,’woocommerce_custom_surcharge’ );
    function woocommerce_custom_surcharge() {
    global $woocommerce;

    if ( is_admin()

You must be logged in to see replies to this topic. Click here to login or register