VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: backwoodweb on July 30, 2013, 21:41:42 PM

Title: Child Select Box
Post by: backwoodweb on July 30, 2013, 21:41:42 PM
Hey all,

I need to make some major changes to the child product select box to fit a clients particular needs.  Where would I go about locating the code that generates it?

I have found that it is displayed with <?php echo $field->display ?> in the default_addtocart.php page.

Where would I go about finding the select box itself.  It seems to be hiding from me.

Thanks a bunch,

Jimi
Title: Re: Child Select Box
Post by: Maxim Pishnyak on July 30, 2013, 21:59:22 PM
Css cascade styles could work with 'hidden' web page elements.

Use tool Firebug (sticked thread in this forum section) for the task of customizing web page layout.
Title: Re: Child Select Box
Post by: backwoodweb on July 30, 2013, 22:06:03 PM
Quote from: Maxim Pishnyak on July 30, 2013, 21:59:22 PM
Css cascade styles could work with 'hidden' web page elements.

Use tool Firebug (sticked thread in this forum section) for the task of customizing web page layout.


Thanks for the reply.  Unfortunately CSS is not going to be enough.  I need to find the PHP code that generates the select box.

I have to replace the select box with a series of images in <li>'s.  The images references are stored in the database with ID's matching the VM product ID.
Title: Re: Child Select Box
Post by: Maxim Pishnyak on July 31, 2013, 10:26:54 AM
Did you try Catproduct custom extension for VM?
Title: Re: Child Select Box
Post by: backwoodweb on July 31, 2013, 16:47:53 PM
Quote from: Maxim Pishnyak on July 31, 2013, 10:26:54 AM
Did you tried Catproduct custom extension for VM?

Thanks for the tip.  This plugin is perfect, I have modified it as needed and the chap who made it Sandi is a great help!  Highly recommend to anybody!

Thank you for your help.

Jimi