Jump to content

ERROR: Price specification not found for currency:


Jarkko Muhonen

Recommended Posts

  • 3 months later...
  • 6 months later...
  • 5 months later...

Yeah this was the same issue I had with the Migration Pro Module for past orders which seemed to not align with payment id's
The tables that need fixing is ps_cart, ps_orders and ps_order_payment under the id_currency column

 

From what I have found is that the PS1.7 and lower have the currency ID's starting from 0 and PS8 onwards the currency begins with ID 1
So to move the data forwards start from the highest number and work backwards to prevent an overlap in the instruction
Change Currency ID 2 to 3, then 1 to 2, then 0 to 1

SQL you can run to change the data is:
Update ps_orders
SET id_currency = '2'
Where id_currency = '1';

Update ps_order_payment
SET id_currency = '2'
Where id_currency = '1';

Update ps_cart
SET id_currency = '2'
Where id_currency = '1';

Edited by PPSA (see edit history)
  • Like 1
Link to comment
Share on other sites

  • 3 weeks later...

Same problem here on PS 1.7.7.3 with the Classic theme. I have found past orders in ps_orders and ps_order_payment with id_currency = 0.
I updated id_currency to the single currency existting in the shop: id = 1.

Not solved.

In backoffice the orders listing, for those orders only, returns http500.
I have 988 orders and only 31 (the very first orders from 2016 - 2018 period) of them had id_currency = 0. In the backoffice listing of orders, with a setting of showing 20 orders on page, every page loads but the last one and the one before.

Link to comment
Share on other sites

  • 3 weeks later...
  • 1 month later...

So from what I have experienced, is that the entire orders list is queried even though it only displays 20,30,50,100 of your choosing.
So you need to go back to the tables ps_orders and ps_order_payment and sort by the id_currency column/field to make sure there is no other values there besides the value "2"
If there is just one pre-existing order with another value that does not tie up to the ps_currency table "2" then it will throw the error you are experiencing.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...