VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: steinmuhly on January 11, 2012, 14:17:58 PM

Title: Custom Field Hack
Post by: steinmuhly on January 11, 2012, 14:17:58 PM
Hello,
i want to make a onchange alert in the Frontend of my Virtuemart 2 . So i search the file where the variable difined.
Here the Code
<span class="product-field-display"><?php echo $field->display ?></span>
in the file \components\com_virtuemart\views\productdetails\tmpl\default.php on line 192

Thanks for your Help

Beate

Title: Re: Custom Field Hack
Post by: steinmuhly on February 12, 2012, 11:07:25 AM
Finally, the hack should look like on my current website.
http://www.steinmuhlys-shop.de/index.php?/Dreiecksgeschirre/Dreiecksgeschirr-aus-festem-20mm-Gurt.html (http://www.steinmuhlys-shop.de/index.php?/Dreiecksgeschirre/Dreiecksgeschirr-aus-festem-20mm-Gurt.html)

When changing the "Gurtfarbe" appears an image of each color.
Actually, I only need to place my onchange, but unfortunately I have not found the right file.