• HgtuRgg

    (@kalyanbratadas)


    Hi,

    Thanks for this nice plugin. But, somehow it’s not working on one of my sites. I am using Styleshop theme from Elegant Themes where wooCommerce is integrated with the theme. No ‘New’ flashes show up on any page under any product even though I have tried setting up multiple days on the catalog tab under settings. Please resolve this.

    Thanks
    Kalyan

    https://www.ads-software.com/plugins/woocommerce-new-product-badge/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi thanks for plug in.

    I’va same problem with Virtue Theme ??

    I’m using Virtue Theme, isnt works too. Have you find any solution??

    Hello all,
    had same issue here on Virtue theme.
    long story short, the action that the plugin relies is commented on Virtue theme. you can find it simply on your theme \woocommerce\content-product.php
    search for //do_action( ‘woocommerce_before_shop_loop_item_title’ );

    when you uncomment it your page will look like scrabled eggs, so add the following css – customize it as you wish

    .wc-new-badge {
    background-color: #2D5C88;
    color: #FFFFFF;
    padding: 5px 10px;
    position: absolute;
    right: 0;
    top: 0;
    }

    note – that action is probably commented for a reason. many plugins may actually use it. so it can be a bad idea to uncomment it. or a good one who knows.
    what i suggest is that you guys add your own action e.g. woocommerce_before_shop_loop_badge. will will also need to modify the plugin file new-badge.php around line 40 for
    add_action( ‘woocommerce_before_shop_loop_badge’, array( $this, ‘woocommerce_show_product_loop_new_badge’ ), 30 );

    good luck

    Hi,

    I Just installed this plugin on my working Woocommerce website on https://www.computershop-online.nl but, also on the Virtue theme. I adjusted what you said. And after that my whole woocommerce webshop was not working anymore! White screen! I have fixed it by deleting the plugin directory on my FTP.

    Just to let you know that the solution you have given can crash your complete website!

    With kind regards
    G.P.M. Meertens
    Computer Shop Online

    hello Computer Shop Online,

    bear in mind that the solution is not a copy paste process. you need a certain skill to be changing code or patching plugins.

    white screen usually means the changes you have done in the code files were not ok and the they have provided a fatal error. that can be from a simple typo, a bad comment, or the code above is not suited to your version of Virtue theme, a new version may ruin the above approach.

    In these cases you should look into your error log file and check the line of code that has the error and go from there on.
    check this reference:
    https://codex.www.ads-software.com/Debugging_in_WordPress

    Rodolfo

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Not working’ is closed to new replies.