למשתמש זה אין נושאים מועדפים.
נושאי פורום מועדפים
נושאי פורום שנוצרו
סטטוס |
נושא
|
תומך | קולות | פוסטים | עדכניות |
---|---|---|---|---|---|
I'm not able to view currency switcher on live site.
נפתח על ידי: marioG-45 ב: English Support |
|
0 | 13 | לפני חודש 2, שבוע 2 | |
I need help regarding WooCommerce Multilingual & Multicurrency.
נפתח על ידי: marioG-45 ב: English Support |
|
1 | 3 | לפני חודש 2, שבוע 2 | |
When the lifting charges are applying in exchange rate?
נפתח על ידי: marioG-45 ב: English Support |
|
1 | 13 | לפני חודש 3, שבוע 2 | |
I want to get the currency list with the currency exchange rate.
נפתח על ידי: marioG-45
ב: English Support
Problem: _wcml_settings option in WordPress, which is a serialized array containing WooCommerce Multilingual (WCML) settings. Specifically, the currency_options key within this array holds the necessary data. Here is a step-by-step guide on how to retrieve this information: function get_wcml_currency_rates() { $wcml_settings = get_option( '_wcml_settings' ); if ( ! isset( $wcml_settings['currency_options'] ) ) { return []; } $currency_options = $wcml_settings['currency_options']; $rates = []; foreach ( $currency_options as $currency_code => $currency_data ) { // WCML may store 'rate' as string or float $rate = isset( $currency_data['rate'] ) ? floatval( $currency_data['rate'] ) : 0; // Only include if rate is > 0 if ( $rate > 0 ) { $rates[ $currency_code ] = $rate; } } return $rates; } //For testing $rates = get_wcml_currency_rates(); echo '<pre>'; print_r($rates); echo '</pre> <p>';<br /> // Output might be: ['USD' => 1.08, 'GBP' => 0.86, 'AUD' => 1.64]<br /> Please note that we do not typically provide custom code solutions. For further customization, you might need to hire an independent contractor. If this solution does not resolve your issue or seems outdated, we recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket. |
|
1 | 6 | לפני חודש 3, שבוע 4 | |
I'm using wpml multi currency plugin. I have set the Lifting charges but that charges are not appli…
נפתח על ידי: marioG-45 ב: Chat Support |
|
0 | 2 | לפני חודש 4 | |
Need help for wpml Multi currency
1
2
נפתח על ידי: marioG-45
ב: English Support
Problem: wcml_custom_prices_fields . The field appears properly, but after saving, its value does not appear. add_filter( 'wcml_custom_prices_fields', 'add_custom_price_fields', 10, 2 );<br />function add_custom_price_fields( $fields, $product_id ) {<br />// Add a new custom price field<br />$fields[] = '_purchase_cost';<br />return $fields;<br />}<br /><br />add_filter( 'wcml_custom_prices_strings', 'set_labels_for_price_fields', 10, 2 );<br /><br />add_filter( 'wcml_custom_prices_fields_labels', 'set_labels_for_price_fields', 10, 2 );<br />function set_labels_for_price_fields( $labels, $product_id ){<br />// Edit the label of a custom price field<br />$labels[ '_purchase_cost' ] = __( 'Purchase cost', 'woocommerce-multilingual' );<br />return $labels;<br />}<br /><br />add_filter( 'wcml_update_custom_prices_values', 'add_purchase_cost_to_custom_prices', 10, 3 );<br />function add_purchase_cost_to_custom_prices( $custom_prices, $code, $post_id ) {<br /> $type = get_post_type($post_id);<br /> if ( 'product' == $type ) {<br /> $purchase_cost = get_post_meta($post_id, '_purchase_cost' . '_' . $code, true);<br /> if (isset($_POST["_custom_purchase_cost"][$code])) {<br /> $purchase_cost = $_POST["_custom_purchase_cost"][$code];<br /> }<br /> } elseif ( 'product_variation' == $type ) {<br /> $purchase_cost = get_post_meta($post_id, '_purchase_cost' . '_' . $code, true);<br /> if (isset($_POST["_custom_variation_purchase_cost"][$code])) {<br /> $purchase_cost = $_POST["_custom_variation_purchase_cost"][$code][$post_id];<br /> }<br /> }<br />$custom_prices['_purchase_cost'] = $purchase_cost;<br />return $custom_prices;<br />} If this solution does not resolve your issue or seems outdated, please check the related known issues and verify that you have installed the latest versions of themes and plugins. If the problem persists, we highly recommend opening a new support ticket at WPML support forum. |
|
0 | 40 | לפני חודש 4, שבוע 2 | |
After saving a custom field data for woocommerce variable product i can't see the price and other t…
נפתח על ידי: marioG-45
ב: English Support
Problem: |
|
0 | 6 | לפני חודש 4, שבוע 3 | |
I'm using wcml_custom_prices_fields hook for add custom field and try to store data.
נפתח על ידי: marioG-45 ב: Chat Support |
|
1 | 2 | לפני חודש 5 | |
I need a help in my site. I'm facing issue while translating the Woocomerce product.
נפתח על ידי: marioG-45
ב: English Support
Problem: Solution: Please note that this solution might be outdated or not applicable to your specific case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket here. |
|
0 | 67 | לפני חודש 8, שבוע 1 |