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

    (@dholovnia)

    Hello,

    First of all you need to try simple way. Open plugin settings page tab Advanced and try to change Shop hook to something else. Try them all. In most cases at least one is working.

    Regards,
    Dima

    Plugin Author Dmytro Holovnia

    (@dholovnia)

    I don’t remember if it was release already or will be in next version of the plugin but there should be 3 shortcodes for page builders:
    [br-wapl-label] – output label with type ‘label’ for the product
    [br-wapl-image] – output label with type ‘on image’ for the product
    [br-wapl-all] – output all labels for the product
    As you understand it should be in the product template.

    Regards,
    Dima

    Thread Starter u3r

    (@u3r)

    Hello Dima,

    sorry, forgot to mention, the hooks in the settings was the first thing I tried, none of them worked however ??

    as for shortcodes, it’s probably gonna be in the next version, since right now it just outputs “[br-wapl-all]” as a text, nothing else.

    I suppose nothing else I can do here?

    Plugin Author Dmytro Holovnia

    (@dholovnia)

    You could add it.
    Open our plugin folder via ftp. Open for edit file main.php. Find there function __construct(). Scroll a bit down to the
    if ( $this->init_validation() ) {
    and add before its closing } this

    
    add_shortcode( 'br-wapl-label', array( $this, 'set_label_label' ) );
    add_shortcode( 'br-wapl-image', array( $this, 'set_image_label' ) );
    add_shortcode( 'br-wapl-all', array( $this, 'set_all_label' ) );
    

    Regards,
    Dima

    Thread Starter u3r

    (@u3r)

    Well, it did worked, thanks, of course the only thing that it now adds all labels bypassing conditions I’ve set. I suppose there’s no way to make it work with shortcodes and conditions?

    Thread Starter u3r

    (@u3r)

    Okay, so I figured out that JetWooBuilder changes classes to it’s own: https://prntscr.com/rhqx06

    Is there any way I can change shop hook in main.php to that class that I need it to be?

    I suppose just doing this: https://prntscr.com/rhqxh1

    won’t do the trick?

    Thread Starter u3r

    (@u3r)

    Or perhaps I can force to add the hook somehow that plugin searches for, to JetWooBuilder’s element?

    Plugin Author Dmytro Holovnia

    (@dholovnia)

    Could you please tell me what conditions are not working? I did use it already for other client and all conditions was ok.

    Thread Starter u3r

    (@u3r)

    Conditions weren’t working with shortcode only.
    And the conditions I tried were “Product > Equal > “Name””

    and it still applied that label to all products with shortcode.

    • This reply was modified 4 years, 12 months ago by u3r.

    Do not know how to delete message… is not accurate anymore

    Thanks you

    Plugin Author Dmytro Holovnia

    (@dholovnia)

    Could you please provide a screenshot? Conditions can be tricky.

    Thread Starter u3r

    (@u3r)

    They didn’t work before, they would just show all labels, however, I purchased the pro version and now it seems to work fine. Perhaps a bug?

    Anyways a feature suggestion from me would be, if possible, a really nice feature would be if we could get shortcodes for every label we create. That’s for future ??

    Anyways, works fine now, all good, thanks ??

    Plugin Author Dmytro Holovnia

    (@dholovnia)

    Hi,

    “shortcodes for every label” is possible to do. The problem is that in the loop you still will need to add most of the labels or they will not be shown.

    It is better to fix the issue you had and use just 1 shortcode.

    Regards,
    Dima

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Labels not working with Elementor/JetWooBuilder’ is closed to new replies.