Ejemplo n.º 1
0
def get_discount_modules():
    """
    Get a list of configured discount module instances.

    :rtype: list[DiscountModule]
    """
    return load_module_instances("SHUUP_DISCOUNT_MODULES", "discount_module")
Ejemplo n.º 2
0
def get_discount_modules():
    """
    Get a list of configured discount module instances.

    :rtype: list[DiscountModule]
    """
    return load_module_instances("SHUUP_DISCOUNT_MODULES", "discount_module")
Ejemplo n.º 3
0
def get_order_source_modifier_modules():
    """
    Get a list of configured order source modifier module instances.

    :rtype: list[OrderSourceModifierModule]
    """
    return load_module_instances("SHUUP_ORDER_SOURCE_MODIFIER_MODULES",
                                 "order_source_modifier_module")
Ejemplo n.º 4
0
def get_order_source_modifier_modules():
    """
    Get a list of configured order source modifier module instances.

    :rtype: list[OrderSourceModifierModule]
    """
    return load_module_instances(
        "SHUUP_ORDER_SOURCE_MODIFIER_MODULES", "order_source_modifier_module")