Import function not case sensitive


  • Default avatar
    david3    
     13 years ago
    0

    Hello, i am importing some coupons and i get the 'ERROR DUPLICATE COUPON CODE' error.

    I think it is because i am trying to import coupons with same name in different case (uppercase, lowercase) as coupon entry in checkout page is case-sensitive

    But i think that import function look for duplicates in import file in no case-sensitive way:
    file models/import.php,
    line 41
    @$arrdistinctcodes[strtolower($row[1])]++;
    line 165
    if($arrdistinctcodes[strtolower($row[1])]>1) {

    i thing that strtolower should not be used here

    AwoCoupon Pro 1.3.3 pro version
  • Your avatar
    seyi    
     13 years ago
    0

    You are absolutely right. I will make a note of it and make sure this is fixed in the next version.

    Thanks