Bukimedia / PrestaSharp

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

Added products cannot be shown in backoffice #256

Closed WiiMixAdmin closed 7 years ago

WiiMixAdmin commented 7 years ago

var productFactory = new ProductFactory(baseUrl, account, password); var product = new product { name = new List() { new language(1, "My Product") }, associations = new AssociationsProduct() { categories = new List { new category(7) }, combinations = new List { new combinations() { id = 1} } }, active = 1, available_now = new List { new language(1, "In stock")}, description = new List { new language(1, "My product")}, description_short = new List { new language(1, "My product")}, id_category_default = 2, price = 10, wholesale_price = 9

        };
        product = productFactory.Add(product);

var imageFactory = new ImageFactory(baseUrl, account, password); imageFactory.AddProductImage((long)product.id, @"C:\sample.jpg");

I go to check table ps_product and ps_product_attribute records are added. And, I also can view product at home page. I'm using Prestashop 1.7.

lock[bot] commented 4 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.