WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce New Product Badge
Not working (4 posts)

  1. Kalyan Brata Das
    Member
    Posted 8 months ago #

    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

    http://wordpress.org/plugins/woocommerce-new-product-badge/

  2. joint77
    Member
    Posted 6 months ago #

    Hi thanks for plug in.

    I'va same problem with Virtue Theme :(

  3. miansimon
    Member
    Posted 4 months ago #

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

  4. RuddyFromPortugal
    Member
    Posted 3 months ago #

    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

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.