nopCommerce v2.60 released

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
11 years ago
bradcwalker wrote:
Great, do you think upgrade our current site: http://www.ibagsbuy.com/ to v2.6 would be easy? We currently use v1.9.

Yes, it will be quite easy, but only if you used some source control version (such as Mercurial or TFS) when customizing ibagsbuy site (so you have change history). And some ASP.NET MVC skills will be required
11 years ago
Andrei,

I have a "bug" on cenerating pictures seo names with accents.

FI. I have this name: bavlněný

Image generated system name is: bavlnn

but should be: bavlneny

(The same works fine on SEO url)

Thanks [b][/b]

I made some research and I am sending you a pieco of code I used in another project:


using System.Globalization;
using System.Text;

namespace XYZ
{
    public class StringHelper
    {
        // For de-accenting string
        public static string ToUrl(string s, string deli = "_", bool tolower = true)
        {

            s = s.Normalize(NormalizationForm.FormD).Trim();
            StringBuilder sb = new StringBuilder();
            for (int i = 0; i < s.Length; i++)
            {
                if (CharUnicodeInfo.GetUnicodeCategory(s[i]) != UnicodeCategory.NonSpacingMark) sb.Append(s[i]);
            }
            string tit = sb.ToString();
            tit = (tolower) ? tit.ToLower() : tit;

            
            tit = tit.Replace("/", "-");
            tit = tit.Replace("&", "and");
            tit = tit.Replace(" ", deli);
            tit = tit.Replace("+", deli+"plus");
            tit = tit.Replace("„", "");
            tit = tit.Replace("“", "");
            tit = tit.Replace("”", "");
            tit = tit.Replace("ƒˆƒƒƒƒƒ‚", "");
            tit = tit.Replace("‘", "");
            tit = tit.Replace("’", "");
            tit = tit.Replace(":", "");
            tit = tit.Replace("-", deli);
            tit = tit.Replace("\"", "");
            tit = tit.TrimEnd();



            return tit;
        }
    }
}


Maybe can inspire you.
11 years ago
fibox wrote:
I have a "bug" on cenerating pictures seo names with accents

Thanks a lot for reporting
11 years ago
Andrei I got nop-template all shop last week but got some problems with Cloud Zoom Plugin. I will be probably with the last build (3e64e3c8c834) it seems for me one small bug on line 357 in   src/Libraries/Nop.Services/Media/PictureService.cs

I assume there should be the last parameter as optional:
not:
 return GetPictureUrl(picture, targetSize, showDefaultPicture, useSsl); 

but:
 return GetPictureUrl(picture, targetSize, showDefaultPicture, bool? useSsl = null); 


Am I right?
11 years ago
a.m. wrote:
I have a "bug" on cenerating pictures seo names with accents
Thanks a lot for reporting


Pleasure. I corrected as I wrote and it works fine for me now.
11 years ago
fibox wrote:
...it seems for me one small bug on line 357 in   src/Libraries/Nop.Services/Media/PictureService.cs

I assume there should be the last parameter as optional:
not:
 return GetPictureUrl(picture, targetSize, showDefaultPicture, useSsl); 

but:
 return GetPictureUrl(picture, targetSize, showDefaultPicture, bool? useSsl = null); 


Am I right?

No. Everything is right there. The method accepts an optional parameter and then passes it to the next (overloaded) method.
P.S. Your code won't compile
11 years ago
O yes I am with you.
11 years ago
Hi Andrei,

I cannot see full Category tree and breadcrumbs (showing only Home and first level cat) when on product page. Please See http://fibox.cz/data/nopCommerce/LevelsMissing.jpg.
Is there any setup switch to decide how deep to show?

Or is a bug?

Thanks
11 years ago
fibox wrote:
Hi Andrei,

I cannot see full Category tree and breadcrumbs (showing only Home and first level cat) when on product page. Please See http://fibox.cz/data/nopCommerce/LevelsMissing.jpg .
Is there any setup switch to decide how deep to show?

Or is a bug?

Thanks


RESOLVED

I found the problem:


I have had selected all categories in all levels tree in product category page.
So NOP showed only the highest level.

Smashing!
11 years ago
Andrei, is there any switch for setting up ther timeoput for session?

On local host I havent problems at all, but on ISP I am timeouting within cca one minute???

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