Problem with Polylang and two separate domains
-
Hi, I am trying to use your plugin on a site that uses Polylang and has two languages, each one on its own domain. If you are not familiar with this Polylang feature, it is a simple WP install, no multisite, just two domains pointing to the same vhost and Polylang sorts out the rest.
Lets say my default one is French, so domain.fr
My secondary one is English, so domain.com
The problem I am having is that even if I initiate (and complete) the payment via the .com domain, I land on the order confirmation of the (default) .fr domain, which is naturally a big problem.
Is there please a way to override this? I assume your plugin takes the return/notify URL directly and ignores the Polylang filters, which would kick in when using get_site_url() etc.
Thanks in advance.
-
Hi @klabson,
Greetings from WebToffee support. Thanks for reaching out to us.
To help us better understand your system environment, please share your WooCommerce System status report (WooCommerce -> Status -> Get system status report). You may use this link to share the report if you have any privacy concerns.
Hi, attaching status report with the domain name redacted.
WordPress Environment WordPress address (URL): https://www.domain.tld Site address (URL): https://www.domain.tld WC Version: 7.2.2 REST API Version: ?</img> 7.2.2 WC Blocks Version: ?</img> 8.9.2 Action Scheduler Version: ?</img> 3.4.0 Log Directory Writable: ?</img> WP Version: 6.1.1 WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: – WP Cron: ?</img> Language: cs_CZ External object cache: – Server Environment Server Info: Apache PHP Version: 7.4.33 PHP Post Max Size: 256 MB PHP Time Limit: 120 PHP Max Input Vars: 5000 cURL Version: 7.74.0 OpenSSL/1.1.1n SUHOSIN Installed: – MySQL Version: 5.5.5-10.5.18-MariaDB-0+deb11u1-log Max Upload Size: 256 MB Default Timezone is UTC: ?</img> fsockopen/cURL: ?</img> SoapClient: ?</img> DOMDocument: ?</img> GZip: ?</img> Multibyte String: ?</img> Remote Post: ?</img> Remote Get: ?</img> Database WC Database Version: 7.2.2 WC Database Prefix: wp_ Total Database Size: 131.80MB Database Data Size: 121.30MB Database Index Size: 10.50MB wp_woocommerce_sessions: Data: 0.01MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_api_keys: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_order_items: Data: 0.07MB + Index: 0.04MB + Engine MyISAM wp_woocommerce_order_itemmeta: Data: 0.46MB + Index: 0.34MB + Engine MyISAM wp_woocommerce_tax_rates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_actionscheduler_actions: Data: 0.04MB + Index: 0.03MB + Engine MyISAM wp_actionscheduler_claims: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_actionscheduler_groups: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_actionscheduler_logs: Data: 0.02MB + Index: 0.02MB + Engine MyISAM wp_admin_columns: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_comments: Data: 1.52MB + Index: 0.77MB + Engine InnoDB wp_db7_forms: Data: 0.36MB + Index: 0.04MB + Engine MyISAM wp_e_events: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_e_notes: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_e_notes_users_relations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_e_submissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_e_submissions_actions_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_e_submissions_values: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mw_faktury: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_options: Data: 3.52MB + Index: 0.14MB + Engine InnoDB wp_pda_passwords: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_postmeta: Data: 77.52MB + Index: 6.03MB + Engine InnoDB wp_posts: Data: 34.52MB + Index: 0.42MB + Engine InnoDB wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_term_relationships: Data: 0.08MB + Index: 0.05MB + Engine InnoDB wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_usermeta: Data: 2.52MB + Index: 2.02MB + Engine InnoDB wp_users: Data: 0.17MB + Index: 0.14MB + Engine InnoDB wp_wcpdf_invoice_number: Data: 0.01MB + Index: 0.01MB + Engine MyISAM wp_wcpdf_packing_slip_number: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_admin_notes: Data: 0.05MB + Index: 0.00MB + Engine MyISAM wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.01MB + Engine MyISAM wp_wc_category_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_customer_lookup: Data: 0.10MB + Index: 0.08MB + Engine MyISAM wp_wc_download_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_order_coupon_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_order_product_lookup: Data: 0.11MB + Index: 0.10MB + Engine MyISAM wp_wc_order_stats: Data: 0.08MB + Index: 0.06MB + Engine MyISAM wp_wc_order_tax_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_product_attributes_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_product_download_directories: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_wc_product_meta_lookup: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_wc_rate_limits: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_reserved_stock: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_tax_rate_classes: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_wc_webhooks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM Post Type Counts acf-field: 24 acf-field-group: 2 attachment: 131 elementor_library: 10 nav_menu_item: 16 page: 27 polylang_mo: 2 post: 1 product: 6 program: 8 revision: 1601 shop_coupon: 3 shop_order: 1185 shop_order_refund: 1 wpcf7_contact_form: 2 Security Secure connection (HTTPS): ?</img> Hide errors from visitors: ?</img> Active Plugins (25) ManageWP - Worker: by GoDaddy – 4.9.16 Polylang: by WP SYNTEX – 3.3 Advanced Custom Fields PRO: by WP Engine – 6.0.6 The SEO Framework: by The SEO Framework Team – 4.2.7.1 Better Search Replace: by Delicious Brains – 1.4.1 Klasicky editor: by WordPress Contributors – 1.6.2 Webcraftic Disable Comments: by Webcraftic – 1.1.6 Polylang Connect for Elementor: by Creame – 2.3.3 Custom Order Numbers for WooCommerce: by Tyche Softwares – 1.4.0 Elementor Pro: by Elementor.com – 3.8.2 Elementor: by Elementor.com – 3.8.1 WebToffee PayPal Express Checkout Payment Gateway for WooCommerce ( Free ): by WebToffee – 1.7.7 Favicon by RealFaviconGenerator: by Philippe Bernard – 1.3.25 Happy Elementor Addons: by weDevs – 3.7.2 Kadence WooCommerce Email Designer: by Kadence WP – 1.5.7 Manage Notification E-mails: by Virgial Berveling – 1.8.4 Non-Purchasable WooCommerce Products: by Guy Primavera – 1.4 Theme and plugin translation for Polylang (TTfP): by Marcin Kazmierski – 3.3.1 UpdraftPlus - Backup/Restore: by UpdraftPlus.Com DavidAnderson – 1.22.24 Woo GoPay Inline: by Woo – 1.6.1 Advanced Order Export For WooCommerce: by AlgolPlus – 3.3.3 WOOCS - WooCommerce Currency Switcher: by realmag777 – 2.3.7.5 PDF Invoices & Packing Slips for WooCommerce: by WP Overnight – 3.2.6 WooCommerce Polylang Integration: by Darko Gjorgjijoski – 1.2.5 WooCommerce: by Automattic – 7.2.2 Inactive Plugins (3) Contact Form 7: by Takayuki Miyoshi – 5.7.1 Contact Form CFDB7: by Arshid – 1.2.6.5 Polylang Theme Strings: by Modeewine – 4.0 Must Use Plugins (1) ManageWP - Worker Loader: by GoDaddy – 1.0.0 Settings API Enabled: – Force SSL: – Currency: CZK (K?) Currency Position: right_space Thousand Separator: , Decimal Separator: . Number of Decimals: 0 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) variable (variable) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to WooCommerce.com: – Enforce Approved Product Download Directories: – Order datastore: WC_Order_Data_Store_CPT WC Pages Shop base: #97 - /obchod/ Cart: ?</img> Page not set Checkout: #99 - /pokladna/ My account: #100 - /muj-ucet/ Terms and conditions: ?</img> Page not set Theme Name: MET Konference Version: 1.0 Author URL: https://roman.klabal.cz Child Theme: ?</img> – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme WooCommerce Support: ?</img> Not declared Templates Overrides: – WooCommerce Polylang Integration Shop: ?</img> Cart: ?</img> Page missing Checkout: ?</img> My Account: ?</img> Terms & Conditions: ?</img> Page missing Admin Enabled Features: activity-panels analytics coupons customer-effort-score-tracks experimental-products-task experimental-import-products-task experimental-fashion-sample-products shipping-smart-defaults shipping-setting-tour homescreen marketing multichannel-marketing mobile-app-banner navigation onboarding onboarding-tasks remote-inbox-notifications remote-free-extensions payment-gateway-suggestions shipping-label-banner subscriptions store-alerts transient-notices woo-mobile-welcome wc-pay-promotion wc-pay-welcome-page Disabled Features: minified-js new-product-management-experience settings Daily Cron: ?</img> Next scheduled: 2022-12-29 00:13:37 +01:00 Options: ?</img> Notes: 112 Onboarding: completed Action Scheduler Complete: 132 Oldest: 2022-11-27 16:11:50 +0100 Newest: 2022-12-27 19:07:37 +0100 Pending: 1 Oldest: 2022-12-28 19:07:37 +0100 Newest: 2022-12-28 19:07:37 +0100 Status report information Generated at: 2022-12-28 15:01:41 +01:00 `
Hi @klabson,
Thanks for sharing the information. We will try to recreate the issue by replicating your System environment on our test site. We will get back to you once we have an update on the matter.
Hi @klabson,
Thank you for your patience. We couldn’t replicate the issue on our local server. Also, we can’t set up separate domains for each language using the Polylang free plugin. Let us know if it there are any ways to create separate domains using the free version plugin.
Hi @klabson,
As this thread has been inactive for a while, we are marking it as resolved. If you are still having issues with the PolyLang plugin, please create a new topic mentioning this thread.
- The topic ‘Problem with Polylang and two separate domains’ is closed to new replies.