Salta la navigazione
Sun Mon Tue Wed Thu Fri Sat
- 12:00 – 16:00 10:00 – 14:00 10:00 – 14:00 9:00 – 13:00 9:00 – 13:00 -
- 17:00 – 21:00 15:00 – 19:00 15:00 – 19:00 14:00 – 18:00 14:00 – 18:00 -

Fuso orario del supporto: Europe/Bucharest (GMT+03:00)

Questo ticket contiene 0 risposta, ha 1 voce.

Ultimo aggiornamento da agostinhoM 1 anno, 12 mese fa.

Assistito da: Mihai Apetrei.

Autore Post
Giugno 27, 2023 alle 10:29 am #13901513

agostinhoM

I’m developing a WordPress website where I’m adding several new features in the backoffice.

In some cases I’m adding new admin pages where I’m using WP_List_Table class.

Usually under the top of the page I’ve some dropdowns to select data that I will use to filter my data.

And here is where it starts my problem with WPML

For exemple:
In one dropdown I’m using ajax to fill it with data. My ajax call is using the following SQL

SELECT pm.meta_value as email, i.order_id as nr_encomenda
FROM 1kjpf_posts AS p
INNER JOIN 1kjpf_postmeta AS pm ON p.ID = pm.post_id
INNER JOIN 1kjpf_woocommerce_order_items AS i ON p.ID = i.order_id
INNER JOIN 1kjpf_woocommerce_order_itemmeta AS im ON i.order_item_id = im.order_item_id
INNER JOIN 1kjpf_woocommerce_order_itemmeta AS td ON i.order_item_id = td.order_item_id
WHERE p.post_status NOT IN ('wc-cancelled', 'trash')
AND pm.meta_key IN ('_billing_email')
AND im.meta_key IN ('_product_id', '_variation_id')
AND im.meta_value = 990
AND td.meta_key IN ('tour_date')
AND td.meta_value = '2023-11-05'

L'argomento “[Chiuso] I'm developing a custom WordPress website with custom coding and I have issues with WPML” è chiuso ai nuovi commenti.