Skip to content Skip to sidebar

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 2 replies, has 2 voices.

Last updated by nataliaM-3 4 years, 2 months ago.

Assisted by: Raja Mohammed.

Author Posts
August 1, 2021 at 7:51 am #9321777

nataliaM-3

Web site use 3 currencies:

Chinese yuan (default) (base)
US dollar
Russian ruble

Let's say user make an order in Russian ruble, then in admin we can see only the converted price in ruble. Which is only the right way, however shop manager have to operate base price in some cases in offline and conversation issues.

How can I add default or base currency (Chinese yuan) next to order currency in admin panel for information purpose of admin.

Current currencies settings is attached
Expected result screen shot is attached

2021-08-01_10-40-13.png
2021-08-01_10-35-36.png
August 2, 2021 at 10:47 am #9326653

Raja Mohammed
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello there,

This requires custom coding, and this is something beyond our support capabilities. However I can help with some pointers on how to deal with this.

Since you want to get the base price for each product, the base price is always saved in the wp_postmeta table against the product id with the meta key price and _sale_price,

In order to display the base results as per your requirement, you can use the woocommerce action "woocommerce_order_details_after_order_table_items" and add a custom function to it to get the order details and eventually get the base price for each product,
Refer hidden link

Please note I am trying to help in a better way, at least to point in the right direction as we do not deal with custom work on this support forum.

Regards
Raja