Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Darren Hunter 1 post 21 karma points
    May 25, 2012 @ 11:54
    Darren Hunter
    0

    Umbraco integration NopCommerse

    Hi Guys,

    I am a newb to Umbraco, I am trying to intergrate umbraco and nopcommerse in to a single application, I can get each of them working individualy, but when I try to get them working together nopcommersie will not open, I think it a probolem with the routing engime but not two sure where to look to over ride the internal routing.

    I have edited the global.aspx file

     public static void RegisterRoutes(RouteCollection routes)
        {


            //Rout setup for the robots file.....
                    routes.MapRoute(
                "Robots.txt",
                "{path}",
                new { controller = "Robots", action = "Index" },
                new { path = @"^robots\.txt$" });
           
            //Routing table for nopcommercse from:C:\Development\nop\Presentation\Nop.Web\Infrastructure\RouteProvider.cs
            //home page
                routes.MapLocalizedRoute("HomePage",
                                "",
                                new { controller = "Home", action = "Index"},
                                new[] { "Nop.Web.Controllers" });

                //products
                routes.MapLocalizedRoute("Product",
                                "p/{productId}/{SeName}",
                                new { controller = "Catalog", action = "Product", SeName = UrlParameter.Optional },
                                new { productId = @"\d+" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("RecentlyViewedProducts",
                                "recentlyviewedproducts/",
                                new { controller = "Catalog", action = "RecentlyViewedProducts" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("RecentlyAddedProducts",
                                "newproducts/",
                                new { controller = "Catalog", action = "RecentlyAddedProducts" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("RecentlyAddedProductsRSS",
                                "newproducts/rss",
                                new { controller = "Catalog", action = "RecentlyAddedProductsRss" },
                                new[] { "Nop.Web.Controllers" });
               
                //comparing products
                routes.MapLocalizedRoute("AddProductToCompare",
                                "compareproducts/add/{productId}",
                                new { controller = "Catalog", action = "AddProductToCompareList" },
                                new { productId = @"\d+" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("CompareProducts",
                                "compareproducts/",
                                new { controller = "Catalog", action = "CompareProducts" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("RemoveProductFromCompareList",
                                "compareproducts/remove/{productId}",
                                new { controller = "Catalog", action = "RemoveProductFromCompareList"},
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("ClearCompareList",
                                "clearcomparelist/",
                                new { controller = "Catalog", action = "ClearCompareList" },
                                new[] { "Nop.Web.Controllers" });
               
                //product email a friend
                routes.MapLocalizedRoute("ProductEmailAFriend",
                                "productemailafriend/{productId}",
                                new { controller = "Catalog", action = "ProductEmailAFriend" },
                                new { productId = @"\d+" },
                                new[] { "Nop.Web.Controllers" });

                //catalog
                routes.MapLocalizedRoute("Category",
                                "c/{categoryId}/{SeName}",
                                new { controller = "Catalog", action = "Category", SeName = UrlParameter.Optional },
                                new { categoryId = @"\d+" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("ManufacturerList",
                                "manufacturer/all/",
                                new { controller = "Catalog", action = "ManufacturerAll" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("Manufacturer",
                                "m/{manufacturerId}/{SeName}",
                                new { controller = "Catalog", action = "Manufacturer", SeName = UrlParameter.Optional },
                                new { manufacturerId = @"\d+" },
                                new[] { "Nop.Web.Controllers" });

                //reviews
                routes.MapLocalizedRoute("ProductReviews",
                                "productreviews/{productId}",
                                new { controller = "Catalog", action = "ProductReviews" },
                                new[] { "Nop.Web.Controllers" });

                //back in stock notifications
                routes.MapLocalizedRoute("BackInStockSubscribePopup",
                                "backinstocksubscribe/{productVariantId}",
                                new { controller = "Catalog", action = "BackInStockSubscribePopup" },
                                new { productVariantId = @"\d+" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("DeleteBackInStockSubscription",
                                "backinstocksubscribe/delete/{subscriptionId}",
                                new { controller = "Customer", action = "DeleteBackInStockSubscription" },
                                new { subscriptionId = @"\d+" },
                                new[] { "Nop.Web.Controllers" });

                //login, register
                routes.MapLocalizedRoute("Login",
                                "login/",
                                new { controller = "Customer", action = "Login" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("LoginCheckoutAsGuest",
                                "login/checkoutasguest",
                                new { controller = "Customer", action = "Login", checkoutAsGuest = true },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("Register",
                                "register/",
                                new { controller = "Customer", action = "Register" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("Logout",
                                "logout/",
                                new { controller = "Customer", action = "Logout" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("RegisterResult",
                                "registerresult/{resultId}",
                                new { controller = "Customer", action = "RegisterResult" },
                                new { resultId = @"\d+" },
                                new[] { "Nop.Web.Controllers" });
               

                //shopping cart
                routes.MapLocalizedRoute("AddProductToCart",
                                "cart/addproduct/{productId}",
                                new { controller = "ShoppingCart", action = "AddProductToCart" },
                                new { productId = @"\d+" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("ShoppingCart",
                                "cart/",
                                new { controller = "ShoppingCart", action = "Cart" },
                                new[] { "Nop.Web.Controllers" });
                //wishlist
                routes.MapLocalizedRoute("Wishlist",
                                "wishlist/{customerGuid}",
                                new { controller = "ShoppingCart", action = "Wishlist", customerGuid = UrlParameter.Optional },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("EmailWishlist",
                                "emailwishlist",
                                new { controller = "ShoppingCart", action = "EmailWishlist" },
                                new[] { "Nop.Web.Controllers" });
               
                //checkout
                routes.MapLocalizedRoute("Checkout",
                                "checkout/",
                                new { controller = "Checkout", action = "Index" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("CheckoutOnePage",
                                "onepagecheckout/",
                                new { controller = "Checkout", action = "OnePageCheckout" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("CheckoutShippingAddress",
                                "checkout/shippingaddress",
                                new { controller = "Checkout", action = "ShippingAddress" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("CheckoutSelectShippingAddress",
                                "checkout/selectshippingaddress",
                                new { controller = "Checkout", action = "SelectShippingAddress" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("CheckoutBillingAddress",
                                "checkout/billingaddress",
                                new { controller = "Checkout", action = "BillingAddress" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("CheckoutSelectBillingAddress",
                                "checkout/selectbillingaddress",
                                new { controller = "Checkout", action = "SelectBillingAddress" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("CheckoutShippingMethod",
                                "checkout/shippingmethod",
                                new { controller = "Checkout", action = "ShippingMethod" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("CheckoutPaymentMethod",
                                "checkout/paymentmethod",
                                new { controller = "Checkout", action = "PaymentMethod" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("CheckoutPaymentInfo",
                                "checkout/paymentinfo",
                                new { controller = "Checkout", action = "PaymentInfo" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("CheckoutConfirm",
                                "checkout/confirm",
                                new { controller = "Checkout", action = "Confirm" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("CheckoutCompleted",
                                "checkout/completed",
                                new { controller = "Checkout", action = "Completed" },
                                new[] { "Nop.Web.Controllers" });

                //orders
                routes.MapLocalizedRoute("OrderDetails",
                                "orderdetails/{orderId}",
                                new { controller = "Order", action = "Details" },
                                new { orderId = @"\d+" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("ShipmentDetails",
                                "orderdetails/shipment/{shipmentId}",
                                new { controller = "Order", action = "ShipmentDetails" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("ReturnRequest",
                                "returnrequest/{orderId}",
                                new { controller = "Order", action = "ReturnRequest" },
                                new { orderId = @"\d+" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("ReOrder",
                                "reorder/{orderId}",
                                new { controller = "Order", action = "ReOrder" },
                                new { orderId = @"\d+" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("GetOrderPdfInvoice",
                                "orderdetails/pdf/{orderId}",
                                new { controller = "Order", action = "GetPdfInvoice" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("PrintOrderDetails",
                                "orderdetails/print/{orderId}",
                                new { controller = "Order", action = "PrintOrderDetails" },
                                new[] { "Nop.Web.Controllers" });
               

                //contact us
                routes.MapLocalizedRoute("ContactUs",
                                "contactus",
                                new { controller = "Common", action = "ContactUs" },
                                new[] { "Nop.Web.Controllers" });

                //passwordrecovery
                routes.MapLocalizedRoute("PasswordRecovery",
                                "passwordrecovery",
                                new { controller = "Customer", action = "PasswordRecovery" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("PasswordRecoveryConfirm",
                                "passwordrecovery/confirm",
                                new { controller = "Customer", action = "PasswordRecoveryConfirm" },                           
                                new[] { "Nop.Web.Controllers" });

                //newsletters
                routes.MapLocalizedRoute("NewsletterActivation",
                                "newsletter/subscriptionactivation/{token}/{active}",
                                new { controller = "Newsletter", action = "SubscriptionActivation" },
                                new { token = new GuidConstraint(false) },
                                new[] { "Nop.Web.Controllers" });

               

                //customer
                routes.MapLocalizedRoute("CustomerMyAccount",
                                "customer/myaccount",
                                new { controller = "Customer", action = "MyAccount" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("CustomerInfo",
                                "customer/info",
                                new { controller = "Customer", action = "Info" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("CustomerAddresses",
                                "customer/addresses",
                                new { controller = "Customer", action = "Addresses" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("CustomerOrders",
                                "customer/orders",
                                new { controller = "Customer", action = "Orders" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("CustomerReturnRequests",
                                "customer/returnrequests",
                                new { controller = "Customer", action = "ReturnRequests" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("CustomerDownloadableProducts",
                                "customer/downloadableproducts",
                                new { controller = "Customer", action = "DownloadableProducts" },
                                new[] { "Nop.Web.Controllers" });


                routes.MapLocalizedRoute("CustomerBackInStockSubscriptions",
                                "customer/backinstocksubscriptions",
                                new { controller = "Customer", action = "BackInStockSubscriptions" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("CustomerBackInStockSubscriptionsPaged",
                                "customer/backinstocksubscriptions/{page}",
                                new { controller = "Customer", action = "BackInStockSubscriptions", page = UrlParameter.Optional },
                                new { page = @"\d+" },
                                new[] { "Nop.Web.Controllers" });

                routes.MapLocalizedRoute("CustomerRewardPoints",
                                "customer/rewardpoints",
                                new { controller = "Customer", action = "RewardPoints" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("CustomerChangePassword",
                                "customer/changepassword",
                                new { controller = "Customer", action = "ChangePassword" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("CustomerAvatar",
                                "customer/avatar",
                                new { controller = "Customer", action = "Avatar" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("AccountActivation",
                                "customer/activation",
                                new { controller = "Customer", action = "AccountActivation" },                           
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("CustomerProfile",
                                "profile/{id}",
                                new { controller = "Profile", action = "Index" },
                                new { id = @"\d+"},
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("CustomerProfilePaged",
                                "profile/{id}/page/{page}",
                                new { controller = "Profile", action = "Index"},
                                new {  id = @"\d+", page = @"\d+" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("CustomerForumSubscriptions",
                                "customer/forumsubscriptions",
                                new { controller = "Customer", action = "ForumSubscriptions"},
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("CustomerForumSubscriptionsPaged",
                                "customer/forumsubscriptions/{page}",
                                new { controller = "Customer", action = "ForumSubscriptions", page = UrlParameter.Optional },
                                new { page = @"\d+" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("DeleteForumSubscription",
                                "customer/forumsubscriptions/delete/{subscriptionId}",
                                new { controller = "Customer", action = "DeleteForumSubscription" },
                                new { subscriptionId = @"\d+" },
                                new[] { "Nop.Web.Controllers" });
                //addresses
                routes.MapLocalizedRoute("CustomerAddressDelete",
                                "customer/addressdelete/{addressId}",
                                new { controller = "Customer", action = "AddressDelete" },
                                new { addressId = @"\d+" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("CustomerAddressEdit",
                                "customer/addressedit/{addressId}",
                                new { controller = "Customer", action = "AddressEdit" },
                                new { addressId = @"\d+" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("CustomerAddressAdd",
                                "customer/addressadd",
                                new { controller = "Customer", action = "AddressAdd" },
                                new[] { "Nop.Web.Controllers" });



                //blog
                routes.MapLocalizedRoute("Blog",
                                "blog",
                                new { controller = "Blog", action = "List" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("BlogRSS",
                                "blog/rss/{languageId}",
                                new { controller = "Blog", action = "ListRss" },
                                new { languageId = @"\d+" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("BlogPost",
                                "blog/{blogPostId}/{SeName}",
                                new { controller = "Blog", action = "BlogPost", SeName = UrlParameter.Optional },
                                new { blogPostId = @"\d+" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("BlogByTag",
                                "blog/tag/{tag}",
                                new { controller = "Blog", action = "List" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("BlogByMonth",
                                "blog/month/{month}",
                                new { controller = "Blog", action = "List" },
                                new[] { "Nop.Web.Controllers" });

                //forum
                routes.MapLocalizedRoute("Boards",
                                "boards",
                                new { controller = "Boards", action = "Index" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("ActiveDiscussions",
                                "boards/activediscussions",
                                new { controller = "Boards", action = "ActiveDiscussions" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("ActiveDiscussionsRSS",
                                "boards/activediscussionsrss",
                                new { controller = "Boards", action = "ActiveDiscussionsRSS" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("PostEdit",
                                "boards/postedit/{id}",
                                new { controller = "Boards", action = "PostEdit" },
                                new { id = @"\d+"},
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("PostDelete",
                                "boards/postdelete/{id}",
                                new { controller = "Boards", action = "PostDelete" },
                                new { id = @"\d+" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("PostCreate",
                                "boards/postcreate/{id}",
                                new { controller = "Boards", action = "PostCreate"},
                                new { id = @"\d+"},
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("PostCreateQuote",
                                "boards/postcreate/{id}/{quote}",
                                new { controller = "Boards", action = "PostCreate"},
                                new { id = @"\d+", quote = @"\d+" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("TopicEdit",
                                "boards/topicedit/{id}",
                                new { controller = "Boards", action = "TopicEdit"},
                                new { id = @"\d+" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("TopicDelete",
                                "boards/topicdelete/{id}",
                                new { controller = "Boards", action = "TopicDelete"},
                                new { id = @"\d+" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("TopicCreate",
                                "boards/topiccreate/{id}",
                                new { controller = "Boards", action = "TopicCreate" },
                                new { id = @"\d+" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("TopicMove",
                                "boards/topicmove/{id}",
                                new { controller = "Boards", action = "TopicMove" },
                                new { id = @"\d+" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("TopicWatch",
                                "boards/topicwatch/{id}",
                                new { controller = "Boards", action = "TopicWatch" },
                                new { id = @"\d+" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("TopicSlug",
                                "boards/topic/{id}/{slug}",
                                new { controller = "Boards", action = "Topic", slug = UrlParameter.Optional },
                                new { id = @"\d+"},
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("TopicSlugPaged",
                                "boards/topic/{id}/{slug}/page/{page}",
                                new { controller = "Boards", action = "Topic", slug = UrlParameter.Optional, page = UrlParameter.Optional },
                                new { id = @"\d+", page = @"\d+"},
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("ForumWatch",
                                "boards/forumwatch/{id}",
                                new { controller = "Boards", action = "ForumWatch" },
                                new { id = @"\d+" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("ForumRSS",
                                "boards/forumrss/{id}",
                                new { controller = "Boards", action = "ForumRSS" },
                                new { id = @"\d+" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("ForumSlug",
                                "boards/forum/{id}/{slug}",
                                new { controller = "Boards", action = "Forum", slug = UrlParameter.Optional },
                                new { id = @"\d+" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("ForumSlugPaged",
                                "boards/forum/{id}/{slug}/page/{page}",
                                new { controller = "Boards", action = "Forum", slug = UrlParameter.Optional, page = UrlParameter.Optional },
                                new { id = @"\d+", page = @"\d+" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("ForumGroupSlug",
                                "boards/forumgroup/{id}/{slug}",
                                new { controller = "Boards", action = "ForumGroup", slug = UrlParameter.Optional },
                                new { id = @"\d+" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("Search",
                                "boards/search",
                                new { controller = "Boards", action = "Search" },
                                new[] { "Nop.Web.Controllers" });

                //private messages
                routes.MapLocalizedRoute("PrivateMessages",
                                "privatemessages/{tab}",
                                new { controller = "PrivateMessages", action = "Index", tab = UrlParameter.Optional },
                                new[] { "Nop.Web.Controllers" });

                routes.MapLocalizedRoute("PrivateMessagesPaged",
                                "privatemessages/{tab}/page/{page}",
                                new { controller = "PrivateMessages", action = "Index", tab = UrlParameter.Optional },
                                new { page = @"\d+" },
                                new[] { "Nop.Web.Controllers" });

                routes.MapLocalizedRoute("PrivateMessagesInbox",
                                "inboxupdate",
                                new { controller = "PrivateMessages", action = "InboxUpdate" },
                                new[] { "Nop.Web.Controllers" });

                routes.MapLocalizedRoute("PrivateMessagesSent",
                                "sentupdate",
                                new { controller = "PrivateMessages", action = "SentUpdate" },
                                new[] { "Nop.Web.Controllers" });

                routes.MapLocalizedRoute("SendPM",
                                "sendpm/{toCustomerId}",
                                new { controller = "PrivateMessages", action = "SendPM" },
                                new { toCustomerId = @"\d+" },
                                new[] { "Nop.Web.Controllers" });

                routes.MapLocalizedRoute("SendPMReply",
                                "sendpm/{toCustomerId}/{replyToMessageId}",
                                new { controller = "PrivateMessages", action = "SendPM" },
                                new { toCustomerId = @"\d+", replyToMessageId = @"\d+" },
                                new[] { "Nop.Web.Controllers" });

                routes.MapLocalizedRoute("ViewPM",
                                "viewpm/{privateMessageId}",
                                new { controller = "PrivateMessages", action = "ViewPM" },
                                new { privateMessageId = @"\d+" },
                                new[] { "Nop.Web.Controllers" });

                routes.MapLocalizedRoute("DeletePM",
                                "deletepm/{privateMessageId}",
                                new { controller = "PrivateMessages", action = "DeletePM" },
                                new { privateMessageId = @"\d+" },
                                new[] { "Nop.Web.Controllers" });

                //news
                routes.MapLocalizedRoute("NewsArchive",
                                "news",
                                new { controller = "News", action = "List" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("NewsRSS",
                                "news/rss/{languageId}",
                                new { controller = "News", action = "ListRss" },
                                new { languageId = @"\d+" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("NewsItem",
                                "news/{newsItemId}/{SeName}",
                                new { controller = "News", action = "NewsItem", SeName = UrlParameter.Optional },
                                new { newsItemId = @"\d+" },
                                new[] { "Nop.Web.Controllers" });

                //topics
                routes.MapLocalizedRoute("Topic",
                                "t/{SystemName}",
                                new { controller = "Topic", action = "TopicDetails" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("TopicPopup",
                                "t-popup/{SystemName}",
                                new { controller = "Topic", action = "TopicDetailsPopup" },
                                new[] { "Nop.Web.Controllers" });
                //sitemaps
                routes.MapLocalizedRoute("Sitemap",
                                "sitemap",
                                new { controller = "Common", action = "Sitemap" },
                                new[] { "Nop.Web.Controllers" });
                routes.MapLocalizedRoute("SitemapSEO",
                                "sitemapseo",
                                new { controller = "Common", action = "SitemapSeo" },
                                new[] { "Nop.Web.Controllers" });

                //product tags
                routes.MapLocalizedRoute("ProductsByTag",
                                "productag/{productTagId}/{SeName}",
                                new { controller = "Catalog", action = "ProductsByTag", SeName = UrlParameter.Optional },
                                new { productTagId = @"\d+" },
                                new[] { "Nop.Web.Controllers" });
               
                //product search
                routes.MapLocalizedRoute("ProductSearch",
                                "search/",
                                new { controller = "Catalog", action = "Search" },
                                new[] { "Nop.Web.Controllers" });

                //config
                routes.MapLocalizedRoute("Config",
                                "config",
                                new { controller = "Common", action = "Config" },
                                new[] { "Nop.Web.Controllers" });
            }
     
           

    But for some reason I still can't get in to nopcommerse I just get an error 404 when trying.

    I have spent the past couple of days looking for a solution, is there a CS file I can edit to add custome routes or is there another way I can get this to work. We need a CMS built in to NOP and think this is the best one. I tryed to follow the video posted by one of the developers for a previuse version of nop and umbraco but that only takes me so far.

    I feel like I am pulling my haire out.

    Any help would be apreciated.

Please Sign in or register to post replies

Write your reply to:

Draft