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

Sort By as Radio buttons

Started by liquid.ideas, July 05, 2013, 06:27:49 AM

Previous topic - Next topic

liquid.ideas

Hi Guys,

I have seen this posted around and about for other things, so sorry If I am doubling up on the forum but I cant find my answer! In the sort by in the category view I am wanting to have the choice not as a drop down but as a radio list and for the life of me I cant figure where to change this! in com_virtuemart/categort/default.php I have found:
<?php echo $this->orderByList['orderby']; ?>

But I cant figure how to change that to radio (plus I don't think you can apply it to the whole lot) cant find the like JRoute line (hope that makes sense)

In views/category/templ/default.xml I found a whole list of the items that go into that sort div but cant work out how to change that either, think it may have something to do with the 'type' but dunno!! Any help would be appreciated!!

liquid.ideas

Ok I found this at the top of Category default.php

$js = "
jQuery(document).ready(function () {
   jQuery('.orderlistcontainer').hover(
      function() { jQuery(this).find('.orderlist').stop().show()},
      function() { jQuery(this).find('.orderlist').stop().hide()}
   )
});
";

Can anyone help me to change this to radio buttons, I dont know the syntax required Thanks :)
Can anyone tell me how to change it to radio?

liquid.ideas

Giving this a bump in case somebody "in the know" might have missed it