News:

Support the VirtueMart project and become a member

Main Menu

Showing Child Products as a table

Started by newsomjk, June 24, 2013, 21:30:53 PM

Previous topic - Next topic

newsomjk

I'm working on migrating from VM1.2 to 2.0. On the old version, a coworker had created custom code to display our products a certain way.

Basically we have what we call "papers." Each paper has the full report, a summary, charts, and a webinar. The main product had no price as you couldn't technically buy that, but each child product had a price. We displayed the child products in a list on the details page of the main product. We did this by editing the addtocart_form.tpl.php files and calling "echo $addtocart;" on the main product details page.

I can't figure out what I need to do to achieve the same effect on the new virtuemart.

I imported all the products, they were successful, they all still have their child products. However, no add to cart button shows in the product details page. I can't figure out what call I need to make to show the addtocart form. If I knew those I would be able to edit the template of the form and create this same list again.

Any help or direction would be greatly appreciated!