Hello! I'm trying to make SQL in the expression editor like
round([CSV_COL(35)]/(SELECT conversion_rate FROM `mh_presta`.`ps_currency` WHERE `iso_code` LIKE 'USD'),0)
But it throws an error
Error: "Table 'mh_presta.ps_currency' doesn't exist"
The database name and table name are correct.
I tried many variants, but still have an error. What is the sintax I must use?
Dec 03 (54 days ago)
Thanks for writing to us. As we understood, yu try to convert the price to dollars and round it. We tested on a test store and expression works. https://prnt.sc/vuxapy
The error only reproduces if you enter incorrect table name. Please check the exact table name in your database.
Dec 03 (53 days ago)
Thanx for answer.
Yeah, I'm trying to convert price.
Look at this screens, please:
Dec 07 (50 days ago)
Thanks for the screenshots. Please try to remove ` from the database and table names. Like this:
round([CSV_COL(35)]/(SELECT conversion_rate FROM mh_presta.ps_currency WHERE iso_code LIKE 'USD'),0)
Dec 14 (42 days ago)
We haven't heard back from you for last 7 days, please confirm that all questions were answered and issues are resolved. In case you haven't received an answer, please check your spam folder or check the status of ticket online at:
Maybe we are waiting for some information from your side? In this case please get back to us.
In case we haven't replied you back or in case of any misunderstanding, please reply to this mail with all details so we could proceed.
If you do not reply us back, the ticket will be automatically closed within 24 hours.