Developer Tutorials

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
10 years ago
Could you point me to good developer tutorials?
10 years ago
https://www.nopcommerce.com/documentation.aspx but it's best to just read the sourcecode.
10 years ago
I agree with keesjan,

Best is to read the source code and try to understand what is happening. You will understand the structure of NopCommerce faster when you take a look at the database to.

Learning by reading and searching this forum is a good way to learn fast as well.

But it is true that there isn't much documentation available for NopCommerce.
10 years ago
Is it possible to alter the source code and data table structures as needed?

I want to be able to make it so that multiple databases can be used in a multi store set-up. Also will want to change the admin so that each store has it's own individual admin.
10 years ago
MaxMommersteeg wrote:
I agree with keesjan,

Best is to read the source code and try to understand what is happening. You will understand the structure of NopCommerce faster when you take a look at the database to.

Learning by reading and searching this forum is a good way to learn fast as well.

But it is true that there isn't much documentation available for NopCommerce.

Max,

What is it in the database that you would look at specifically?

I'm not sure of how to analyze the database to learn how nopCommerce works.

Thanks,
Tony
10 years ago
For example:

Search in the solution for the ProductModel.cs, in that class are a lot of variables like:
GTIN, Name, ID

Open the database in SQL Server Management Studio, Search for the table named: Product.
Check the columns inside the Product table.

They are equal to the variables at the ProductModel.cs class, So ProductModel class retrieves data from the Product Table and stores it's data in the Product table.

Almost everything is build this way and connect this way.

For example:

When you want to add an extra field, you just go by the word MVC(Model, View, Controller)
Fist add the field in the Model, then in the View and in the Controller as last.

You learn by looking at the default variables.

When you want to insert a string, just look at the name field for example, which is also a string.

It's hard to explain, how to look. I started working with NopCommerce a few weeks ago. And I already understand almost everything about it, how it works etc. Contact me when you have any problems or don't know where to search.

I don't know if you have any experience in programming, but it would be VERY useful to have some.
10 years ago
MaxMommersteeg wrote:
For example:

Search in the solution for the ProductModel.cs, in that class are a lot of variables like:
GTIN, Name, ID

Open the database in SQL Server Management Studio, Search for the table named: Product.
Check the columns inside the Product table.

They are equal to the variables at the ProductModel.cs class, So ProductModel class retrieves data from the Product Table and stores it's data in the Product table.

Almost everything is build this way and connect this way.

For example:

When you want to add an extra field, you just go by the word MVC(Model, View, Controller)
Fist add the field in the Model, then in the View and in the Controller as last.

You learn by looking at the default variables.

When you want to insert a string, just look at the name field for example, which is also a string.

It's hard to explain, how to look. I started working with NopCommerce a few weeks ago. And I already understand almost everything about it, how it works etc. Contact me when you have any problems or don't know where to search.

I don't know if you have any experience in programming, but it would be VERY useful to have some.


Max,

Thanks for your help with this subject.

I do have about 45 years of programming experience in COBOL, Fortran, Visual Basic.

When I look at the architecture of nopCommerce, it looks like the only projects that us the MVC programming model are Nop.Admin, Nop.Web and Plugins.  Is that correct?

The other projects are just plain C#?

Thanks,
Tony
10 years ago
The other structure part services and core are - correct me if I am wrong-
besides core functionality - IMHO
tribute to EntityFramework structure supply with Data (Table objects)
and Services (core interaction between Database Tables and Code)
10 years ago
First thing you got to learn with Nop-Sources too- especially if you dare change the core -
Clean up .Net Temporary Folders and binaries in obj folders.
It can be really hairpulling sometimes,
showing errors that make no sense until you even restart visual studio or your whole PC... :-)
10 years ago
apfelsine wrote:
First thing you got to learn with Nop-Sources too- especially if you dare change the core -
Clean up .Net Temporary Folders and binaries in obj folders.
It can be really hairpulling sometimes,
showing errors that make no sense until you even restart visual studio or your whole PC... :-)


Apfelsine,

Thanks for your replies.

How do I "Clean up  .Net Temporary Folders and binaries in obj folders?"

I do run Clean Solution when I make changes to nopCommerce.

Thanks,
Tony
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.