-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TASK] PM features and changes #244
Conversation
… to include an image for attibutes
public function getListingAttributes(): array | ||
{ | ||
return $this->collection($this->getAttributes()) | ||
->filter(fn (Attribute $attribute) => $attribute->isShowInAttributeListing()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't it be better to just have showInAttributeListing()
?
->filter(fn (Attribute $attribute) => $attribute->isShowInAttributeListing()) | |
->filter(fn (Attribute $attribute) => $attribute->showInAttributeListing()) |
Classes/Domain/Model/Product.php
Outdated
* Returns Usp as array split by lines. | ||
* @return array | ||
*/ | ||
public function getUspList(): array |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public function getUspList(): array | |
public function getUspArray(): array |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple of small suggestions
…ter out option attributes with empty string
closes #240, #239, #238