Download the PHP package rapidez/amasty-promo-banners without Composer

On this page you can find all versions of the php package rapidez/amasty-promo-banners. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package amasty-promo-banners

Rapidez Amasty Promo Banners

Requirements

You need to have the Amasty Promo Banners module installed and configured within your Magento 2 installation.

Installation

If you haven't published the Rapidez views yet, you can publish them with:

Usage

Categories

Add @banners('category_page', $category->entity_id) where you'd like to display your banners, add the specified location to make sure the banner shows up on the location you've specified in magento backend. The possible locations are listed at locations. For categories, you can just pass the category id in the blade directive to make sure it only displays for the selected categories in the Magento backend.

Products

With product rules

If you want the banners to be rendered conditional (based on magento rules), you can pass the product as object to the banners directive: @banners('prod_page', $product). This will display the banners for all products that passes the conditions.

Without product rules

If you just want to show the banner on some product pages, you can pass the SKU in the banners directive: @banners('prod_page', $product->sku) This will only display the banner for the specified SKUs in the Magento backend.

Among category products

Just add the view within the renderItem slot in listing/partials/item.blade.php

You should also use getListingSize(...) as the page size in your products.blade.php, for example like so:

Views

If you need to change the views you can publish them with:

Locations

These are the locations that are configurable in the magento backend for each banner. Backend label code key
Above Cart above_cart
Cart Page (Below Total) checkout_below_total
Sidebar Additional sidebar_right
Sidebar Main sidebar_left
Product Page (Top) prod_page
Product Page (Bottom) prod_page_bottom
Product Page (Below Cart Button) prod_page_below_cart
Category Page (Top) category_page
Category Page (Bottom) category_page_bottom
Category Page (Below Add to Cart Button) category_page_below_add_to_cart
Catelog Search (Top) catalog_search_top
On Top of Page top_page
Home Page under Menu top_index
Among Category Products among_products

Note

Not all features are implemented yet! For example: cart rules, show on search, etc.


All versions of amasty-promo-banners with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0|^8.1|^8.2
illuminate/database Version ^9.0|^10.0|^11.0
illuminate/support Version ^9.0|^10.0|^11.0
illuminate/view Version ^9.0|^10.0|^11.0
rapidez/core Version ~0.91|^1.0|^2.0|^3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package rapidez/amasty-promo-banners contains the following files

Loading the files please wait ....