• Hi, I have set the limitation for the min and max price in the plugin. How can get those values (min and max price set in the plugin) in the backend(i.e. function.php in theme editor) for some programming needs? Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Dmytro Holovnia

    (@dholovnia)

    Hi,

    
    $BeRocket_minmax_custom_post = BeRocket_minmax_custom_post::getInstance();
    $limitation_ids = $BeRocket_minmax_custom_post->get_custom_posts_frontend();
    foreach($limitation_ids as $limitation_id) {
        $settings_minmax = get_post_meta( $limitation_id, 'br_minmax_limitation', true );
    }
    

    Regards,
    Dima

    Thread Starter thisvo

    (@thisvo)

    Thank you so much! It works and helped me a lot. One more question, can I also get all the product ids that applying each limitation in a similar way? Thanks for your help.

    Plugin Author Dmytro Holovnia

    (@dholovnia)

    We are checking product in cart and validate them. We are not getting products based on the limitations. This one you will need to do yourself.

    Regards,
    Dima

    Thread Starter thisvo

    (@thisvo)

    Hi, long time since my last question.
    May I ask:
    1: What is the code for me to get the MIN and MAX PRODUCT QUANTITY I set in the limitation instead of MIN and MAX PRICE? As I have only asked for min and max price last time.
    2. How can I change the warning message for not enough product when user submit his order in the product. The message I can modify in the plugin seems do not include those message.

    Thanks for you help.

    Thread Starter thisvo

    (@thisvo)

    I have found the solution for question 2 in this forum. Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Get attribute from backend’ is closed to new replies.