Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Brands To Sort Alphabetically Rate Topic   * * * * * 1 votes

 
  • soldierly
  • Member
  • Members
  • Join Date: 10-Jun 09
  • 150 posts

Posted 25 April 2014 - 04:04 PM #1

English Alphabet to sort

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z (Ç Ğ İ Ö Ş Ü)


Turkish Alphabet to sort

A B C Ç D E F G Ğ H I İ J K L M N O Ö P R S Ş T U Ü V W X Y Z



question 1: How can sort by brand ranking Turkish characters?

question 2 How brands can define the limit?

I've stated in the picture

I would appreciate if you could help.

thanks

Attached Thumbnails

  • brand_jpeg.jpg

CSCART


 
  • soldierly
  • Member
  • Members
  • Join Date: 10-Jun 09
  • 150 posts

Posted 30 April 2014 - 02:23 PM #2

Is there anyone who can help???

CSCART


 

Posted 30 April 2014 - 04:06 PM #3

Hi,

If you check the fn_get_filters_products_count function in the /app/functions/fn.catalog.php file, you can see, that there is a hook:
fn_set_hook('get_filters_products_count_before_select', $filters, $view_all, $params);
Connect to this hook, and re-sort the $view_all array with your own regional alphabetical order.

Regards,

Istvan

Is there anyone who can help???

English Alphabet to sort

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z (Ç Ğ İ Ö Ş Ü)


Turkish Alphabet to sort

A B C Ç D E F G Ğ H I İ J K L M N O Ö P R S Ş T U Ü V W X Y Z



question 1: How can sort by brand ranking Turkish characters?

question 2 How brands can define the limit?

I've stated in the picture

I would appreciate if you could help.

thanks



 
  • soldierly
  • Member
  • Members
  • Join Date: 10-Jun 09
  • 150 posts

Posted 02 May 2014 - 11:19 AM #4

/app/functions/fn.catalog.php file

I think the problem here

		if (!empty($params['view_all'])) {
			$values_fields[] = "UPPER(SUBSTRING(?:product_feature_variant_descriptions.variant, 1, 1)) AS `index`";
		}

filter ranking
A B C D Ç

should be
A B C Ç D

brands
A...Brand
B...Brand
C...Brand
Ç...Brand
D...Brand

CSCART