News:

Support the VirtueMart project and become a member

Main Menu

Add price in child products custom field

Started by dimitrakopouloslakis, December 18, 2013, 16:26:45 PM

Previous topic - Next topic

dimitrakopouloslakis

Hello i am using Joomla 2.5.16 and Virtuemart 2.0.20b.
I create some child products, all working absolute.
I need your help because i want to add the price near the name of child product in custom field.
For example i have 2 childs products with name:
Product 1
Product 2

I want to show in dropdown custom field this:
Product 1 14,90€
Product 2 35,90€

I try to add some code to plugins/vmcustom/stockable/stockable.php in line 302 but i did't make it!

$group->display = $html.'
            <input type="hidden" value="'.$child_id.'" name="customPlugin['.$field->virtuemart_customfield_id.']['.$this->_name.'][child_id]">';

What else i have to do?

Thanks a lot and sorry for my english.

[attachment cleanup by admin]