News:

Support the VirtueMart project and become a member

Main Menu

Is this product layout possible in category view ?

Started by wonderland, November 28, 2012, 23:59:34 PM

Previous topic - Next topic

wonderland

Hello!

It seems that VM has a lot of options.

But before diving into hours of work I wanted to find out if this is possible and how much work it would require to achieve.

I would like to have product layout in category view like this:


Each product would have 2 options, each option could have different SKU (I suppose SKU could be included in option name as well)
Each option has it's own price, quantity box and add to cart button.

For example, if I would like to order "product option1" x2, I would enter 2 in product options1 quantity box and press add to cart. In this cart total would be 2 USD.
If I would like to order "product option2" x3, I would enter 3 in product options2 quantity box and press add to cart. In this cart total would be 23 USD.

It would also be ok, if there was just 1 add to cart button

bytelord

Hello,

You create easy your template overrides in vm2, some tips:
Use firebug to examine you site code and css styling: https://forum.virtuemart.net/index.php?topic=102850.0
Creating Template overrides: https://forum.virtuemart.net/index.php?topic=98505.0
Template System: https://dev.virtuemart.net/projects/virtuemart/wiki/Hints_for_the_use_of_the_template_system

On your second question you could use child products or custom fields with cart variant, please take a look under the section product creation.

If you seach the forum or take a look under template & layouts section you will find tones of examples regarding template overrides.

Regards
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

wonderland

Thank you for responding!

Information you provided was very useful!

I found out more about child products and custom fields.
But I have some more questions :(

The thing that I don't understand is, how I would get 2 quantity boxes and 2 add to cart buttons that react only to their, child product/custom field (or atleast 2 quantity boxes with 1 add to cart)
Also child product appears as stand alone product, would it be possible to show it within parent product ?
Cart variant custom fields appears as select box, would it be possible to display each option on new line, with it's own quantity box ?

Which of the both versions you described earlier would be easier to implement ?


bytelord

Hi,

But you could have child variants for your child products (like large, medium, etc) ... or custom fields with child variants that add for example +5.00 ...

Please take a better look under product creation section

Regards
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!