append currency to URL

Thanks to @mozboz I figured out the answer to my question. I am posting it here in case it helps somebody else: WordPress (WPML plugin for multi-language and multi-currency) uses the cookie _wcml_dashboard_currency. I was able to set a cookie with the following code and that handled my problem with the currency selection changing after … Read more

Woocommerce product query not working in other WPML languages

I would do two things Check if you get inside the IF-statement in the other languages. is_page(‘shop’) refers to a specific post/page ID. You can bypass this problem by fetching the current’s language translation post-ID with is_page( apply_filters( ‘wpml_object_id’, {{orig_page_id}}, ‘page’, true ) ) I would reverse the query, instead of excluding the unneeded product … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)