This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
Tagged: Exception
This topic contains 3 replies, has 2 voices.
Last updated by Marcel 1 year, 10 months ago.
Assisted by: Marcel.
Author | Posts |
---|---|
September 14, 2023 at 5:26 pm #14398967 | |
thorbenK |
Hello, Hello, I would like to display prices and an ordering option only to German visitors. Visitors from Switzerland, for example, should not see prices or options, only the product as if no price were listed. How is this possible? Best regards, |
September 15, 2023 at 7:48 am #14401037 | |
Marcel Supporter
Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: Europe/Madrid (GMT+02:00) |
Hi, we don't have this functionality. You recommend you check out "Catalog mode" plugins such as https://woocommerce.com/document/advanced-catalog-mode/. You will need to develop a custom solution to only activate catalog mode for specific languages using our APIs. If you need further help with this, you can contact a certified WPML contractor who can program a custom solution for your specific requirement. Another more straightforward option would be to hide these sections via specific language CSS, so clients can't check out for these languages as viewable here: https://wpml.org/forums/topic/how-to-hide-remove-some-contents-menus-based-on-language/#post-9856453. Using this option to clear the basket when switching language should be active as well: https://wpml.org/documentation/related-projects/woocommerce-multilingual/clearing-cart-contents-when-language-or-currency-change/. Best Regards |
September 15, 2023 at 12:44 pm #14403319 | |
thorbenK |
Okay, thank you very much. I am using the CSS method. Our biggest problem is differentiating between Switzerland and Germany. In Switzerland, everything should be hidden. Is it possible to automatically set the language based on the visitor's location, similar to the currency option 'client location,' rather than the browser's language? |
September 15, 2023 at 1:10 pm #14403381 | |
Marcel Supporter
Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: Europe/Madrid (GMT+02:00) |
Hi, there are some 3rd party plugins for that. You can find them here: https://wpml.org/plugin/?wpv_view_count=120064&wpv-plugin-functionality=0&wpv_post_search=Redirect&wpv-wpcf-recommendation-flag=&wpv_filter_submit=Search. Best Regards |