Required sorting result

10.06.2014 16:16
#1
jp99
Joomshopping forum user no avatar
Name: Jonpol
14.05.2012
Posts: 86
Quote
Required sorting result

Hallo webdesigner,

THE FIRST QUESTION:
$config->sorting_products_field_select = array(1 => 'name', 2=>'prod.product_price', 3=>'prod.product_date_added', 5=>'prod.average_rating', 6=>'prod.hits', 4=>'pr_cat.product_ordering');
$config->sorting_products_name_select = array(1=>_JSHOP_SORT_ALPH, 2=>_JSHOP_SORT_PRICE, 3=>_JSHOP_SORT_DATE, 5=>_JSHOP_SORT_RATING, 6=>_JSHOP_SORT_POPULAR, 4=>_JSHOP_SORT_MANUAL);
$config->sorting_products_field_s_select = array(1 => 'name', 2=>'prod.product_price', 3=>'prod.product_date_added', 5=>'prod.average_rating', 6=>'prod.hits');
$config->sorting_products_name_s_select = array(1=>_JSHOP_SORT_ALPH, 2=>_JSHOP_SORT_PRICE, 3=>_JSHOP_SORT_DATE, 5=>_JSHOP_SORT_RATING, 6=>_JSHOP_SORT_POPULAR);

After changing 2=>'...'

$config->sorting_products_field_select = array(1 => 'name', 2=>'prod.product_manufacturer_id', 3=>'prod.product_price', 5=>'prod.average_rating', 6=>'prod.hits', 4=>'pr_cat.product_ordering');
$config->sorting_products_name_select = array(1=>_JSHOP_SORT_ALPH, 2=>_JSHOP_SORT_MANUFACTURER, 3=>_JSHOP_SORT_PRICE, 5=>_JSHOP_SORT_RATING, 6=>_JSHOP_SORT_POPULAR, 4=>_JSHOP_SORT_MANUAL);
$config->sorting_products_field_s_select = array(1 => 'name', 2=>'prod.product_manufacturer_id', 3=>'prod.product_price', 5=>'prod.average_rating', 6=>'prod.hits');
$config->sorting_products_name_s_select = array(1=>_JSHOP_SORT_ALPH, 2=>_JSHOP_SORT_MANUFACTURER, 3=>_JSHOP_SORT_PRICE, 5=>_JSHOP_SORT_RATING, 6=>_JSHOP_SORT_POPULAR);

Sorting result
A - manufactrer x
C - manufactrer x
B - manufactrer x
B - manufactrer y
A - manufactrer y

Required sorting result
A - manufactrer x
B - manufactrer x
C - manufactrer x
A - manufactrer y
B - manufactrer y

Is this feasible?

THE SECOND QUESTION:
How can i remove 5=>'...' and 6=>'...' from the filter?

Thank you in advance for your answer.
Jonpol

 
10.06.2014 19:51
#2
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 19164
Quote
Aw: Required sorting result

1. Do not understand the question?

2. delete 5,6

 
10.06.2014 21:21
#3
jp99
Joomshopping forum user no avatar
Name: Jonpol
14.05.2012
Posts: 86
Quote
Aw: Required sorting result

After changing 2=>'...'
2=>'prod.product_manufacturer_id',
2=>_JSHOP_SORT_MANUFACTURER,

Filter enabled - the search results aren't displayed in alphabetical order:
Agenda - Company X
SDHC memory card - Company X
Camera - Company X
IPhone - Company Y
CD-Player - Company Y

What i need is the list arranged in alphabetical order:
Agenda - Company X
Camera - Company X
SDHC memory card - Company X
CD-Player - Company Y
IPhone - Company Y

Jonpol

 
11.06.2014 07:55
#4
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 19164
Quote
Aw: Required sorting result

You sort by manufacturer.
sort by name


Letzte Änderung: 11.06.2014 07:55
 
11.06.2014 12:15
#5
jp99
Joomshopping forum user no avatar
Name: Jonpol
14.05.2012
Posts: 86
Quote
Aw: Required sorting result

That is correct.

I have several manufacturer for the same range of products.
I would like to group by manufacturer and the list should be sorted by name of their products

Manufacturer 1
Product A, B, C,...

Manufacturer 2
Product A, B, C,...

Manufacturer 3
Product A, B, C,...

etc.

Jonpol


Letzte Änderung: 11.06.2014 12:16
 
11.06.2014 13:52
#6
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 19164
Quote
Aw: Required sorting result

Not possible

See
http://www.webdesigner-profi.de/joomla-webdesign/shop/templates/group-products.html

 


Copyrights MAXXmarketing GmbH. All Rights Reserved
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.