This topic has 6 replies, 3 voices, and was last updated 7 years by Radu.

  • Author
  • #177329
     rlarson87
    Participant

    Hi, how do I add extra functionality fields to the membership levels skin?

    Also, is it possible to design a new skin for the pricing table and replace the demo one?

    Attachments:
    You must be logged in to view attached files.
    #177332
     rlarson87
    Participant

    Also, how do I add an “X” icon when functionality is not included in membership level to make it more clear (like how there is a checkmark icon when functionality is included)?

    #177385
     Kieran_SQ
    Moderator

    Hi,

    To add more options to the table via Theme Options > Memberships please use the below code at the end of your functions.php file by going to WP Admin > Appearance > Editor > KLEO Child > Functions.php

    COPY CODE
    add_filter('kleo_pmpro_level_restrictions', 'my_custom_levels');
    
    function my_custom_levels($kleo_pay_settings) {
        $kleo_pay_settings[] = array(
                'title' => __('New Option A','kleo_framework'),
                'front' => __('Option A','kleo_framework'),
                'name' => 'new_option_a'
            );
        $kleo_pay_settings[] = array(
                'title' => __('New Option B','kleo_framework'),
                'front' => __('Option B','kleo_framework'),
                'name' => 'new_option_b'
            );
        $kleo_pay_settings[] = array(
                'title' => __('New Option C','kleo_framework'),
                'front' => __('Option C','kleo_framework'),
                'name' => 'new_option_c'
            );
        return $kleo_pay_settings;
    }

    Adjust the code to suit your needs.

    With regards to the icon question I will refer this ticket to one of our developers who may be able to assist you. They’ll be in touch as soon as they can (Mon-Fri East Europe Time).

    Thanks,

    Kieran

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.

    #177429
     rlarson87
    Participant

    Thanks. How do I reorder the options? I would like the new options (View Company Directory, View Events Directory, Access Company Contact Info) I created to be at the top of the membership table. See screenshot.

    Attachments:
    You must be logged in to view attached files.
    #177534
     Radu
    Moderator

    Hi,

    Try with this filter line instead this

    COPY CODE
    
    add_filter('kleo_pmpro_level_restrictions', 'my_custom_levels');
    

    Use this

    COPY CODE
    
    add_filter('kleo_pmpro_level_restrictions', 'my_custom_levels', '1');
    

    OR

    COPY CODE
    
    add_filter('kleo_pmpro_level_restrictions', 'my_custom_levels', '5');
    

    Or try to put lower higher value see how it renders

    Cheers
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #177554
     rlarson87
    Participant

    Thanks. Where do I add the filter in the code you already gave me (below)?

    add_filter(‘kleo_pmpro_level_restrictions’, ‘my_custom_levels’);

    function my_custom_levels($kleo_pay_settings) {
    $kleo_pay_settings[] = array(
    ‘title’ => __(‘View Companies Directory’,’kleo_framework’),
    ‘front’ => __(‘View Companies Directory’,’kleo_framework’),
    ‘name’ => ‘view_companies_directory’
    );
    $kleo_pay_settings[] = array(
    ‘title’ => __(‘View Events Directory’,’kleo_framework’),
    ‘front’ => __(‘View Events Directory’,’kleo_framework’),
    ‘name’ => ‘view_events_directory’
    );
    $kleo_pay_settings[] = array(
    ‘title’ => __(‘Access Company Contact Info’,’kleo_framework’),
    ‘front’ => __(‘Access Company Contact Info’,’kleo_framework’),
    ‘name’ => ‘access_company_contact_info’
    );
    return $kleo_pay_settings;
    }

    #177671
     Radu
    Moderator

    Hi,

    COPY CODE
    
    
    add_filter('kleo_pmpro_level_restrictions', 'my_custom_levels', '1' );
    //add_filter('kleo_pmpro_level_restrictions', 'my_custom_levels', '5' );
    //add_filter('kleo_pmpro_level_restrictions', 'my_custom_levels', '10' );
    //add_filter('kleo_pmpro_level_restrictions', 'my_custom_levels', '40');
    
    function my_custom_levels($kleo_pay_settings) {
        $kleo_pay_settings[] = array(
                'title' => __('New Option A','kleo_framework'),
                'front' => __('Option A','kleo_framework'),
                'name' => 'new_option_a'
            );
        $kleo_pay_settings[] = array(
                'title' => __('New Option B','kleo_framework'),
                'front' => __('Option B','kleo_framework'),
                'name' => 'new_option_b'
            );
        $kleo_pay_settings[] = array(
                'title' => __('New Option C','kleo_framework'),
                'front' => __('Option C','kleo_framework'),
                'name' => 'new_option_c'
            );
        return $kleo_pay_settings;
    }
    

    Cheers
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?