"New" product badge?

Discussion in 'SaleJunction E-Commerce WordPress Theme' started by ronnies, Sep 4, 2016.

Thread Status:
Not open for further replies.
  1. ronnies

    ronnies Member

    Joined:
    Jan 13, 2015
    Messages:
    63
    Likes Received:
    1
    Hey guys,

    Just like the "sale" banner that shows up on sale products, I want to add a "new" badge as well (creating my own image).

    The sale code is this -
    Code:
    <?php if ($product->is_on_sale()) { ?>
    And the functions.php bit is
    Code:
    function is_on_sale() {
        return isset( $this->sale_price ) && $this->sale_price == $this->price ? true : false;
    }
    How can I add a "new" badge as well?
     
  2. priya

    priya Guest

  3. ronnies

    ronnies Member

    Joined:
    Jan 13, 2015
    Messages:
    63
    Likes Received:
    1
    Hi Priyanka,

    Thanks!! This is exactly what I've been looking for.
    :)
     
  4. priya

    priya Guest

    You're welcome..:)

    Do let me know if you need more assistance,

    Thanks & Regards!
    Priyanka
    InkThemes.com
     
Thread Status:
Not open for further replies.

Share This Page