Download the PHP package thelia/group-order-module without Composer

On this page you can find all versions of the php package thelia/group-order-module. 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 group-order-module

Group Order

This Module allow you to create group orders

Installation

Manually

Composer

Add it in your main thelia composer.json file

Usage

During register or in back office you have the possibility to create Main Customers. A main customer can create sub-customers and can fill the cart of the sub-customer.

A sub-customer can connect via the login and password set by the main customer, they have restricted right, they can add items to their cart and once they decide to validate their cart, the cart is sent to the cart of the main-customer.

Hook

Front

Back

Loop

[group_order_sub_customer]

Input arguments

Argument Description
id id of a sub customer
main_customer id of the main customer
login login of a sub customer

Output arguments

Variable Description
$ID id of the sub customer
$MAIN_CUSTOMER_ID id of the main customer
$FIRSTNAME first name of the sub customer
$LASTNAME last name of the sub customer
$EMAIL email of the sub customer
$ADDRESS1 address of the sub customer
$ADDRESS2 address2 of the sub customer
$ADDRESS3 address3 of the sub customer
$CITY city of the sub customer
$ZIPCODE zip code of the sub customer
$COUNTRY_ID id of the country
$LOGIN login of the sub customer

Exemple

<ul>
    {loop type="group_order_sub_customer" name="my_group_order_sub_customer_loop" main_customer=$mainCustomerId}
        <li>{$FIRSTNAME} {$LASTNAME}</li>
    {/loop}
</ul>

[group_order_main_customer]

Input arguments

Argument Description
id id of a main customer
sub_customer_id id of a sub customer linked to a main customer
customer_id id of a customer linked to a main customer
active if the main customer is active or not

Output arguments

Variable Description
$ID id of the main customer
$CUSTOMER_ID id of the customer linked to this main customer

Exemple

{loop type="group_order_main_customer" name="main_customer_loop" customer_id=$customer_id active=true}
    {assign "isMainCustomer" 1}
{/loop}

[group_order_sub_order]

Input arguments

Argument Description
id id of a sub order
sub_customer id of a sub customer
group_order id of the main order

Output arguments

Variable Description
$ID id of the sub order
$SUB_CUSTOMER_ID id of the sub customer
$GROUP_ORDER_ID id of the main order
$PRODUCT_IDS ids of the product of this sub order
$ORDER_NUMBER Ref of the main order
$DATE Creation date
$AMOUNT total price of this sub order

Example

Add a complete exemple of your loop

Smarty plugin

groupOrderSubCustomerName

Input arguments

Argument Description
item_id id of a cart item
order_product_id id of an order product

Output arguments

Variable Description
$subCustomerName first name and last name of a sub customer

All versions of group-order-module with dependencies

PHP Build Version
Package Version
No informations.
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 thelia/group-order-module contains the following files

Loading the files please wait ...