Coder Social home page Coder Social logo

licence's Introduction

Licence

This thelia 2 module was created to generate product_key serial and expiration date for virtual product.

The expiration date is set by default to the date of the order invoice +1 year.

Installation

Manually

Copy the module into <thelia_root>/local/modules/ directory. Activate it in your thelia administration panel

Loop

This module provide a new loop: licence

Example:
{loop type="licence" name="Licence" order_id="$order_id" product_id="$ID"}
{$PRODUCT_KEY}
{$EXPIRATION_DATE|date_format:"%d/%m/%Y"}
{/loop}

Output arguments

Variable Description
$ID the licence id
$ORDER_ID the order id
$PRODUCT_ID the product id
$PRODUCT_KEY the product key generated
$EXPIRATION_DATE the date of expiration
$ACTIVE_MACHINE free input. Can be set the way you want

Hook

A hook is added on the order page. You can have a quick look on the product_key and the expiration_date generated when the order is paid.

Email

When the order is paid, an email is sent to the customer with the name of the product, the product key and his expiration date.

Special Thanks

Special thanks to @Roadster31 for his help to understanding Thelia 2 module developpement.

And a thank to the thelia forum.

licence's People

Contributors

delimard avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

vz777

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.