Extend for Commerce products

Created on 7 March 2025, 29 days ago

Problem/Motivation

The module does not work with Commerce products.

Proposed resolution

Add support for Commerce products.

I've fixed locally added the following extra code:

      if ($product = $request->attributes->get('commerce_product')) {
        if (!$product->isPublished()) {
          $event->setThrowable(new NotFoundHttpException());
        }
      }

Would you like a simple patch with just this code, or do you prefere to implement using a sub-module or with a setting to enable this feature. Let me know so I can provide an appropriate patch.

Thank you.

Feature request
Status

Active

Version

2.0

Component

Code

Created by

🇮🇹Italy finex

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

Comments & Activities

Production build 0.71.5 2024