Download the PHP package fixstacks/module-zero-bought-together without Composer

On this page you can find all versions of the php package fixstacks/module-zero-bought-together. 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 module-zero-bought-together

Zero_BoughtTogether

"Often bought together" on the product page: this product and the ones orders pair it with, a checkbox on each, the total and one Add to Cart. Configured in Stores > Configuration > Zero > Bought Together.

Install

Requires Magento Open Source 2.4.7–2.4.9 and PHP 8.2–8.4 with the GD extension built with WebP (php -r 'var_dump(function_exists("imagewebp"));' says true; Magento's own PHP requirements cover the rest). Without WebP in GD, Zero skips its WebP image copies and serves the originals.

Composer installs zerofront/module-zero-core with it.

Part of zerofront/zero, which installs the Zero theme and every Zero module at once.

Where the pairs come from

zero_bought_together holds, per product, the products that orders held with it and in how many orders. It is rebuilt from the top-level lines of the orders of the last N days (canceled ones aside) by the nightly cron zero_bought_together_build (03:15) or by hand:

bin/magento zero:bought-together:build [--days=365] [--min-orders=2]

A pair counts from "Minimum Orders for a Pair" orders on; the 12 most frequent per product are kept. A product page carries its own tag (zero_bought_together_<id>) and its picks' product tags; a rebuild cleans the pages of the products whose pairs changed, not every product page at once.

Storefront

Under the gallery and the info column: this product first, then up to "Products Shown" picks, the paired ones most frequent first, filled up with the product's related products when "Fill With Related Products" is on; only enabled, visible, in-stock products. A pick that goes into the cart as is (a simple product without required options) has a checkbox, checked; one with options to choose (a configurable, a bundle) links to its page instead, and so does a Price on Request product (Zero_QuoteRequest's zero_quote_only, which the cart refuses). This product itself is included when it is such a product too.

The summary (the total of the checked items at their catalog prices, the button) is an HTMX fragment: a change on the form refetches it with the form's values (boughttogether/total). The button posts the form to boughttogether/cart/add, which adds one of each checked product, then goes back to the product page (or to the cart, per Sales > Checkout > "After Adding a Product Redirect to Shopping Cart"). No JavaScript.

Tests

What changed in each release: CHANGELOG.md.

License

OSL-3.0 or AFL-3.0, your choice: see NOTICE.md.


Zero is made by Fixstacks. Documentation: https://zerofront.dev/docs. Demo store: https://demo.zerofront.dev.


All versions of module-zero-bought-together with dependencies

PHP Build Version
Package Version
Requires php Version ~8.2.0||~8.3.0||~8.4.0
magento/framework Version 103.0.*
magento/module-backend Version *
magento/module-catalog Version *
magento/module-checkout Version *
magento/module-config Version *
magento/module-cron Version *
magento/module-quote Version *
magento/module-sales Version *
magento/module-store Version *
zerofront/module-zero-core Version ^1.3.11
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 fixstacks/module-zero-bought-together contains the following files

Loading the files please wait ...