Summary It is not possible to edit the price of a custom field when it already has a value higher than zero.
Testing Instructions
- Create a custom field for a product.
- Enter an amount for Price and save.
- Try to edit this price to 0 or blank field.
VirtueMart and Joomla! versionsI use
VirtueMart 3.0.16 and
Joomla! 3.5.1
Use "0.0", this counts for all prices
The value 0.0 works. Thank you!
I did a patch. I am attaching it as an archive with two files.
This patch makes it to be possible to edit the Price to 0 leaving the field blank or entering 0.
administrator/components/com_virtuemart/tables/product_customfields.php
patch_fix_customfields_price.diff
The second one is a file generated by Git. If you would like, you can use it to patch the file in your SVN (http://stackoverflow.com/questions/708202/git-format-patch-to-be-svn-compatible).
I have never tried to patch SVN files with Git diff. However, if it works, people that use Git will be able to send you patches in this way.
I tell all the time, when people come up with the svn git stuff, that GIT patches WORK on SVN !
I take your patch, slightly changed.
I see. :)
Thank you!