Jump to content

[SOLVED] Out of stock behaviour ignored in CSV import


Recommended Posts

Hello,

My shop is using Prestashop 1.7.6.5

Sorry for the french language on my screenshots, but I'm sure you'll recognize the interface.

I have set the default behaviour for out of stock products as "Allow order for out of stock products"

1466611322_Screenshot2020-08-23at10_40_09.thumb.png.f03c049216b9fd6209bafe0d32f31119.png

 

In my CSV file for product import, in the "Available for order (0 = No, 1 = Yes)" column, I have set every products with a "1"

593399016_Screenshot2020-08-23at10_46_34.thumb.png.8f470d31cc6de9641d6980fdba41df7d.png

 

But on my product edit page, for every single product, it is neither the default behaviour, nore the behaviour set in the CSV file that is active, but instead, orders for out-of-stock products are not allowed :

2134428925_Screenshot2020-08-23at10_40_40.thumb.png.1ed830144c73f61d7df939ec22dc799f.png

 

I have nearly 3000 products in my store and I cannot possibly edit every single one of them manually.

 

Does anyone knows why the standard behaviour is not the default choice, and why the behaviour set in the CSV file is ignored ? Or how to mass edit those settings for all my products.

This has been making me crazy for a while now and I haven't been able to solve it yet.

 

Thanks a lot in advance.

Aurélien

Link to comment
Share on other sites

  • 5 weeks later...

Quick question to clarify:
Are you listing ALL of your products as 0 quantity, but allowing people to order them?

If that's the case, try turning off "Enable stock management", the second "OUI" in you first picture.

 

Let me know if this helps, or if I misunderstood.

 

Kathleen

 

Link to comment
Share on other sites

About 40% of my products have a quantity of 0. They are rarely sold items so it doesn't make sense to me to have them in stock but it is important that I still list them and let them available for order.

The stock management feature is important for all the other products.

What I find most puzzling is that the CSV import ignores my instruction to allow order.

Link to comment
Share on other sites

Ah ! Yes, it seemed to have worked. The field was called "Action when out of stock" in my backoffice, and it worked when I filled it with "2".

I will now do a full catalog import and let you know if it worked (I don't see why it wouldn't but, black magic sometimes happens with databases).

Thanks a lot for the guidance.

Link to comment
Share on other sites

1 minute ago, Aurélien Lecour said:

Ah ! Yes, it seemed to have worked. The field was called "Action when out of stock" in my backoffice, and it worked when I filled it with "2".

I will now do a full catalog import and let you know if it worked (I don't see why it wouldn't but, black magic sometimes happens with databases).

Thanks a lot for the guidance.

SO happy I could help you !

A little "white" magck helped LOL

  • Thanks 1
Link to comment
Share on other sites

  • Aurélien Lecour changed the title to [SOLVED] Out of stock behaviour ignored in CSV import
  • 5 months later...

I was going crazy with this, also the out_of_stock column in product table is useless, it never changes and it is not the correct parameter. In fact, out_of_stock is in the stock_available table!!! DAAAMN!!!

Link to comment
Share on other sites

  • 10 months later...
On 3/10/2021 at 6:41 AM, zod said:

I was going crazy with this, also the out_of_stock column in product table is useless, it never changes and it is not the correct parameter. In fact, out_of_stock is in the stock_available table!!! DAAAMN!!!

What is the usage of the out_of_stock field in ps_product? It is a confusing.

I thought i was doing something wrong and lucky i see your reply that this field is stored in stock_available instead. Thank you.

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...