Jump to content

Partial refund : error shopId must be greater than 0


Recommended Posts

Hi there,

On Prestashop 1.7.8.7, I have a strange issue.

On a paid and shipped order, I want to do a partial refund. But I've got an error : "An unexpected error occurred. [PrestaShop\PrestaShop\Core\Domain\Shop\Exception\ShopException code 0]: Shop id 0 is invalid. Shop id must be number that is greater than zero."

Sometimes the 2nd part of the message ("Shop id 0 is invalid. Shop id must be number that is greater than zero.") did not appear, but there's still an error.

It's not occur on every order, but I didn't find the difference between them.

The error isn't explicit enought, so I hope someone already get this trouble and found a solution.

Thanks

 

Link to comment
Share on other sites

8 minutes ago, juanrojas said:

please do not mix the themes, this error is from the multi-store store or not?

Website A : yes

Website B : no

Issue is the same on both sites, I do not mix the themes

Link to comment
Share on other sites

On 5/10/2023 at 4:13 PM, aure34 said:

Website A : yes

Website B : no

Issue is the same on both sites, I do not mix the themes

Hello aure34, I have the same issue after a standard/partial refund ? Did you fixed it ?
Thanks a lot for your answer !

Ed

Link to comment
Share on other sites

  • 4 months later...

Hey guys, I managed to solve this issue (at least for my current situation).

For some reason my order had id_cart = 1 in ps_orders, so I looked at my shopping carts page and took a cart ID number from there and add it to id_cart. After this I could easily refund the order without errors.

Hope it helps.

Edited by zanpo (see edit history)
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...