Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Tjendol

    (@tjendol)

    Thanks for your replies!

    I wonder if it has something to do with the way I set up my product selection.
    I have two dropdown fields, one for product type and one for size. Different product types can have different sizes.

    When I have a default variant set, the clear option does not show. When no default value is set, the clear option shows as expected.

    I found out the clear option reappears when I set both fields to “choose an option” and next change them to a different option. Then the “clear” option shows again.
    Obviously, this is a terrible user experience.

    Anyway, disabling the default product selection now seems the only solution for me.

    Thanks again!

    Thread Starter Tjendol

    (@tjendol)

    Yes, I think I understood that the first time 🙂

    I came here with a question because I tried to solve this and I couldn’t…then after playing around with the core files, which I should never, ever, ever EVER do, 🙂 it worked…

    I’m pretty new to all of this so I wasn’t aware of the danger/risks involved.

    So…any hints about a correct approach?

    I ended up in that template file in the first place because I couldn’t find a file in which those comments are defined…

    The files I found used this:

    wp_list_comments

    and that’s where I got stuck…

    Thread Starter Tjendol

    (@tjendol)

    Good point. It really wasn’t my intention to encourage others to do so.

    I was happy it worked and wanted to share.
    So if you have a better solution, please do the same!

    Thread Starter Tjendol

    (@tjendol)

    Hi,

    For anyone that’s interested:

    I had to edit the /wp-includes/comment-template.php file using the code mentioned above.

    Thread Starter Tjendol

    (@tjendol)

    Ok, I just found out I need to use:

    $current_user->user_login

    instead of $current_user->ID

    The code would then become:

    <?php
    global $current_user; get_currentuserinfo();
    $author=get_comment_author();
    if($author == $current_user->user_login):
    ?>
    'comments you need to show'
    <?php endif; ?>

    But now I’m still having trouble to filter the comments. I’m not sure where to place it or if it could work.

Viewing 5 replies - 1 through 5 (of 5 total)