Skip Navigation

This topic contains 0 réponse, has 1 participant.

Last updated by Maximilien HAIBI il y a 10 months et 1 week.

Assigned support staff: Bruno Kos.

Auteur Messages
novembre 13, 2019 à 11:47 #4938417

Maximilien HAIBI

Hello

I have to display product price(i.e currency) by user, for that, "wcml_client_currency" filter.
add_filter( 'wcml_client_currency', 'modify_client_currency', 10, 1 );
function modify_client_currency($currency) {
$type = get_the_author_meta('price_for_reseller', get_current_user_id());
if ($type == "sterling") {
return 'GBP';
} else {
return 'EUR';
}
}

by this filter i got price in GBP when user's custom field i.e price_for_reseller set as GBP.

I want display only those product where GBP price entered. I set " Set prices manually in other currencies". and I have keep " Only show products with custom prices in secondary currencies " checkbox selected in multi currency setting.
see screenshots.

Issue is when i open product listing, I don't get any GBP products.

I did something wrong with setting ?

Please help me to fix this issue asap,

Thanks