hello, after checking your site, this is how to replicate and fix the problem - note that this is just a quick fix and VM should make sure about other product properties which are used in calculation that they are indeed numbers...
1. choose a product with custom attributes
2. set quantity to zero (in some countries, it's required that the default quantity is ZERO) !
3. change the custom attribute while the forms' quanty is ZERO
you'll see error 500 (vm3.0.4) within the google chrome console from within the ajax context
to "quick fix" this issue without breaking anything else, you can do this:
locate line 291 (on 3.0.4) in your calculationh.php:
- Code: Select all
public function getProductPrices(&$product, $variant=0.0, $amount=0) {
$costPrice = 0;
// stAn - this is the new line which fixes the problem:
$product->quantity = (double)$product->quantity;
best regards, stan