Added missing vars in ajax add_variation() method, closes #6234

@mikejolley