Download the PHP package etechflow/module-supplier-autoflow without Composer

On this page you can find all versions of the php package etechflow/module-supplier-autoflow. 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-supplier-autoflow

ETechFlow Supplier Autoflow

Auto-toggle supplier active flags based on stock, then reprice products from the first-active supplier's cost × markup. For Magento 2 stores with multi-supplier products and dynamic supplier-driven pricing.

What it does

You sell the same product through multiple suppliers in priority order:

This module makes that workflow automatic:

  1. Auto-toggle: when Onlyda stock hits 0, flip S1's active flag off. The product now fulfills from S2 = Auto Remote.
  2. Reprice: with S2 now first-active, recompute the customer-facing price as S2.cost × (1 + S2.markup / 100). Apply your configured rounding + anchor strategy. Write to price and/or special_price per your output target.
  3. Audit: every flip + reprice is logged to etechflow_supplier_autoflow_log so finance can trace why a price changed.
  4. NDE integration: if you also run etechflow/module-next-day-eligibility, the module synchronously triggers NDE's evaluator after every change. next_day_eligible stays in sync with the active supplier — no event-bus relay required.

Everything is merchant-configurable

No supplier names, no attribute codes, no markup percentages are hardcoded. All configuration lives in Stores → Configuration → eTechFlow → Supplier Autoflow.

Supplier slot definition

One slot per line, in priority order (top = highest priority):

Format: label|active_attr|name_attr|cost_attr|markup_attr[|stock_source_or_qty_attr].

Stock-dependent suppliers

Name-based, not slot-position-based. Lists which supplier names get the auto-toggle behaviour:

Other slots (drop-ship suppliers) stay manual-only. The merchant decides when to disable them.

Stock trigger source

Pick from: magento_qty, msi_default, msi_per_slot, per_slot_qty_attr, disabled. MSI modes soft-detected — module installs and works on non-MSI builds.

Price output target

Rounding

2dp, 5p, 10p, 99p_ending, or none.

No-active-supplier fallback

When every slot is inactive (all suppliers out): set product to out-of-stock, disable it entirely, or leave unchanged with a warning.

How it stays accurate

  1. Legacy stock event observercataloginventory_stock_item_save_after.
  2. MSI source-items pluginMagento\InventoryApi\Api\SourceItemsSaveInterface, soft-detected so non-MSI installs skip it cleanly.
  3. Product-save observer — re-runs the pricing engine when a merchant manually flips a slot's active flag or changes cost/markup.
  4. Hourly cron — belt-and-braces safety net for any propagation hole.
  5. CLIbin/magento etechflow:autoflow:resync [--sku=...] for manual full-catalogue evaluation.
  6. FPC tag invalidationcat_p_<id> clean after every price write, so customers see fresh HTML without a manual cache:flush.

Reverse toggle

When stock comes back (Onlyda restocked), the previously auto-toggled slot flips back to active and the product reprices from THAT slot's current cost — handles supplier cost changes on restock.

Configurable on/off — some merchants want one-way toggles only.

Audit log

Every event writes to etechflow_supplier_autoflow_log with:

Read via the admin grid (v0.1.1+ — coming next) or directly via SQL.

Companion modules

Versioning

v0.1.0 — initial release. Engine complete; admin audit-log grid lands in v0.1.1.


All versions of module-supplier-autoflow with dependencies

PHP Build Version
Package Version
Requires php Version ~8.1.0||~8.2.0||~8.3.0||~8.4.0
magento/framework Version ^103.0||^104.0
magento/module-backend Version ^102.0||^103.0
magento/module-catalog Version ^104.0||^105.0
magento/module-catalog-inventory Version ^100.4||^101.0
magento/module-store Version ^101.1||^102.0
magento/module-config Version ^101.2||^102.0
magento/module-eav Version ^102.1||^103.0
magento/module-ui Version ^101.2||^102.0
magento/module-cron Version ^100.4||^101.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 etechflow/module-supplier-autoflow contains the following files

Loading the files please wait ...