Title: el.severo's Replies | WordPress.org

---

# el.severo

  [  ](https://wordpress.org/support/users/elsevero/)

 *   [Profile](https://wordpress.org/support/users/elsevero/)
 *   [Topics Started](https://wordpress.org/support/users/elsevero/topics/)
 *   [Replies Created](https://wordpress.org/support/users/elsevero/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/elsevero/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/elsevero/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/elsevero/engagements/)
 *   [Favorites](https://wordpress.org/support/users/elsevero/favorites/)

 Search replies:

## Forum Replies Created

Viewing 12 replies - 1 through 12 (of 12 total)

 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [wordpress conditional function for processing order template](https://wordpress.org/support/topic/wordpress-conditional-function-for-processing-order-template/)
 *  Thread Starter [el.severo](https://wordpress.org/support/users/elsevero/)
 * (@elsevero)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/wordpress-conditional-function-for-processing-order-template/#post-13570520)
 * I’ve ended up using: `class_exists( 'WC_Email' )` and it seems to work.
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [wordpress conditional function for processing order template](https://wordpress.org/support/topic/wordpress-conditional-function-for-processing-order-template/)
 *  Thread Starter [el.severo](https://wordpress.org/support/users/elsevero/)
 * (@elsevero)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/wordpress-conditional-function-for-processing-order-template/#post-13570219)
 * Got to the final question:
 *     ```
       if(is_front_page()) {
       //SHOW ONLY ON HOME PAGE
       //BUG: THIS GETS DISPLAYED TO WOOCOMMERCE CONFIRMATION E-MAIL 
       }
       ```
   
 * Why this gets displayed to the WooCommerce confirmation e-mail?
    -  This reply was modified 5 years, 11 months ago by [el.severo](https://wordpress.org/support/users/elsevero/).
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [wordpress conditional function for processing order template](https://wordpress.org/support/topic/wordpress-conditional-function-for-processing-order-template/)
 *  Thread Starter [el.severo](https://wordpress.org/support/users/elsevero/)
 * (@elsevero)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/wordpress-conditional-function-for-processing-order-template/#post-13570115)
 * What’s even more strange even if I have the following part:
 *     ```
       if ( is_product_category() == true || is_product() == true || is_front_page() == true || is_front_page() == true) {
   
       $_currencies = $this->settings->get_list_currencies();
       $_converted_price = number_format(($price * $_currencies["RON"]['rate']), 2, '.', '');
   
       $return = '<span class="woocommerce-Price-amount amount">' . $formatted_price . '</span><span class="converted-price"> ' . $_converted_price . " " . $_currencies["RON"]['custom'] . '</span>';
       }
       ```
   
 * The second currency gets displayed, now I’m wondering how the e-mail part is 
   being built.
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [wordpress conditional function for processing order template](https://wordpress.org/support/topic/wordpress-conditional-function-for-processing-order-template/)
 *  Thread Starter [el.severo](https://wordpress.org/support/users/elsevero/)
 * (@elsevero)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/wordpress-conditional-function-for-processing-order-template/#post-13570078)
 * Hi guys,
 * Thanks for the feedback, I’d share more context in order to understand better:
 * Here’s a snapshot of the confirmation order:
    `https://i.imgur.com/N9Z62Em.png`
 * And current code:
 *     ```
       		if (   !is_order_received_page() && !is_view_order_page()) {
   
       				$_currencies = $this->settings->get_list_currencies();
       				$_converted_price = number_format(($price * $_currencies["RON"]['rate']), 2, '.', '');
   
       				$return = '<span class="woocommerce-Price-amount amount">' . $formatted_price . '</span><span class="converted-price"> ' . $_converted_price . " " . $_currencies["RON"]['custom'] . '</span>';
       		}
       ```
   
 * I am displaying two currencies on the site, and when I make the order / payment
   I send the national currency to the third parties (payment processor & courier).
 * Since the plugin does not have support for displaying multiple currencies I come
   up with this customisation but now I have to detect the confirmation e-mail part
   in order to hide the second currency (since its converted again).
    -  This reply was modified 5 years, 11 months ago by [el.severo](https://wordpress.org/support/users/elsevero/).
    -  This reply was modified 5 years, 11 months ago by [el.severo](https://wordpress.org/support/users/elsevero/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Checkout Field Manager (Checkout Manager) for WooCommerce] Billing appended to edited fields (first_name, last_name address_1 and phone)](https://wordpress.org/support/topic/billing-appended-to-edited-fields-first_name-last_name-address_1-and-phone/)
 *  Thread Starter [el.severo](https://wordpress.org/support/users/elsevero/)
 * (@elsevero)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/billing-appended-to-edited-fields-first_name-last_name-address_1-and-phone/#post-9395054)
 * Solved using this:
 *     ```
       // Replace translatable text by force
       add_filter( 'gettext', function( $translated_text, $text, $domain ) {
   
           // Billing [field name]
           if ( $text === 'Billing %s' && $domain === 'woocommerce' ) {
               $translated_text = '%s';
           }
   
           // Return
           return $translated_text;
   
       }, 10, 3 );
       ```
   
 * Credits: [https://frique.me/blog/change-billing-and-shipping-field-names-in-the-woocommerce-checkout-errors/](https://frique.me/blog/change-billing-and-shipping-field-names-in-the-woocommerce-checkout-errors/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Checkout Field Manager (Checkout Manager) for WooCommerce] Add Amount](https://wordpress.org/support/topic/add-amount/)
 *  [el.severo](https://wordpress.org/support/users/elsevero/)
 * (@elsevero)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/add-amount/#post-9370214)
 * [@sabke2](https://wordpress.org/support/users/sabke2/): Have you solved this 
   issue? Looking forward! 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Checkout Field Manager (Checkout Manager) for WooCommerce] Create fields to add additional amount.](https://wordpress.org/support/topic/create-fields-to-add-additional-amount/)
 *  [el.severo](https://wordpress.org/support/users/elsevero/)
 * (@elsevero)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/create-fields-to-add-additional-amount/#post-9370202)
 * [@albert0346](https://wordpress.org/support/users/albert0346/): Have you solved
   this? Looking forward for a similar solution 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Bon Toolkit] Bon Toolkit NOT working in WordPress 4.4](https://wordpress.org/support/topic/bon-toolkit-not-working-in-wordpress-44/)
 *  [el.severo](https://wordpress.org/support/users/elsevero/)
 * (@elsevero)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/bon-toolkit-not-working-in-wordpress-44/#post-6871002)
 * [@llona](https://wordpress.org/support/users/llona/): You need to change the 
   code.
 * As you can see [this is the only change](https://github.com/alexszilagyi/bon-toolkit/commit/0970e216e6fe2c96c82b0bbbac3a9e5fe6d678b5?diff=split#diff-376f64baa90c5fe181dc4205edf61386R408)
   that I had to make.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Bon Toolkit] Bon Toolkit NOT working in WordPress 4.4](https://wordpress.org/support/topic/bon-toolkit-not-working-in-wordpress-44/)
 *  [el.severo](https://wordpress.org/support/users/elsevero/)
 * (@elsevero)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/bon-toolkit-not-working-in-wordpress-44/#post-6870902)
 * [@mikkiprio](https://wordpress.org/support/users/mikkiprio/): you need to check
   the apache logs or the logs of the PHP. I don’t have any clue if I don’t have
   more info…
    Check the logs 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Bon Toolkit] Bon Toolkit NOT working in WordPress 4.4](https://wordpress.org/support/topic/bon-toolkit-not-working-in-wordpress-44/)
 *  [el.severo](https://wordpress.org/support/users/elsevero/)
 * (@elsevero)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/bon-toolkit-not-working-in-wordpress-44/#post-6870872)
 * [@mikkiprio](https://wordpress.org/support/users/mikkiprio/): do you have the
   same environment? (PHP version, apache: version, modules), WordPress version.
   etc. ?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Bon Toolkit] Call to undefined function bon_toolkit_set_options()](https://wordpress.org/support/topic/call-to-undefined-function-bon_toolkit_set_options/)
 *  Thread Starter [el.severo](https://wordpress.org/support/users/elsevero/)
 * (@elsevero)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/call-to-undefined-function-bon_toolkit_set_options/#post-6859480)
 * Solve it out, did a [PR here](https://github.com/alexszilagyi/bon-toolkit/commit/0970e216e6fe2c96c82b0bbbac3a9e5fe6d678b5#diff-376f64baa90c5fe181dc4205edf61386L408)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Bon Toolkit] Bon Toolkit NOT working in WordPress 4.4](https://wordpress.org/support/topic/bon-toolkit-not-working-in-wordpress-44/)
 *  [el.severo](https://wordpress.org/support/users/elsevero/)
 * (@elsevero)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/bon-toolkit-not-working-in-wordpress-44/#post-6870828)
 * [@mikkiprio](https://wordpress.org/support/users/mikkiprio/): see [this](https://github.com/alexszilagyi/bon-toolkit/commit/0970e216e6fe2c96c82b0bbbac3a9e5fe6d678b5#diff-376f64baa90c5fe181dc4205edf61386L408)

Viewing 12 replies - 1 through 12 (of 12 total)