Download the PHP package ytec/magento2-ytec-coupon-sales without Composer

On this page you can find all versions of the php package ytec/magento2-ytec-coupon-sales. 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-ytec-coupon-sales

![Magento 2 Ytec Coupon Sales](https://i.imgur.com/d8QEHRb.png) # Ytec Coupon Sales for Magento 2
[![Packagist Version](https://img.shields.io/packagist/v/ytec/magento2-ytec-coupon-sales?logo=packagist&style=for-the-badge)](https://packagist.org/packages/ytec/magento2-ytec-coupon-sales) [![Packagist Downloads](https://img.shields.io/packagist/dt/ytec/magento2-ytec-coupon-sales.svg?logo=composer&style=for-the-badge)](https://packagist.org/packages/ytec/magento2-ytec-coupon-sales/stats) ![Supported Magento Versions](https://img.shields.io/badge/magento-%202.4.x-brightgreen.svg?logo=magento&longCache=true&style=for-the-badge) ![License](https://img.shields.io/badge/license-MIT-green?color=%23234&style=for-the-badge)

Introduction

This module is a Magento 2 extension that allows you to provide new Magento 2 endpoints to create coupons. These coupons are named "Coupon Sales" and they can be created by your partners, affiliates or any other third-party integrations.

The flow:

Features

Prerequisites

Installation

Composer

  1. Run the following command in your Magento 2 root directory:

  2. Enable the module:

  3. Run the Magento upgrade command:

  4. Clean the cache:

How to Use

  1. Access the Admin Panel: Go to your Magento 2 Admin Panel.
  2. Navigate to Sales Rules: Go to Marketing > Promotions > Cart Price Rules > New.
  3. Create a New Rule: Create a new rule and mark it as "Coupon Sales" with the new configuration under "Partnership Sales".
  4. Choose a code template: Choose a code template for your partners to create coupons (you can turn code template validation off in the configuration Stores > Configuration > Ytec > Coupon Sales > General > Validate Coupon Sales Code Templates). Code Template
  5. Save the Rule: Save the rule and get the rule's ID.
  6. Create a Coupon: Your partners can create coupons using the Magento 2 endpoint POST /V1/ytec/coupon-sales/coupons with the following payload:
  1. Use the Coupon: Customers can use the coupon code to apply the rule's discount (coupon sales can be used only once).
  2. Manage Coupons: You can manage the coupons created by your partners in the grid Ytec > Coupon Sales > Manage Coupon Sales. Manage Coupon Sales
    • The grid shows the coupon code, the rule's name, the partner's sales price, the expiration date, the status and more.
    • You can disable, delete and create coupons sales in the grid.
    • You can also see the coupon's usage history by clicking on edit on a coupon sale.
    • The partner name is deduced automatically by the partner's API key.
    • The Sales ID is automatically deduced by the coupon sale's code and based on a regex that you can define in Stores > Configuration > Ytec > Coupon Sales > General > Sales ID Regex. Coupon Sales Configuration

Other Endpoints

License

This module is open-source under MIT license. For the full license, please refer to the LICENSE.md file.

Support and Contribution

For bugs, issues or feature requests, please open an issue on the repository or email [email protected] for more personalized assistance.


All versions of magento2-ytec-coupon-sales with dependencies

PHP Build Version
Package Version
Requires magento/framework Version *
ytec/base Version >=1.1.2
php Version >=7.4
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 ytec/magento2-ytec-coupon-sales contains the following files

Loading the files please wait ....