• I have just installed your plugin and created my first label, but when I save it, nothing is added to any of my products. I have tried multiple conditions and nothing seems to work!

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

Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Author RazyRx

    (@razyrx)

    Hello,

    It seems your site do not have needed hooks.
    You can try to change hooks in plugin settings -> Advanced tab.

    Regards,
    Oleg

    Thread Starter Bar Memes

    (@michael130785)

    Hi Oleg,
    I have tried every dropdown in the three lists on the Advanced tab and none of them has made a difference.?
    Can you please help me fix this?

    Plugin Author RazyRx

    (@razyrx)

    Hello,

    Do you use any page builder to display products on the page?

    Regards,
    Oleg

    Thread Starter Bar Memes

    (@michael130785)

    Hi Oleg,

    Yes, it is a Carzilla theme built with Gutenberg.

    Plugin Author Dmytro Holovnia

    (@dholovnia)

    Hi,

    You can try to use shortcode [br-wapl-all] for the product layout in the Gutenberg or in the theme.

    Regards,
    Dima

    Thread Starter Bar Memes

    (@michael130785)

    Hi Dima,

    Thanks for getting back to me.

    Where do I put the short code?

    Is this to replace the current product list blocks?

    Is there another way to get the labels to show without having to use the short code?

    Plugin Author Dmytro Holovnia

    (@dholovnia)

    Hi,

    If you are rebuilding product(in the list) layout you need to add this shortcode next to the product’s image output.

    If you are using theme’s widget for products output and need to overwrite theme template in child theme and add this shortcode next to the product’s image.

    “Is this to replace the current product list blocks” – could you please provide link to the screenshot of the page edit screen? I’d like to see what widget are you using for products list output.

    Regards,
    Dima

    Thread Starter Bar Memes

    (@michael130785)

    I get these errors when I try to add this short code to my website:

    Fatal error: Uncaught Error: Call to a member function is_on_sale() on null
    in /var/www/wp-content/plugins/advanced-product-labels-for-woocommerce/main.php on line 630
    
    Call stack:
    
    BeRocket_products_label::get_correct_text()
    wp-includes/class-wp-hook.php:292
    WP_Hook::apply_filters()
    wp-includes/plugin.php:212
    apply_filters()
    wp-content/plugins/advanced-product-labels-for-woocommerce/main.php:494
    BeRocket_products_label::show_label_on_product()
    wp-content/plugins/advanced-product-labels-for-woocommerce/main.php:353
    BeRocket_products_label::set_label()
    wp-includes/class-wp-hook.php:292
    WP_Hook::apply_filters()
    wp-includes/class-wp-hook.php:316
    WP_Hook::do_action()
    wp-includes/plugin.php:484
    do_action()
    wp-content/plugins/advanced-product-labels-for-woocommerce/main.php:310
    BeRocket_products_label::set_all_label()
    wp-includes/shortcodes.php:343
    do_shortcode_tag()
    preg_replace_callback()
    wp-includes/shortcodes.php:218
    do_shortcode()
    wp-includes/class-wp-hook.php:292
    WP_Hook::apply_filters()
    wp-includes/plugin.php:212
    apply_filters()
    wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:1768
    WP_REST_Posts_Controller::prepare_item_for_response()
    wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:550
    WP_REST_Posts_Controller::get_item()
    wp-includes/rest-api/class-wp-rest-server.php:1139
    WP_REST_Server::respond_to_request()
    wp-includes/rest-api/class-wp-rest-server.php:985
    WP_REST_Server::dispatch()
    wp-includes/rest-api.php:479
    rest_do_request()
    wp-includes/rest-api.php:2816
    rest_preload_api_request()
    array_reduce()
    wp-admin/edit-form-blocks.php:82
    require()
    wp-admin/post.php:187
    Plugin Author Dmytro Holovnia

    (@dholovnia)

    Please provide screenshot of where are you doing it.

    Regards,
    Dima

    Thread Starter Bar Memes

    (@michael130785)

    Hi Dima,

    I can’t attach a screenshot in my reply, but when I create a blank page and add the shortcode you have provided it says it can’t publish the page:

    “Publishing failed. The response is not a valid JSON response.”

    Plugin Author Dmytro Holovnia

    (@dholovnia)

    You can use free image sharing hosting and attach here a link.

    Regards,
    Dima

    Thread Starter Bar Memes

    (@michael130785)

    https://barmemes.store/wp-content/uploads/2021/06/LabelTest.png

    • This reply was modified 3 years, 9 months ago by Bar Memes.
    Plugin Author Dmytro Holovnia

    (@dholovnia)

    Error 1020 Ray ID: 658849059e60d433 ? 2021-06-01 12:01:04 UTC
    Access denied

    Please use
    https://imgur.com/upload

    Plugin Author RazyRx

    (@razyrx)

    Hello,

    This shortcode must be added inside products loop.
    It seems shortcode was added just on page, but not inside products loop.

    Shortcode will work only inside products loop where global variable $product exist, and also it can be used on single product page.

    Regards,
    Oleg

    Thread Starter Bar Memes

    (@michael130785)

    Hi RazyRx,

    Thank you for the prompt response.

    How do I do that?

    I don’t understand how I add this inside the products loop?

    This was the image that was requested earlier:

    Label Test

    • This reply was modified 3 years, 9 months ago by Bar Memes.
Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Labels not showing’ is closed to new replies.