Download the PHP package abderrahimghazali/sylius-upsell-plugin without Composer

On this page you can find all versions of the php package abderrahimghazali/sylius-upsell-plugin. 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 sylius-upsell-plugin

Sylius Logo

Sylius Upsell Plugin

Post-purchase upsell and cross-sell plugin for Sylius 2.x stores — Frequently Bought Together, checkout upsell modals, and one-click add-all-to-cart.

CI Latest Version PHP Version Sylius 2.x Symfony 7.x PHPStan Level 7

--- ## Screenshots ### Admin — Upsell Offers Grid ![Admin Offers Grid](docs/images/admin-offers-grid.png) ### Admin — Upsell Offer Form ![Admin Offer Form](docs/images/admin-offer-form.png) ### Shop — Checkout Upsell Modal ![Checkout Upsell Modal](docs/images/checkout-upsell-modal.png) ### Admin — Upsell Analytics Dashboard ![Admin Analytics](docs/images/admin-analytics.png) ## Features - **Frequently Bought Together section** on every product page with manual or algorithmic product suggestions - **One-click add-all-to-cart** for the entire FBT bundle - **Algorithmic co-purchase detection** from order history with configurable thresholds - **Checkout upsell modal** — intercepts "Place order" with a special offer before completing the order - **Trigger product targeting** — tie offers to specific products in the cart, or use catch-all - **Discount percentage** — upsell product added to cart at discounted price - **Customizable copy** — headline, body, CTA label, and decline label per offer - **Date scheduling** — start and end dates for time-limited offers - **Priority system** — control which offer wins when multiple match - **Admin CRUD** for upsell offers under Marketing, and global FBT settings under Configuration - **Drag-and-drop reordering** of manual FBT relations with optional discount badges - **Analytics dashboard** — impressions, acceptance rate, extra revenue, daily chart (Chart.js) - **Impression tracking** — automatic for both FBT and checkout upsell (shown / accepted / declined) ## Requirements - Sylius 2.1+ - Symfony 7.0+ - PHP 8.2+ ## Installation 1. Require the plugin: 2. Register the bundle in `config/bundles.php` (if not auto-discovered): 3. Import routes — create `config/routes/sylius_upsell.yaml`: 4. Generate and run the migration: 5. Register the Stimulus controllers in `assets/shop/controllers.json`: 6. Symlink the plugin assets and rebuild: Add to your project's `package.json` dependencies: Then install and rebuild: ## Entity: UpsellRelation | Field | Type | Description | |-------|------|-------------| | `sourceProduct` | ManyToOne (Product) | The product page where the FBT section appears | | `relatedProduct` | ManyToOne (Product) | The product suggested alongside the source | | `position` | int | Display order (lower = first) | | `discount` | int? | Optional discount percentage for the related product | | `createdAt` | datetime | Timestamp of creation | ## Entity: UpsellOffer | Field | Type | Description | |-------|------|-------------| | `name` | string | Admin label for the offer | | `enabled` | boolean | Active/inactive toggle | | `triggerProduct` | ManyToOne (Product) | The purchased product that triggers this offer | | `offerProduct` | ManyToOne (Product) | The product offered in the upsell modal | | `offerVariant` | ManyToOne (ProductVariant)? | Optional specific variant to offer | | `discountPercent` | int | Discount percentage shown in the modal | | `headline` | string | Modal heading (default: "Wait! A special offer just for you") | | `body` | text? | Optional body text | | `ctaLabel` | string | Accept button text (default: "Yes, add it!") | | `declineLabel` | string | Decline button text (default: "No thanks") | | `priority` | int | Higher = shown first when multiple offers match | | `startsAt` | datetime? | Optional start date | | `endsAt` | datetime? | Optional end date | ## Entity: UpsellConfiguration | Field | Type | Description | |-------|------|-------------| | `enabled` | boolean | Global FBT feature toggle | | `minCoPurchaseThreshold` | int | Minimum co-purchase count for algorithmic suggestions (default: 3) | | `maxProductsShown` | int | Maximum products in the FBT section (default: 4) | | `sectionTitle` | string | Heading text (default: "Frequently bought together") | | `showDiscountBadge` | boolean | Show/hide discount badges on FBT products | | `fallbackStrategy` | string | `algorithmic`, `manual_only`, or `disabled` | ## Architecture ## Testing ## License MIT. See [LICENSE](LICENSE).

All versions of sylius-upsell-plugin with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
doctrine/orm Version ^2.17 || ^3.0
sylius/sylius Version ^2.1
symfony/cache Version ^7.0
symfony/framework-bundle Version ^7.0
symfony/stimulus-bundle Version ^2.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 abderrahimghazali/sylius-upsell-plugin contains the following files

Loading the files please wait ...