How to Create New Custom Product Details Page In NopCommerce - asp.net

How to create new custom product details page in NopCommerce new generic url RouteProvice and new HTML page

Just write Generic route url in plugin and update order, give your own generic route name.
Register Generic router at DependencyRegister.
Update your controller and actionMethod for product detail page.

Related

Issue while including category name in url "{cate-name}/{se-name}" in category landing page in Nop Commerce

I am using nopcommerce 3.40 and i want to include Parent category name in url of category landing page which i can able to do by
adding parent category name manually in sename from admin side while creating category for example i have Parent category saree then in sename i am giving like "saree/test"
and adding below code in
Nop.web\Infrastructure\GenericUrlRouteProvider.cs
routes.MapGenericPathRoute("AllUrls1",
"{*generic_se_name}",
new { controller = "Common", action = "GenericUrl" },
new[] { "Nop.Web.Controllers" });
this way i am able to get my result.But its making problem in checkout page(i am using one page checkout).Problem is after billing address selection instead of going to shipping address section its redirecting to cart page.
Is there anything i need to do extra that i am missing for this issue or any other way to get url i want for category landing page?
You can't do this like this way best way to do this is to modify code in the nopCommerce route handler. Go to below file and modify it.
/Presentation/Nop.Web.Framework/Seo/GenericPathRoute.cs

Nopcommerce Product Listing Controller

I am trying to do some custom programming in NopCommerce 3.50.
I have created custom filter attribute that performs required check when any controller or action method is accessed. I want to place this action filter at the place where all products are getting listed but i am not able to find any action method or controller which fetches the list of products.
Can any one let me know which controller or action method should i look for in the solution ?
Basically nop commerce follows the url rewriting with friendly names of categories i want to place my filter on that controller. so if my url is www.xyz.com/toys then i want to know to which controller this url will hit in code in order to get products of toys category ?
Nopcommerce will hit the CatalogController. And will then use the Category action method to get the products in the category Toys.
Also you should use a action filter if you are going to rewrite a action inside a nopcommerce folder.
See posts:
[https://stackoverflow.com/questions/25723821/how-to-implement-an-action-filter-in-nopcommerce]1
and
http://www.pronopcommerce.com/overriding-intercepting-nopcommerce-controllers-and-actions

how to return on product's detail page in NopCommerce 3.20

I want to create plugin which shows Category-vice MostViewed Products.
So i need to know how to return on Product's detail page from my plugin.
You should create in your plugin's controller method like Product() method in Nop.Web\Controllers\CatalogController.cs which method, that will return your new views or default views from Nop.Web.

Custom slug for User pod

Is there a way to use a custom slug for an extended user table?
E.g. when adding a field "band_name" to the User table, I would like the details page to be available under /profiles/{band_name}/
Right now the only thing I get it the email address of the user account.
At the moment, the page /profiles/ is a WP page with a custom template "profiles.php" rendering a list of users via pods.
The detail page is a pods_page /profiles/* as I was unable to connect it automagically like I did with another custom content type "events", which takes the template "single-events.php" by default. "single-user.php" or "single-profiles.php" didn't work with the user pod.
You will need to register the template with the standard WP Template header like:
/*
Template Name: Profile Detail
*/
Then, select that template in your Pod Page settings.

Need to clone a existing wordpress admin page

I need to create a new page which will have same functionality of one the page of admin.
I have a page which is accessed by /wp-admin/post-new.php?post_type=shop_order.
I have made a copy of this page by the name "new-post0.php" but when I access new cloned page , its content is different!
I m missing something at registering this new page?
You shouldn't copy and paste Wordpress core files. That's called "hacking the core" which is very very bad.
http://websynthesis.com/dont-hack-wordpress-core/
You should instead develop your "new-post" page as a new custom post type.
You can learn about them here:
http://codex.wordpress.org/Post_Types
The link /wp-admin/post-new.php?post_type=shop_order you posted refers to a new post page for a custom post type.
To get another page like that, you'll need to create another custom post type and add the custom meta fields.
If you can't code it, there are plugins that you can use to achieve the same results.
Custom Post Type UI to create custom post types and ACF for custom fields. Right now, you should download ACF from Github.

Resources