• Resolved tonigue

    (@tonigue)


    One of my last questions
    I would like the front appointments calendar to see the status also in different colors.
    I found the code for the administration and it works, but in the front it does not.
    thaks

    if( $single->status == 'approved')
    {
    
    $appointment_color = "#FFFF00";
    } else if( $single->status == 'pending')
    {
    
    $appointment_color = "#FFA500";
    }
    else if( $single->status == 'cancelled')
    {
    
    $appointment_color = "#FF0000";
    }
    else if( $single->status == 'done')
    {
    
    $appointment_color = "#008000";
    }
Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @tonigue

    Follow given instructions.

    Go to in your plugin directory >> appointment-calendar-shortcode.php

    Find attached code in link and replace in appointment-calendar-shortcode.php

    Let me know did it work.

    Thanks
    A

    Thread Starter tonigue

    (@tonigue)

    Thanks run, another simple question.
    In the .po file I have translated well into German.
    I put it so that the state could be seen in writing if it is approved, canceled ..
    Pending me translate well but the rest comes out in English.
    Is there any way to fix it?
    status title

    • This reply was modified 8 years, 3 months ago by tonigue.

    Hi @tonigue

    IF your Thread original issue resolved kindly marked this thread resolved.

    Kindly create a new thread for your new query. because post mulptiple query in single thread create complexity to handel.

    Thanks
    A

    • This reply was modified 8 years, 3 months ago by abhishek.
    Thread Starter tonigue

    (@tonigue)

    The idea took me hours later and got the problem fixed.
    Thx @abhishek

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Diferent colors of status on front appointments calendar’ is closed to new replies.