The 5th annual nopCommerce conference will take place in India on the 10th-11th of October. Please find more about this event here

Error in datatables Nop 4.2

Posted: July 10, 2019 at 5:07 AM Quote #242344
Hi,
I want to add a new list page in Admin side. but datatable is not populating. Error is , TypeError: c is undefined in datatables.min.js:52:13.  How to resolve it. How we add new list page in Nop 4.2???

Atiq.
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Atiq.
Posted: July 10, 2019 at 12:16 PM Quote #242365
Hello Atiqiub,
For creating a new list page in nop 4.2 follow the bellow steps :

1. Create a domain in "Libraries\Nop.Core\Domain".
2. Create a Map for your domain in "Libraries\Nop.Data\Mapping".
3. Create service/s for using database in "Libraries\Nop.Services".
4. Register your service dependency in "Nop.Web.Framework/Infrastructure/DependencyRegistrar.cs".
5. Create a controller for your list page in "Nop.Web/Areas/Admin/Controllers".
6. Create needed models for the list page in "Nop.Web/Areas/Admin/Models".
7. Create your Views in "Nop.Web/Areas/Admin/Views".

If you want, you can add a sitemap in "Nop.Web/Areas/Admin/sitemap.config".

for datatable error you can check the bellow link:
https://stackoverflow.com/questions/29893207/datatables-typeerror-c-is-undefined
This post/answer is useful
1
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: July 11, 2019 at 5:13 AM Quote #242411
ferdous0905 wrote:


for datatable error you can check the bellow link:
https://stackoverflow.com/questions/29893207/datatables-typeerror-c-is-undefined


Thanks, All steps done but datatables js throws error "c is undefined" Your above link is related but problem not solved.
Main question is from nopcommerce developers how they added datatables to list pages? and what are the steps we fallow to add new list page? (e.g MyCustomers list page)

Atiq.
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Atiq.
Posted: July 11, 2019 at 9:58 PM Quote #242452
I think you should split it into 1 Plugin. You should not touch the core as well as edit the tables in the database. It makes upgrading later difficult
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Plugin Dynamic Form for nopCommerce (Plugin Contact Form Nopcommerce): http://nopplugin.com/dynamic-form-nopcommerce

Nopcommerce Amp Plugin: http://nopplugin.com/google-accelerated-mobile-for-nopcommerce

Nopcommerce Multi Tenant: http://nopplugin.com/nopcommerce-multi-tenant-download
Premium support services
  • Dedicated premium support services provided by core developers are intended for persons who run mission critical websites, work on projects with tight deadlines, or want to get dedicated support.
Professional services
  • Want to open a new store? Want to take your store to the next level? Need a custom extension? We can customize nopCommerce to fit your store perfectly. Request a quote to get started.