Jump to content

Product with stock=0 not possible to sell despite allow it in preferences


Recommended Posts

Product with stock=0 not possible to sell despite allow it in preferences
( in preferences>products I set "Allow ordering of out-of-stock products" = ON ).

 
When trying to purchase product is says: "this combination is out of stock"
 
Checked:
  • In DB out_of_stock field is set to 2 for all the lines (default).
  • In preferences>products  the option "on" keeps activated in its green bullet, so it must be saved in DB.
  •  $allow_oosp is set 0  in product.tpl    
    Checked adding: 
     {if isset($allow_oosp)} <p>{$allow_oosp}</p> 
    it prints "0"
 
As I understand if $allow_oosp is set 0  in product page it may mean
A) that the default option for out-of-stock product I set as "on" is not being properly read from somewhere
B)it is not properly managed by tpl files (this is over my prestashop-smarty knoledge)
C)...
 
PS version 1.5.6.1
I use Attribute wizard pro AWP
Link to comment
Share on other sites

No, Advanced stock manager is not enabled.



I have two shops.  

  • shop A  I can sell product
  • shop B  I can´t sell product:    "out of stock"

     

    Perhaps a module problem ? 

    I am checking it.  
     

It is allowed to sell out of stock products: shop A,  shop B , all shops and their group (Default)

Edited by palermuke (see edit history)
Link to comment
Share on other sites

check that the actual product is set to order using reorder preferences setting

 

here is an example of a product that is set to deny orders in preferences, is yours set instead to  'deny' orders?

 

02.01.2014-08.56.png

http://screencast.com/t/sB9Lkk6ar8

YES!

I was just working on this.

For the shop which the issue  the products are set as "disabled". 

 

To try to solve, I used emagicone prestashop manager, but mass product changer doesnt work with this field *I am waitting for their support answer.

 

Therefore I looked in database for the field that I may mass update. I found the information to deal with is in out_of_stock field, in `ps_stock_available`  table.

But I dont understand well  how this table work. The info here seem to act like exceptions for  use of products-shops.... Well,.. I just dont understand.

 

 

I am thinking in having a long work changing hundred of products manually on BO.

 

 

Link to comment
Share on other sites

I changed  reorder preferences setting of all the products  in store.(one by one)
Thanks Patron for the tip.

But I have to do it also for any  new product is set. (go to this particular shop>product>quantity)  

As by default, for this shop, the products are set to not to allow out of stock orders. 
Does any PS wise know where this info is stored in DB or why this shop doesnt behaviour like main one?. 
 

Link to comment
Share on other sites

×
×
  • Create New...