Download the PHP package fixstacks/module-zero-unit-price without Composer

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

Zero_UnitPrice

The price per kilogram, litre, metre, square or cubic metre, or piece under every price of a product sold by quantity: "€ 7,00 (€ 9,33 / 1 l)". EU price indication rules ask for it (Directive 98/6/EC; Germany's PAngV, Austria's PrAG) wherever such goods are offered with a price.

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.

Setting it up

  1. Stores > Configuration > Zero > Unit Price > Enabled: Yes (off by default, per store view).
  2. On a product (Catalog > Products > General): Content, how much the pack holds, and Unit, what it's measured in: 750 and Millilitres for a 750 ml bottle; 3 and Pieces for a three-pack.
Unit Shown per
mg, g, kg 1 kg; 100 g for packs up to 250 g (setting)
ml, cl, l 1 l; 100 ml for packs up to 250 ml (setting)
mm, cm, m 1 m
m² 1 m²
m³ 1 m³
Pieces piece

"Hide When It Equals the Price" (on by default) shows nothing for a 1 kg pack, whose price per kilogram is its price.

Where it shows

Under the final price box, so wherever a price is: the product page, product cards in categories, search and widgets, related products. It is worked out from the price the box shows (with or without tax as the store displays prices; a configurable product's lowest), and formatted in the store's currency and locale ("€ 9,33" in de_AT, "9,33 €" in de_DE). Added after the price box's HTML, so the price box's own block cache is untouched.

Not yet: the cart and checkout lines.

License

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


Vilmate

Zero is made by Fixstacks in partnership with Vilmate, a software development company. Documentation: https://zerofront.dev/docs. Demo store: https://demo.zerofront.dev.


All versions of module-zero-unit-price 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-config Version *
magento/module-eav Version *
magento/module-store Version *
fixstacks/module-zero-core Version ^1.3
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-unit-price contains the following files

Loading the files please wait ...