Jump to content
thirty bees forum
  • 0

[SOLVED] Out of stock (false) message when confirmation order from Bank Transfer, anyone else?


danwarrior

Question

Hi, people!

I have an issue I can't understand.

Our store in cajaregistradoraytpv.com was already and selling, and now, when someone makes an order choosing Bank Transfer, inmediately the order state active is "Product Out of Stock".

I though it was a configuration error, but no. The products have stock enough and is not the behaviour configurated on Mail Alerts.

For now it only happens with bank transfer, not PayPal.

I've updated from 1.1.0 to 1.2.0 recently, could it affect in someway, @datakick?

The only related thread I've found is this one https://www.prestashop.com/forums/topic/804020-mensaje-fuera-de-stock-en-cada-pedido/?tab=comments#comment-3071294 but is about PS 1.7, not TB, so the file is not the same, in fact.

I probed that in database, the "awaiting payment with bank transfer" has ID=10, while the Product Out of Stock has ID=9. Maybe is an error on code or miscalculation?

Thanks so much!

 

Edited by danwarrior
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

bankwire module set order status to the (configurable) value PS_OS_BANKWIRE. Look into the tb_configuration table and check what status id this reference to.

https://github.com/thirtybees/bankwire/blob/master/controllers/front/validation.php#L64

select name, value from tb_configuration where name = 'PS_OS_BANKWIRE';

+----------------+-------+
| name           | value |
+----------------+-------+
| PS_OS_BANKWIRE | 9     |
+----------------+-------+

 

  • Thanks 1
Link to comment
Share on other sites

  • 0
On 5/4/2021 at 12:58 AM, datakick said:

bankwire module set order status to the (configurable) value PS_OS_BANKWIRE. Look into the tb_configuration table and check what status id this reference to.

https://github.com/thirtybees/bankwire/blob/master/controllers/front/validation.php#L64


select name, value from tb_configuration where name = 'PS_OS_BANKWIRE';

+----------------+-------+
| name           | value |
+----------------+-------+
| PS_OS_BANKWIRE | 9     |
+----------------+-------+

 

Wow, it was that. I've changed and fixed it, thanks so much!

I supose it maybe happened when I fixed incoherences on database from the core upddater module, after updating from 1.1.0 to 1.2.0.

Thanks so much!

  • Thanks 1
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...