Skip to content

Conversation

@indykoning
Copy link
Member

Before:
image
after:
image

@indykoning indykoning requested a review from royduin as a code owner January 12, 2026 12:44
$productModel = config('rapidez.models.product');
$productModel::shouldBeStrict(! App::isProduction()); // Throw errors if relations are used but not eager loaded if not in production.

$frontAttributes = EavAttribute::getCachedCatalog()->where('is_visible_on_front', 1)->pluck('attribute_id');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is_visible_on_front / "Visible on Catalog Pages on Storefront" is used to show/hide attributes from the specs table right? Is that the right thing to use here?

public function show(int $productId)
{
$productModel = config('rapidez.models.product');
$productModel::shouldBeStrict(! App::isProduction()); // Throw errors if relations are used but not eager loaded if not in production.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this working? I'd to change the throwMissingAttributeExceptionIfApplicable() as we're overwriting it to make this work:

protected function throwMissingAttributeExceptionIfApplicable($key)
{
    if ($this->hasCustomAttribute($key)) {
        return $this->getCustomAttribute($key);
    }

    return parent::throwMissingAttributeExceptionIfApplicable($key);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants