VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: kiasati on May 09, 2019, 11:29:47 AM

Title: customizing the orderBy in category pages
Post by: kiasati on May 09, 2019, 11:29:47 AM
Hi,

I sell security cameras on my website.
I have a category page for Camera Packages. and in each package, there are more than one cameras.

I want to add an option to sortBy in category pages, so the user can sort the packages by the number of cameras in the package.

How can I do this?
any help is appreciated.
Title: Re: customizing the orderBy in category pages
Post by: GJC Web Design on May 09, 2019, 11:41:13 AM
there are many many sort by options in the admin  -- choose one and use that as camera numbers  - fill in the numbers and change the labels
Title: Re: customizing the orderBy in category pages
Post by: kiasati on May 09, 2019, 11:55:33 AM
Quote from: GJC Web Design on May 09, 2019, 11:41:13 AM
there are many many sort by options in the admin  -- choose one and use that as camera numbers  - fill in the numbers and change the labels

I should put the number of cameras in "Units in Box" in the product settings,
and in the vm configurations, I check the "Product Unit" in the "Available Sort-by fields" section?

I was considering this. I'll try it. thank you...
Title: Re: customizing the orderBy in category pages
Post by: GJC Web Design on May 09, 2019, 12:06:36 PM
something like this -- try and see