I am new to Opencart and I have inherrited a client site from a previous designer. I dont know PHP but I am getting the following error on a product page with size or colour options (in Opencart):
Notice: Undefined variable: result in /home/mobility/public_html/vqmod/vqcache/vq2-catalog_controller_product_product.php on line 274Notice: Undefined variable: result in /home/mobility/public_html/vqmod/vqcache/vq2-catalog_controller_product_product.php on line 274.
The code referenced in the error above looks like this:
                        $option_value_data[] = array(
                            'product_option_value_id' => $option_value['product_option_value_id'],
                            'option_value_id'         => $option_value['option_value_id'],
                            'name'                    => $option_value['name'],
                            'image'                   => $this->model_tool_image->resize($option_value['image'], 50, 50),
                            'price'                   => $price,
                            'quantity'                => $result['quantity'],
                            'price_prefix'            => $option_value['price_prefix']
                        );
                    }
                }
 
    