Saturday, December 21, 2013

How to change default products listing view (up to VirtueMart 2.0.18) in VirtueMart

In this tutorial you will learn how to change default products listing view in VirtueMart 2.x templates


Note, this tutorial is applicable to the VirtueMart 2.0.2-VirtueMart 2.0.18 templates only.


In this example will change the products listing view from 1 – 2 – 3, to 3 -2 – 1, in other words, will make third listing default one.


We need to edit the components\com_virtuemart\views\category\tmpl\default.php file


vm2_product_view_11


Find the following piece of script: id=”tabs”Swap “first” and “three” classes


vm2_product_view_2


vm2_product_view_2_a1


After that is done, we should replace content of “product_list” div with content of “product_list3″ div


vm2_product_view_3



How to change default products listing view (up to VirtueMart 2.0.18) in VirtueMart

No comments:

Post a Comment