Your IP : 216.73.216.224


Current Path : /var/www/html/plugins/osmembership/planrestriction/
Upload File :
Current File : /var/www/html/plugins/osmembership/planrestriction/planrestriction.xml

<?xml version="1.0" encoding="utf-8"?>
<extension version="4.2.0" type="plugin" group="osmembership" method="upgrade">
    <name>Membership Pro - Plan Subscribing Restrictions</name>
    <author>Tuan Pham Ngoc</author>
    <authorEmail>tuanpn@joomdonation.com</authorEmail>
    <authorUrl>https://joomdonation.com</authorUrl>
    <copyright>Copyright (C) 2012 - 2026 Ossolution Team</copyright>
    <license>GNU General Public License version 3, or later</license>
    <creationDate>Nov 2012</creationDate>
    <version>4.6.0</version>
    <description>This plugin is used to prevent users from subscribing to a plan if they have active subscriptions of certain plans.
    </description>
    <namespace path="src">JoomDonation\MembershipPro\Plugin\MembershipPro\PlanRestriction</namespace>
    <files>
        <folder plugin="planrestriction">services</folder>
        <folder>src</folder>
    </files>
    <config>
        <fields name="params" addfieldpath="/administrator/components/com_osmembership/model/fields">
            <fieldset name="basic">
                <field
                        name="plan_restrictions"
                        type="subform"
                        label="Plan Subscribe Restrictions"
                        description="Prevent access to certain plan if user is having active subscriptions of one of selected plans."
                        layout="joomla.form.field.subform.repeatable-table"
                        icon="list"
                        multiple="true"
                >
                    <form hidden="true" name="list_plan_restrictions" repeat="true">
                        <field
                                name="plan_id"
                                type="osmplan"
                                label="Target Plan"
                                description="Select the plan to restrict subscription."
                                layout="joomla.form.field.list-fancy-select"
                        />
                        <field name="active_plan_ids"
                               type="osmplan"
                               multiple="true"
                               label="Block If Having Active Subscriptions Of These Plans"
                               description="Choose one or more plans. If user has active subscriptions of any of these plans, they will be restricted from subscribing to the target plan."
                               layout="joomla.form.field.list-fancy-select"
                        />
                    </form>
                </field>
            </fieldset>
        </fields>
    </config>
</extension>