Download the PHP package schrammel-codes/magento2-salesrule-commerce without Composer

On this page you can find all versions of the php package schrammel-codes/magento2-salesrule-commerce. 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 magento2-salesrule-commerce

SchrammelCodes_SalesRule

THIS PACKAGE IS NO LONGER MAINTAINED Please use schrammel-codes/magento2-salesrule with included Adobe Commerce support instead.

Adobe Commerce add-on for the `SchrammelCodes_SalesRule` module, ensuring proper handling of Content Staging & Preview when duplicating Cart Price Rules.

Supported Magento Versions Latest Stable Version Composer Downloads Maintained - No License - MIT

What This Module Does

This is a companion module for SchrammelCodes_SalesRule specifically designed for Adobe Commerce Edition.
It ensures that when you duplicate Cart Price Rules, the Commerce-specific Staging & Preview features work correctly.

Why You Need This Module

Adobe Commerce Edition includes advanced Staging & Preview features that allow scheduling content and promotional changes for future dates. These features use special database fields that need proper handling during duplication.

Without this module:

With this module:

How It Works

Automatic Staging Field Management

When you duplicate a Cart Price Rule using the SchrammelCodes_SalesRule module, this Commerce extension automatically:

  1. Resets the Version Range

    • Sets created_in to 1 (main permanent version)
    • Sets updated_in to 2147483647 (maximum version, meaning "forever")
    • This makes the duplicated rule a permanent rule, not tied to any staging campaign
  2. Clears the Row ID

    • Removes the staging row ID so Magento generates a new one
    • Ensures the duplicated rule is truly independent in the database
  3. Preserves Store Labels
    • Re-saves store-specific labels with the correct new row ID
    • Maintains your multi-store rule naming without manual re-entry

What This Means for You

Scenario: You have a "Black Friday 2025" promotion scheduled as a staging campaign. You want to duplicate it as the basis for "Cyber Monday 2025".

Result:

Installation

Prerequisites

This module requires:

  1. Adobe Commerce Edition (not for Open Source)
  2. SchrammelCodes_SalesRule module installed and enabled
  3. Magento_SalesRuleStaging (included with Magento Commerce)

Installation Steps

Usage

This module works automatically in the background. Once installed, simply use the duplicate features from the SchrammelCodes_SalesRule module as normal:

The Commerce extension ensures all staging fields are handled correctly without any additional steps from you.

Technical Details

Architecture

Staging Field Values

The module sets these specific values for Commerce staging:

Field Value Meaning
created_in 1 Main timeline version
updated_in 2147483647 Maximum version (permanent)
row_id null → auto-generated New unique row identifier

These values ensure the duplicated rule:

Error Handling

If staging modifications fail (database errors, permission issues, etc.):

Compatibility

Not compatible with Magento Open Source (which doesn't include Staging features).

Benefits for Commerce Users

Workflow Efficiency

Duplicate rules from past staging campaigns and schedule them as new future campaigns without manual field adjustments.

Data Integrity

Automatic handling of complex staging database relationships prevents orphaned records and database inconsistencies.

Peace of Mind

Comprehensive unit testing and error handling ensure reliable operation even in edge cases.

Multi-Store Support

Store-specific labels are automatically preserved and correctly linked to the new rule version.


All versions of magento2-salesrule-commerce with dependencies

PHP Build Version
Package Version
Requires php Version ~8.1.0||~8.2.0||~8.3.0
schrammel-codes/magento2-salesrule Version ^1.0.0
magento/module-sales-rule-staging Version *
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 schrammel-codes/magento2-salesrule-commerce contains the following files

Loading the files please wait ...