Implement a way to alter the query

Created on 3 November 2022, over 1 year ago
Updated 11 February 2023, over 1 year ago

Problem/Motivation

I need to filter the product listing by the currently logged user but some other users might need to add other conditions.

Proposed resolution

I propose to add a tag called best_selling_products to the $query in the service so that other modules can use hooks_TAG_query_alter() to modify the query as needed. I provide a simple patch to add the tag.

✨ Feature request
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡¦πŸ‡·Argentina cesarmiquel

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024