rapidez / amasty-shop-by-brand
Rapidez Amasty Shop By Brand
Installs: 2 994
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 8
Open Issues: 0
Requires
- php: ^8.0|^8.1|^8.2
- illuminate/database: ^9.0|^10.0|^11.0
- illuminate/support: ^9.0|^10.0|^11.0
- illuminate/view: ^9.0|^10.0|^11.0
- rapidez/core: ~0.77|^1.0|^2.0
README
Requirements
You need to have the Amasty Shop By Brand module installed and configured within your Magento 2 installation. This module comes with the Improved Layered Navigation module.
Installation
composer require rapidez/amasty-shop-by-brand
After that brands are available at /some_brand
where all products from that brand will be displayed with the configured meta data and the description. If you want to display the brand image somewhere you can use $product->amasty_brand_image
or item.amasty_brand_image
within Reactive Search. For example on a product page:
@if($product->amasty_brand_image)
<a href="{{ $product->amasty_brand_url }}">
<img src="{{ config('rapidez.media_url').'/amasty/shopby/option_images/'.$product->amasty_brand_image }}" alt="{{ $product->manufacturer }}" class="h-10">
</a>
@endif
Brand list widget
If you want to use the the Amasty\ShopbyBrand\Block\Widget\BrandList
widget you can register it in the config/rapidez.php
file. Useful for a brand cms page with all brands listed.
'widgets' => [ ... 'Amasty\ShopbyBrand\Block\Widget\BrandList' => Rapidez\AmastyShopByBrand\Widgets\BrandList::class, ],
Views
If you need to change the views you can publish them with:
php artisan vendor:publish --provider="Rapidez\AmastyShopByBrand\AmastyShopByBrandServiceProvider" --tag=views
Note
Currently only brand pages, the brand list widget and images are implemented.
License
GNU General Public License v3. Please see License File for more information.