In order to pay for event tickets, which have variable prices which depend on event configuration, with Virtuemart we need a mechanism to create a product with a price we can vary programatically or via a custom product attribute. This can be done with a very simple code modificatio and it will enable you to add variable priced product to VM very easily.

Code Modification

Edit the file administrator/components/com_virtuemart/classes/ps_product.php and find the method get_adjusted_attribute_price at line c.1841 in Virtuemart 1.15 scroll down a little further until you find this line of code:

if( isset( $product_attributes[$this_key]['values'][$this_value] )) {

Then insert the following lines just before this:

// gwe mod
if ($this_key=="ManualPrice"){
   $adjustment = floatval($this_value);
}
// end gwe mod

Create a Product With Adjustable Price

In your product add an attribute called "ManualPrice".

Now when your purchases enters a value in the ManualPrice field and adds the product to the cart it picks up the variable price.