Bukimedia / PrestaSharp

CSharp .Net client library for the PrestaShop API via web service
GNU General Public License v3.0
155 stars 152 forks source link

Hidden product when adding from prestasharp #297

Open ssssirhc opened 6 years ago

ssssirhc commented 6 years ago

Hi Everyone, I'm experiencing a strange behaviour when adding products to prestashop 1.7.2.3 The products are hidden. We need to search in the back office , and press save on the product so that they becomes available...

Selmirrrrr commented 6 years ago

You have to regenerate cache to see new products in front office search.

lichesser commented 5 years ago

Hy,

old entry, but still open and maybe this helps What we were facing in this case was, that we didn't set the product.state properly. We set active = 1, which activates the product, but you also have to set product.state to 1 (there are 2 states if you look into db product table: 0 -> tmp product, 1 -> saved product.

Since we use active = 1 and state = 1, all products are visible right after importing through Restsharp.

L