nopCommerce 4.00 is released

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 years ago
Hi Andrei, would you tell me when will nopCommerce 4.1 be released? Thank you.
6 years ago
Xuebo wrote:
Hi Andrei, would you tell me when will nopCommerce 4.1 be released? Thank you.


As Andrei said some time ago, it will be in May-June.
6 years ago
Congrats!
6 years ago
Can you please tell me how to add robots txt file in nop3.0 and format
6 years ago
Reethureena wrote:
Can you please tell me how to add robots txt file in nop3.0 and format


You have to customize the following Method in source version

nopCommerce_3.00_Source\Presentation\Nop.Web\Controllers\CommonController.cs


public ActionResult RobotsTextFile()
        {
            var disallowPaths = new List<string>()
                                    {
                                        "/bin/",
                                        "/content/files/",
                                        "/content/files/exportimport/",
                                        "/country/getstatesbycountryid",
                                        "/install",
                                        "/setproductreviewhelpfulness",
                                    };
            var localizableDisallowPaths = new List<string>()
                                               {
                                                   "/addproducttocart",
                                                   "/addproductvarianttocart",
                                                   "/boards/forumwatch",
                                                   "/boards/postedit",
                                                   "/boards/postdelete",
                                                   "/boards/postcreate",
                                                   "/boards/topicedit",
                                                   "/boards/topicdelete",
                                                   "/boards/topiccreate",
                                                   "/boards/topicmove",
                                                   "/boards/topicwatch",
                                                   "/cart",
                                                   "/checkout",
                                                   "/checkout/billingaddress",
                                                   "/checkout/completed",
                                                   "/checkout/confirm",
                                                   "/checkout/shippingaddress",
                                                   "/checkout/shippingmethod",
                                                   "/checkout/paymentinfo",
                                                   "/checkout/paymentmethod",
                                                   "/clearcomparelist",
                                                   "/compareproducts",
                                                   "/customer/avatar",
                                                   "/customer/activation",
                                                   "/customer/addresses",
                                                   "/customer/backinstocksubscriptions",
                                                   "/customer/changepassword",
                                                   "/customer/checkusernameavailability",
                                                   "/customer/downloadableproducts",
                                                   "/customer/forumsubscriptions",
                                                   "/customer/info",
                                                   "/customer/orders",
                                                   "/customer/returnrequests",
                                                   "/customer/rewardpoints",
                                                   "/deletepm",
                                                   "/emailwishlist",
                                                   "/inboxupdate",
                                                   "/newsletter/subscriptionactivation",
                                                   "/onepagecheckout",
                                                   "/orderdetails",
                                                   "/passwordrecovery/confirm",
                                                   "/poll/vote",
                                                   "/privatemessages",
                                                   "/returnrequest",
                                                   "/sendpm",
                                                   "/sentupdate",
                                                   "/subscribenewsletter",
                                                   "/topic/authenticate",
                                                   "/viewpm",
                                                   "/uploadfileproductattribute",
                                                   "/wishlist",
                                               };


            const string newLine = "\r\n"; //Environment.NewLine
            var sb = new StringBuilder();
            sb.Append("User-agent: *");
            sb.Append(newLine);
            //usual paths
            foreach (var path in disallowPaths)
            {
                sb.AppendFormat("Disallow: {0}", path);
                sb.Append(newLine);
            }
            //localizable paths (without SEO code)
            foreach (var path in localizableDisallowPaths)
            {
                sb.AppendFormat("Disallow: {0}", path);
                sb.Append(newLine);
            }
            if (_localizationSettings.SeoFriendlyUrlsForLanguagesEnabled)
            {
                //URLs are localizable. Append SEO code
                foreach (var language in _languageService.GetAllLanguages(storeId: _storeContext.CurrentStore.Id))
                {
                    foreach (var path in localizableDisallowPaths)
                    {
                        sb.AppendFormat("Disallow: {0}{1}", language.UniqueSeoCode, path);
                        sb.Append(newLine);
                    }
                }
            }

            Response.ContentType = "text/plain";
            Response.Write(sb.ToString());
            return null;
        }


//Sohel
6 years ago
Congrats!
6 years ago
I don't see new topics 4.1 with suggestions. But maybe it's possible to make "order completed" possible to manage this page from admin panel?
6 years ago
Zyje_sobie wrote:
But maybe it's possible to make "order completed" possible to manage this page from admin panel?

Could you please clarify your suggestion? What exactly do you want to manage?
6 years ago
Reethureena wrote:
Can you please tell me how to add robots txt file in nop3.0 and format


Put a file called 'robots.custom.txt' in the root directory.
6 years ago
Any easy way to upgrade production server from 3.9 ?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.