Title: WPML / Woocommerce Code Hack Fix
Last modified: August 22, 2016

---

# WPML / Woocommerce Code Hack Fix

 *  [jaxxfluxx](https://wordpress.org/support/users/jaxxfluxx/)
 * (@jaxxfluxx)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/wpml-woocommerce-code-hack-fix/)
 * Hi,
 * I love the plugin but was having a lot of problems with integrating it with Woocommerce
   and WPML.
 * The reason is the SQL query for the products is totally wrong. If you dont use
   a WordPress query the WPML filter wont take effect and you will receive mixed
   language results.
 * I hacked at the code and it works perfectly now although not in an elegant way.
 * If anyone can find any use for my hacked code I am displaying it…
 * A lot of variables are hard programmed so change the code if you want it to work
   with your WPML / Woocommerce website…
 * [Large code excerpt removed by moderator per [forum rules](https://codex.wordpress.org/Forum_Welcome#Posting_Code).
   Please use [the pastebin](http://wordpress.pastebin.com/) for all large code 
   excerpts. It works better anyway.]

The topic ‘WPML / Woocommerce Code Hack Fix’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/ajaxy-search-form_8894a4.svg)
 * [Ajaxy Instant Search](https://wordpress.org/plugins/ajaxy-search-form/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ajaxy-search-form/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ajaxy-search-form/)
 * [Active Topics](https://wordpress.org/support/plugin/ajaxy-search-form/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ajaxy-search-form/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ajaxy-search-form/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [jaxxfluxx](https://wordpress.org/support/users/jaxxfluxx/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/wpml-woocommerce-code-hack-fix/)
 * Status: not resolved