This user has no favorite topics.
Favorite Forum Topics
Forum Topics Created
| Status |
Topic
|
Supporter | Voices | Posts | Freshness |
|---|---|---|---|---|---|
|
Can I set “Set prices in other currencies manually” as default on the product page?
Started by: Ole Kroer
in: English Support
Problem: function set_default_manual_currency_pricing($post_id) {<br /> if (get_post_type($post_id) === 'product_variation') {<br /> update_post_meta($post_id, '_wcml_custom_prices_status', '1');<br /> }<br />}<br />add_action('save_post', 'set_default_manual_currency_pricing', 20, 1);To apply this change to existing product variations, add this code, run it once, and then remove or comment it out: function update_existing_variations_to_manual() {<br /> $args = array(<br /> 'post_type' => 'product_variation',<br /> 'post_status' => 'publish',<br /> 'numberposts' => -1,<br /> );<br /><br /> $variations = get_posts($args);<br /><br /> foreach ($variations as $variation) {<br /> update_post_meta($variation->ID, '_wcml_custom_prices_status', '1');<br /> }<br />}<br />add_action('init', 'update_existing_variations_to_manual');If you need further assistance with custom coding, consider hiring a professional developer. You can find one experienced in customizing WPML and its add-ons at https://wpml.org/contractors/. Please note that this solution might be irrelevant if it's outdated or not applicable to your 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 this does not resolve your issue, please open a new support ticket. |
|
3 | 6 | 1 year, 10 months ago | |
|
Split: Product hover image not working in second language
Started by: Ole Kroer in: English Support |
|
2 | 5 | 2 years ago | |
|
Product hover image not working in second language
Started by: Ole Kroer in: English Support |
|
2 | 7 | 2 years ago | |
|
change design using wp bakery builder
Started by: Ole Kroer in: English Support |
|
2 | 6 | 2 years, 1 month ago | |
|
Change product category
Started by: Ole Kroer in: English Support |
|
2 | 7 | 2 years, 2 months ago | |
|
multicurency price is not open for adding in woocommerce addons
Started by: Ole Kroer in: English Support |
|
2 | 2 | 2 years, 6 months ago | |
|
language change to english from danish (main language) give error
Started by: Ole Kroer in: English Support |
|
3 | 6 | 2 years, 8 months ago | |
|
Shop default page dont show any products if changed to other language
Started by: Ole Kroer in: English Support |
2 | 2 | 3 years, 5 months ago | ||
|
WooCommerce Multi Locations Inventory Management
Started by: Ole Kroer in: English Support |
|
2 | 3 | 3 years, 10 months ago | |
|
404 redirection when the domain has 'www'
Started by: Ole Kroer in: English Support |
1 | 3 | 4 years, 6 months ago |