News:

Looking for documentation? Take a look on our wiki

Main Menu

Custom View In Virtuemart.

Started by pinkynrg, March 11, 2013, 15:55:17 PM

Previous topic - Next topic

pinkynrg

Hi everybody,

First of all Thank you all for being part of this wonderful community, you already got my ass saved a couple times, and I've been using virtuemart for only a week so thanks.

I'm new to this forum as I'm new to Virtumart 2.0 and Joomla, so excuse me if I'm asking for something dumb or already discussed:
in that case I'm sorry but I looked around and haven't found anything. Lastly, I hope my English is good enough to explain the problem I've got.
I'm also kind of new to the Model View Controller way of thinking so don't be too harsh on me  :-\

I'm trying to create a Virtuemart custom view from scratch, using custom fields as filter fields. I got this list of shoes, which are divided into 3 custom fields: Men, Women, Unisex.
I would like to create a view that by selecting the gender it lists all the shoes with the corresponding gender.

What i understood so far, is that Joomla understands throughout the URL (mysite.com/index.php?option=com_virtuemart&view=category) that a Virtuemart View (in the example URL would be category) is requested.

So far what I've done is the following:

1) Creation of a gender folder in the view folder of virtuemart.
2) Created a view.html.php that contains a certain class VirtuemartViewGender which is extended from VmView. This class is still empty though.
3) Created a tmpl folder inside the gender folder previously created.
4) Created a default.php inside the last folder created. Also this file is empty.

I have a background as a programmer so I shouldn't be to hard to get ti done, I just need someone to help me to get on the right track.

Thank ya guys hope someone can help me!  ;D