Problem EUR symbol - AWOCoupon on WP


  • Default avatar
    ciaran7    
     5 years ago
    0

    I am using your plugin on a Wordpress website.
    Everything works ok so far, except the fact that the Euro symbol on the gift certificates images sent via email is not displayed corectly.
    With both Arial and Arkhip fonts it is displayed as €
    Please advise how to solve this issue. Thank you.
  • Your avatar
    seyi    
     5 years ago
    0

    Hello,

    In the file www/wp-content/plugins/awocoupon/helper/estore/woocommerce/class-awocoupon-helper-estore-woocommerce-giftcert.php, around line 200 is this:
    <?php
        
    protected function formatcurrency$val ) {
            if ( ! function_exists'wc_price' ) ) {
                require AWOCOUPON_DIR '/../woocommerce/includes/wc-formatting-functions.php';
            }
            $price wc_price$val, array(
                'currency' => $this->order->currency,
            ) );
            $price strip_tags$price );

            return $price;
        }
    ?>

    Please change it to this:
    <?php
        
    protected function formatcurrency$val ) {
            return str_replace'&euro;''€'AC()->storecurrency->format$val$this->order->currency ) );
        }
    ?>

    That should fix the issue.
  • Default avatar
    ciaran7    
     5 years ago  last edited 5 years ago
    0

    Thank you for your answer, Seyi.
    Issue solved.
    Regards,