We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Cool module! I implemented it into a project I'm working on, it works great. A few suggestions, though:
Please let me know what your thoughts are, I'm willing to contribute!
I had to create my own class to get it working:
<?php namespace Marissen\QuotationSheet\Helper; use Magento\Catalog\Model\Product; use Staempfli\ImageResizer\Model\Resizer; class ImageResizer extends Resizer { public function getPath(Product $product): string { $imageObject = $product->getMediaGalleryImages()->getFirstItem(); if (!$imageObject->getData('url')) { return ''; } $this->resizeAndGetUrl($imageObject->getData('url'), 200, 200); return $this->getAbsolutePathResized() ?: ''; } }
The text was updated successfully, but these errors were encountered:
Hi @tdgroot
Thanks for your suggestions If you think that these methods can be handy for other people, we'd be glad to merge your PR.
Sorry, something went wrong.
jalogut
Successfully merging a pull request may close this issue.
Cool module! I implemented it into a project I'm working on, it works great. A few suggestions, though:
Please let me know what your thoughts are, I'm willing to contribute!
I had to create my own class to get it working:
The text was updated successfully, but these errors were encountered: