Pre-Purchase Questions About FOX - WooCommerce Currency Switcher Professional Plugin
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page pleaseIf you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.
Quote from karenkarapetyan on June 20, 2024, 00:47Hi Pluginus team,
I am a WordPress developer and I am using your plugins, especially "FOX - WooCommerce Currency Switcher Professional" for my multiple projects. For my next project, I have some pre-purchase questions. My next project is a crowdfunding platform aimed at helping kids with health problems. I am developing the website using the following core plugins:
- WooCommerce
- WP Crowdfunding
- WPML
- Elementor
For this project, multi-currency support is very important. I installed the free version of "FOX - WooCommerce Currency Switcher Professional" from the WordPress store to test its compatibility with the WP Crowdfunding plugin. Unfortunately, it is not working with WP Crowdfunding. When I switch the currency, it only changes the currency symbol, not the price.
I found this helpful article: https://currency-switcher.com/wp-crowdfunding.
I updated my code, but I have a small issue. When I choose USD as the currency and go to the checkout page, the price converts to the default currency (in my case, RUB). What I need is for the currency to remain in USD when the user chooses it, selects an amount to donate, and then goes to the checkout. Could you please provide me with code to fix this issue?
I also have a problem with the backer list, but I will try to fix it myself.
Screenshots: https://drive.google.com/drive/folders/11kjKNHf4VVUxlW4KMPADGDLf0g2LLCtb?usp=drive_link
Thank you for your assistance.
Hi Pluginus team,
I am a WordPress developer and I am using your plugins, especially"FOX - WooCommerce Currency Switcher Professional" for my multiple projects. For my next project, I have some pre-purchase questions. My next project is a crowdfunding platform aimed at helping kids with health problems. I am developing the website using the following core plugins:
- WooCommerce
- WP Crowdfunding
- WPML
- Elementor
For this project, multi-currency support is very important. I installed the free version of"FOX - WooCommerce Currency Switcher Professional" from the WordPress store to test its compatibility with the WP Crowdfunding plugin. Unfortunately, it is not working with WP Crowdfunding. When I switch the currency, it only changes the currency symbol, not the price.
I found this helpful article: https://currency-switcher.com/wp-crowdfunding.
I updated my code, but I have a small issue. When I choose USD as the currency and go to the checkout page, the price converts to the default currency (in my case, RUB). What I need is for the currency to remain in USD when the user chooses it, selects an amount to donate, and then goes to the checkout. Could you please provide me with code to fix this issue?
I also have a problem with the backer list, but I will try to fix it myself.
Screenshots: https://drive.google.com/drive/folders/11kjKNHf4VVUxlW4KMPADGDLf0g2LLCtb?usp=drive_link
Thank you for your assistance.
Quote from Pablo Borysenco on June 20, 2024, 09:48Hello
This plugin is not compatible with multicurrency. And all payments must be made in one currency. This is one of the solutions to the incompatibility
Hello
This plugin is not compatible with multicurrency. And all payments must be made in one currency. This is one of the solutions to the incompatibility
Quote from karenkarapetyan on June 20, 2024, 19:29I think it is possible to edit this code and save the price with the correct currency in a cookie. But I am not good at coding, so I can't do it by myself.
function save_user_donation_to_cookie( $array, $int ) { if ( $array['data']->get_type() == 'crowdfunding' ) { if ( ! empty( $_POST['wpneo_donate_amount_field'] ) ) { if ( is_user_logged_in() ) { $user_id = get_current_user_id(); delete_user_meta( $user_id, 'wpneo_wallet_info' ); } // setcookie("wpneo_user_donation", esc_attr($_POST['wpneo_donate_amount_field']), 0, "/"); $donate_amount = wpcf_function()->post( 'wpneo_donate_amount_field' ); //fox currency code from article if (class_exists('WOOCS')) { global $WOOCS; if ($WOOCS->is_multiple_allowed) { $currencies = $WOOCS->get_currencies(); $conversion_rate = $currencies[$WOOCS->current_currency]['rate']; $donate_amount = $donate_amount / $conversion_rate; } } //end fox currency code from article WC()->session->set( 'wpneo_donate_amount', $donate_amount ); if ( isset( $_POST['wpneo_rewards_index'] ) ) { if ( ! $_POST['wpneo_rewards_index'] ) { return; } $selected_reward = stripslashes_deep( wpcf_function()->post( 'wpneo_selected_rewards_checkout' ) ); $selected_reward = json_decode( $selected_reward, true ); $reward_index = (int) wpcf_function()->post( 'wpneo_rewards_index' ); $rewards_index = (int) wpcf_function()->post( 'wpneo_rewards_index' ) - 1; $product_author_id = (int) wpcf_function()->post( '_cf_product_author_id' ); $product_id = (int) wpcf_function()->post( 'add-to-cart' ); WC()->session->set( 'wpneo_rewards_data', array( 'wpneo_selected_rewards_checkout' => $selected_reward, 'rewards_index' => $rewards_index, 'product_id' => $product_id, '_cf_product_author_id' => $product_author_id, ) ); } else { WC()->session->__unset( 'wpneo_rewards_data' ); } } } return $array; }
I think it is possible to edit this code and save the price with the correct currency in a cookie. But I am not good at coding, so I can't do it by myself.
function save_user_donation_to_cookie( $array, $int ) { if ( $array['data']->get_type() == 'crowdfunding' ) { if ( ! empty( $_POST['wpneo_donate_amount_field'] ) ) { if ( is_user_logged_in() ) { $user_id = get_current_user_id(); delete_user_meta( $user_id, 'wpneo_wallet_info' ); } // setcookie("wpneo_user_donation", esc_attr($_POST['wpneo_donate_amount_field']), 0,"/"); $donate_amount = wpcf_function()->post( 'wpneo_donate_amount_field' ); //fox currency code from article if (class_exists('WOOCS')) { global $WOOCS; if ($WOOCS->is_multiple_allowed) { $currencies = $WOOCS->get_currencies(); $conversion_rate = $currencies[$WOOCS->current_currency]['rate']; $donate_amount = $donate_amount / $conversion_rate; } } //end fox currency code from article WC()->session->set( 'wpneo_donate_amount', $donate_amount ); if ( isset( $_POST['wpneo_rewards_index'] ) ) { if ( ! $_POST['wpneo_rewards_index'] ) { return; } $selected_reward = stripslashes_deep( wpcf_function()->post( 'wpneo_selected_rewards_checkout' ) ); $selected_reward = json_decode( $selected_reward, true ); $reward_index = (int) wpcf_function()->post( 'wpneo_rewards_index' ); $rewards_index = (int) wpcf_function()->post( 'wpneo_rewards_index' ) - 1; $product_author_id = (int) wpcf_function()->post( '_cf_product_author_id' ); $product_id = (int) wpcf_function()->post( 'add-to-cart' ); WC()->session->set( 'wpneo_rewards_data', array( 'wpneo_selected_rewards_checkout' => $selected_reward, 'rewards_index' => $rewards_index, 'product_id' => $product_id, '_cf_product_author_id' => $product_author_id, ) ); } else { WC()->session->__unset( 'wpneo_rewards_data' ); } } } return $array; }
Quote from Pablo Borysenco on June 21, 2024, 09:35Hello
In this case, you should hire a developer to implement your customization.
Hello
In this case, you should hire a developer to implement your customization.