Buy Now button on products display

Discussion in 'SaleJunction E-Commerce WordPress Theme' started by deveshd, Mar 27, 2015.

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

    deveshd Member

    Joined:
    Jul 21, 2012
    Messages:
    282
    Likes Received:
    4
    In the home page product display, how do I adda standard BUY NOW button at the end of each product box? See screenshot below:
    Screen Shot 2015-03-27 at 10.25.29 AM.png
     
  2. praveen

    praveen Support Staff

    Joined:
    Jan 1, 2015
    Messages:
    2,344
    Likes Received:
    67
    Hello Deveshd!

    Please follow the screenshot given below.


    PHP:
    <a href="<-- BUY NOW URL -->"><class="product_buy_button">BUY NOW</p></a>
    Now paste the code given below in Custom CSS section
    (Appearance -> Theme Options -> Styling Options -> Custom CSS) of your dashboard.
    Code:
    p.product_buy_button {
      color: white;
      background: red;
      padding: 6px 10px;
      width: 65px;
      border-radius: 18px;
      margin-left: 45px;
    }
    
    Thanks,
    Praveen
     

    Attached Files:

  3. deveshd

    deveshd Member

    Joined:
    Jul 21, 2012
    Messages:
    282
    Likes Received:
    4
  4. praveen

    praveen Support Staff

    Joined:
    Jan 1, 2015
    Messages:
    2,344
    Likes Received:
    67
    Hello deveshd!

    Please follow the screenshot.
    salejunction_add_buy_now_button.png

    Now paste the code given below in Custom CSS section
    (Appearance -> Theme Options -> Styling Options -> Custom CSS) of your dashboard.
    Code:
    p.product_buy_button {
    color: white !important;
    background: red;
    padding: 6px 10px;
    width: 85px;
    border-radius: 18px;
    margin-left: 45px;
    }
    Thanks,
    Praveen
     
  5. deveshd

    deveshd Member

    Joined:
    Jul 21, 2012
    Messages:
    282
    Likes Received:
    4
    Perfect. Thanks! Now,
    1. Is it possible to put the same mouse hover effect on these buttons as the one on Slider buttons? If yes, how? Please.
    2. What's the color code of the green color used on slider buttons?
     
  6. praveen

    praveen Support Staff

    Joined:
    Jan 1, 2015
    Messages:
    2,344
    Likes Received:
    67
    Hello deveshd!

    1.Use the css code given below.
    Code:
    p.product_buy_button:hover {
      color: red !important;
      background: blue;
    }
    2. It's a background image, but i am giving you the similar color #59A119

    Thanks,
    Praveen
     
  7. deveshd

    deveshd Member

    Joined:
    Jul 21, 2012
    Messages:
    282
    Likes Received:
    4
  8. praveen

    praveen Support Staff

    Joined:
    Jan 1, 2015
    Messages:
    2,344
    Likes Received:
    67
    Hello deveshd!

    Please replace href="#" with href="<?php the_permalink(); ?>" in the new code added.
    This will resolve your issue.

    Thanks,
    Praveen
     
  9. deveshd

    deveshd Member

    Joined:
    Jul 21, 2012
    Messages:
    282
    Likes Received:
    4
    Done, thanks!
     
Thread Status:
Not open for further replies.

Share This Page