News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Products order by manufacturer id

Started by BKintera, July 27, 2016, 13:09:29 PM

Previous topic - Next topic

BKintera

Hi,

I need to order products by manufacturer id but not in ascending or descending way, I need "custom way".

For example, if manufacturers are:
- Nike (manufacturer id = 1)
- bliddyspam (manufacturer id = 2)
- Puma (manufacturer id = 3)
- Reebok (manufacturer id = 4)

I want to show products in this order:
1. Puma (manufacturer id = 3)
2. bliddyspam (manufacturer id = 2)
3. Reebok (manufacturer id = 4)
4. Nke (manufacturer id = 1)

I know that this can't be done in backend because there is only option "Default product sort order: Manufacturer Name".

I only think of one solution:
Order products by Manufacturer name, than add "a", "b", "c", "d" to the manufacturers names like this:
aPuma
bbliddyspam
cReebok
dNike

and then in css hide first letter of Manufacturer.

But I think that this isn't the best way to do it.


VM 3.0.16
Joomla 3.6.0