local:shop:structure:discounts:partner

Discounts: Partner Identity Discount

Moodle Shop

Triggers a discount on recognition of a partner's identity when the order/invoice comes from a certain source.

This recognition can be done for the following sources:

  • E (external): for purchase orders “brought” by a partner through cart pre-filling
  • I (internal): for purchase orders created under the partner customer account (own explicit orders)
  • A (automatic): for purchase orders auto-generated for the partner (product activation)
  • EIA: for all these methods at once (default if the mode is not mentioned)

Technical note on the source check implementation

Discount rate

Uses the main rate of the discount definition (static rate).

Parameters

Clef partenaire (string)|mode [E,I,A,EAI(default)]

Example:

PARTNER1|E

Grants the discount to partner 1 for all its customers brought through a cart pre-fill (External order)

PARTNER1|I

Grants the discount to partner 1 for all its orders invoiced on its customer account through a partner action (Internal order)

PARTNER1|EI

Grants the discount to partner 1 for all its internal or external orders

PARTNER1

Grants the discount to partner 1 for all the partner's orders, whatever the mode

Credits

  • Valéry Frémaux (valery@activeprolearn.com) Design - Development
  • Florence Labord (florence@activeprolearn.com) Functional review - Tests

Back to the structure - Back to the component summary Local Shop (Boutique) - Back to the catalog


local/shop/structure/discounts/partner.txt · Dernière modification : de 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki