Advanced Product Labels for WooCommerce - by bluelefant

This topic has 16 replies, 3 voices, and was last updated 7 years, 9 months ago ago by Jack Richardson

  • Avatar: bluelefant
    bluelefant
    Participant
    February 8, 2017 at 23:04

    Hi, I tried to install this plugin and it does not work well with the theme.

    It should show the label after the product image and before the product name but it shows before the image product.

    I have contacted the plugin support and they have reply me this:

    Hi,

    Our plugin use ‘woocommerce_before_shop_loop_item_title’ to show labels. as you can see from the hook name it should be right before item title but for some reason your theme developer decide that image is part of title and hook is in wrong place.

    You can contact theme developer about this issue.

    For me this is a problem because I need to show product labels.

    Is there any solution for this?

    Thank you

    15 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    February 10, 2017 at 10:38

    Hello,

    Please show a page of the issue and a screenshot for better understanding.
    Also provide FTP/WP Dashboard credentials in private content.

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: bluelefant
    bluelefant
    Participant
    February 10, 2017 at 11:44

    Hello Eva Kemp,

    thank you for the reply

    I send the test environment copy of the web since that is where I am testing the ADVANCED PRODUCT LABELS FOR WOOCOMMERCE.

    I have also tried with the theme storefront and xclean (this from 8theme) themes and in these it works perfectly.

    Thank you very much.

    Please, contact administrator
    for this information.
    Avatar: Eva
    Eva Kemp
    Support staff
    February 10, 2017 at 16:09

    Hello,

    Sorry, but it’s a bit unclear for me. What should I see on the “testeme” page. I see the label on “testeme/tienda/supertendedor”. What should it be displayed on the “testeme” page?
    Could you please show screenshots for better understanding?
    Also please provide FTP credentials.

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: bluelefant
    bluelefant
    Participant
    February 10, 2017 at 18:17

    Hello Eva Kemp, thank you for the quick reply.

    I certainly have not explained myself well.

    What I try to say is that the labels are not being displayed in the right place in Classsico Theme.
    In the Classico theme puts them before the product image when they should appear after the product image likein other themes I have tried like storefront and XClean from 8Theme.

    At first I thought it was a plugin problem that was not displaying the label in the right place on my site, so I tried these with these 2 other themes (storefront and xclean), but in these is displaying correctly.

    I hope I have explained better. Sorry for my bad English.

    Thank you

    Please, contact administrator
    for this information.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    February 11, 2017 at 09:27

    Hello,

    When I tried to access WP login page I was redirected to this site http://raiolanetworks.com/bloqueos/login.php .
    Is the link correct?
    Please check it.

    Thank you.
    Best regards,
    Jack Richardson.

    Avatar: bluelefant
    bluelefant
    Participant
    February 11, 2017 at 10:57

    Hello Jack Richardson.

    This is a message from the hosting provider as security to avoid attacks.
    They tell me that you must install the Spanish language in the browser. It does not have to be configured as a default language, it must only be installed.

    I hope this is no complication for you.

    Thank you so much

    Avatar: Eva
    Eva Kemp
    Support staff
    February 13, 2017 at 11:18

    Hello,

    I’ve installed Spanish language in my browser but I’m still getting redirect to this page http://raiolanetworks.com/bloqueos/login.php when trying to access WP admin page.
    Could you please disable this redirect?

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: bluelefant
    bluelefant
    Participant
    February 13, 2017 at 18:06

    Hello,

    The hosting have disabled the redirect.

    Please check that you have no problem login into the admin page now.

    Sorry for all the inconvenience.

    Thank you

    Regards

    Avatar: Eva
    Eva Kemp
    Support staff
    February 14, 2017 at 10:46

    Hello,

    Thank you. I was able to access the dashboard.
    I’ve edited the file wp-content/themes/classico/woocommerce/content-product.php and moved the code below from line 72 to line 144:

    <?php
    /**
    * woocommerce_before_shop_loop_item_title hook
    *
    * @hooked woocommerce_show_product_loop_sale_flash - 10 [REMOVED in woo.php]
    * @hooked woocommerce_template_loop_product_thumbnail - 10 [REMOVED in woo.php]
    */
    do_action( 'woocommerce_before_shop_loop_item_title' );
    ?>

    Please check the pages now.

    Regards,
    Eva Kemp.

    Avatar: bluelefant
    bluelefant
    Participant
    February 14, 2017 at 13:29

    Hello Eva Kemp

    Now it looks as it should, it’s perfect thank you very much!!

    I wanted to ask you.
    When there is an update of the theme, these changes will be lost?

    Will I have to change the code again in the file?

    Thank you

    Regards

    Avatar: Eva
    Eva Kemp
    Support staff
    February 15, 2017 at 17:39

    Hello,

    Yes, the changes will be lost.
    In this case you can create a child theme https://codex.wordpress.org/Child_Themes and move the file there. The path should be classico-child/woocommerce/content-product.php.

    Regards,
    Eva Kemp.

    Avatar: bluelefant
    bluelefant
    Participant
    March 1, 2017 at 12:54

    Hello Eva Kemp

    I just realized that the label also goes wrong in related products, should appear below.

    It would be necessary to change something more in the content-product.php archive code? You could take a look?

    Thanks in advance

    Regards

    Please, contact administrator
    for this information.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    March 1, 2017 at 17:27

    Hello,

    What if I propose you to display labels in related products section like this http://prntscr.com/eeq7rd ? If you like this variant add the css code in Theme Options > Styling > Custom CSS > Global Custom CSS section:

    .single-product .br_alabel_label.br_alabel_center {
        position: absolute;
        z-index: 100;
    }

    In this case you don’t need to edit source files.

    Regards,
    Jack Richardson.

    Avatar: bluelefant
    bluelefant
    Participant
    March 2, 2017 at 18:28
    Please, contact administrator
    for this information.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    March 7, 2017 at 15:24

    Hello,

    Please take my apologies for delay.
    I’ve moved the following code in the wp-content/themes/classico/woocommerce/content-product-slider.php file from line 76 to 149:

    <?php
       /**
       * woocommerce_before_shop_loop_item_title hook
       *
       * @hooked woocommerce_show_product_loop_sale_flash - 10 [REMOVED in woo.php]
       * @hooked woocommerce_template_loop_product_thumbnail - 10 [REMOVED in woo.php]
       */
      do_action( 'woocommerce_before_shop_loop_item_title' );
    ?>

    Please check related products now.

    Regards,
    Jack Richardson.

  • Viewing 16 results - 1 through 16 (of 16 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.