This is a decoupled drupal 8 back end with an angular front end connected over jsonapi and other custom restful inputs.
We have a coupon content type in out Drupal csm. It is exactly what it sounds like, a coupon.
We have a content type "products" and you can assign a coupon to that product when creating or editing said product.
We have a taxonomy term list of product categories and sub categories.
Category A
Sub Category 1
Sub Category 2
Category B
Sub Category 3
Sub Category 4
Sub Category 5
An admin can go into a taxonomy term, and add a coupon to an individual taxonomy term, or to a product content type.
This is where it gets crazy.
We have a listing of coupons, on that list we want to give the admin the ability to display a "featured product" and ideally, in the CMS they have a field where the only options are either a taxonomy term or a product content type that said coupon has been applied to.
Product A (Product) # (content-type)
Product F (Product) # (content-type)
Category B (Category) # (product taxonomy parent (weight 0) term)
subCategory 1 (Sub Category) # (product taxonomy sub parent (weight 1) term)
only products ( a content type ) or taxonomy terms with this coupon are shown.
We will then need to build a link pointing to the correct front end page. The category list, the sub category list, or the actual product.
Thoughts on how to achieve this with no custom code? If the only way to do this is with custom code, what's the best way to approach the task?
Thanks a million and 1.
[EDIT to change output options.]