stepanbenes / api-for-nopcommerce

API plugin for nopCommerce 4.50
MIT License
141 stars 93 forks source link

NopCustomerDefaults Class Doesn't Have Required Properties #72

Closed mucahitaydinlik closed 3 months ago

mucahitaydinlik commented 2 years ago

Hello,

I am trying to build the api plugin project but Nop.Core.Domain.Customers -> NopCustomerDefaults class does not have below properties those are required:

FirstNameAttribute LastNameAttribute LanguageIdAttribute CurrencyIdAttribute DateOfBirthAttribute GenderAttribute VatNumberAttribute VatNumberStatusIdAttribute CompanyAttribute

nopcommerce_nopcustomer_defaults_err

How can I handle this problem?

Thanks.

amotalles commented 2 years ago

same issue ,but I have created theme manually inside Nop.Core.Domain.Customers.NopCustomerDefaults as :

public static string FirstNameAttribute => "FirstName"; public static string LastNameAttribute => "LastName"; public static string LanguageIdAttribute => "LanguageId"; public static string CurrencyIdAttribute => "CurrencyId"; public static string DateOfBirthAttribute => "DateOfBirth"; public static string GenderAttribute => "Gender"; public static string VatNumberAttribute => "VatNumber"; public static string VatNumberStatusIdAttribute => "VatNumberStatusId"; public static string CompanyAttribute => "Company";

D3bo commented 2 years ago

Nopcommerce team recently moved these properties in the main customer class in the develop branch (targeting nop 4.6).

Actually to use this project it's needed to use one of the 4.50.x versions.

Il sab 6 ago 2022, 14:08 Mücahit Aydınlık @.***> ha scritto:

Hello,

I am tring to build api plugin project but Nop.Core.Domain.Customers -> NopCustomerDefaults class does not have below properties those are required:

FirstNameAttribute LastNameAttribute LanguageIdAttribute CurrencyIdAttribute DateOfBirthAttribute GenderAttribute VatNumberAttribute VatNumberStatusIdAttribute CompanyAttribute

[image: nopcommerce_nopcustomer_defaults_err] https://user-images.githubusercontent.com/32965086/183248289-9f0c1377-469f-4840-9ffe-bab9301303ec.PNG

How can I handle this problem?

Thanks.

— Reply to this email directly, view it on GitHub https://github.com/stepanbenes/api-for-nopcommerce/issues/72, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADZKPTVHTPT6PKXDCBOQSFLVXZISLANCNFSM55YPP7CQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

D3bo commented 3 months ago

Fixed with branches 4.7 and develop