added get current category function so it can be fetched from current product too when required