• Resolved tiesgr

    (@tiesgr)


    Hello,

    I am trying to find the hook snippet code of the plugin that I have to implement into content-product.php file in order for the label plugin to work with my theme woocommerce (legenda-8theme) in the archive category page not only into single product page.
    Could you please provide me the hook code to insert into this file in order for the plugin to work properly.

    Ideally I would like to also have the label into quick view pop up window but definitely in product category page.

    Thank you in advance,

    Tiesgr

    The page I need help with: [log in to see the link]

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

    (@dholovnia)

    Hello,

    You can try to add this hooks:
    If you need to output on-image label
    do_action ( 'product_of_day_before_thumbnail_widget' );

    If you need to output under image label
    do_action ( 'product_of_day_before_title_widget' );

    Output all labels that fit condtions
    do_action ( 'lgv_advanced_after_img' );

    Regards,
    Dima

    Thread Starter tiesgr

    (@tiesgr)

    Hello,

    Thank you for your prompt answer,

    But with that kind of code the third hook it appears in all products.

    What kind of code should I write in order to appear only on selected categories of products?

    Now, although I have checked to be enabled on specific categories it appears on all products.

    What kind of code should I write?

    It would be like
    if (functions_exists ….{
    do_action ( ‘lgv_advanced_after_img’ );
    }
    ?>

    I need your help here please.

    Thank you

    Plugin Author Dmytro Holovnia

    (@dholovnia)

    ‘the third hook it appears in all products’ – this is how it should work.
    ‘appear only on selected categories of products’ – configured in the label with help of Conditions box.

    Regards,
    Dima

    Thread Starter tiesgr

    (@tiesgr)

    Hello Dima,

    I used the first hook and it worked as a charm.

    Thank you very much for your help it was a savior.

    Best Regards,

    Tiesgr

    Hello, I have the same problem but unfortunately I’m not a programmer. Where should I put the hook:

    do_action ( 'product_of_day_before_thumbnail_widget' );

    ?
    Do i need a function-php file in a child theme? Or is it in a woocommerce file?
    Could you give me some guidance?

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Label Is not working on product category – Archive shop page’ is closed to new replies.