logo
Ask your WordPress questions! Pay money and get answers fast! (more info)

Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.

If the asker does not get an answer then they have 10 days to request a refund.

$35
Icarus Theme, Buy Now Button

Hello – I need to add a green "buy now" button to home page and product pages, under the product listings. What is the best way to do that? (URL removed for privacy)

Thank you,
Aubrey

This question has been answered.

aubreyburkhart | 07/20/12 at 8:50am Edit

Previous versions of this question: 07/20/12 at 9:27am | 07/20/12 at 10:52am | 07/20/12 at 11:47am | 07/20/12 at 11:48am

(4) Possible Answers Submitted...

See a chronological view of answers?

Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.

  • avatar
    Last edited:
    07/20/12
    9:02am
    Gabriel Reguly says:

    Hi Aubrey,

    You mean changing the 'Add to cart' button to 'Buy Now'?

    I will need access to the theme files to see the best way to do it.

    -- Edit --

    After checking the demo site of Icarus, I noticed they have the phrase 'Add to your cart', so it could be somewhere in the options panel.

    Regards,
    Gabriel

    Previous versions of this answer: 07/20/12 at 9:02am

    • 07/20/12 9:11am

      aubreyburkhart says:

      Hi Gabriel,
      Please see the attached comp and note the green buttons under the product listings ("Shop Products") at the bottom of the page. This is not an option on the theme.

      Also, is this connection secured? In other words, am I safe to send login credentials for both the theme and the ftp directory?

      I replied with this same information to Arnav Joy (below), and wasn't sure if that was the right way to go about getting an answer. Do I reply to both of you? Or, just pick one person? How do I do this?

      Thank you,
      Aubrey

    • 07/20/12 9:25am

      Gabriel Reguly says:

      Hi Aubrey,

      I think just one person should have access to your site, if needed.

      Use private messages, as this is a public site if you gonna give ftp or site admin details.

      By access to theme files, I was meaning a copy of them because this is a commercial theme.

      You can put a zip version of it in a site like drobox or something similar.

      The theme is GPL, or should be, so that would be ok.

      Regards,
      Gabriel

    • 07/20/12 9:28am

      Gabriel Reguly says:

      Hi Aubrey,

      You are in good hands, Arnav Joy should help you properly.

      Regards,
      Gabriel

    • 07/20/12 9:33am

      aubreyburkhart says:

      Thank you :)

  • avatar
    Last edited:
    07/20/12
    9:05am
    Arnav Joy says:

    For this I have to work in your theme files.
    Also if you can provide a mockup or refrence how you want to look then it wil be best

    • 07/20/12 9:09am

      aubreyburkhart says:

      Sure - here you go! And, is this connection secured? In other words, am I safe to send login credentials for both the theme and the ftp directory?

      On the comps, please note the green buttons under the product listings ("Shop Products") at the bottom of the page.

      Attached Image

    • 07/20/12 9:14am

      Arnav Joy says:

      send me pm for the access of the site and note that
      wpquestions is not responsible for any changes made by me

    • 07/20/12 9:23am

      aubreyburkhart says:

      Ok, I pick you. How do I do that officially? And, I sent the login through WPQuestions already. Did you get it?

    • 07/20/12 9:24am

      Arnav Joy says:

      yes i got it and doing it

    • 07/20/12 10:30am

      aubreyburkhart says:

      Hey Arnav! I see the button there, but for some reason, it's not adding the products to the cart, and the cart button in the main slider has stopped working too. Are you in the middle of working on it at this point?

      Thank you,
      Aubrey

  • avatar
    Last edited:
    07/20/12
    9:11am
    Manoj Raj says:

    You just want the "Buy now" in place of "Add to Cart" button? or should "Buy Now" button should lead you to the checkout page? which is different from "Add to Cart" actually

    • 07/20/12 9:12am

      aubreyburkhart says:

      Hi Manoj,
      Please see the attached comp and note the green buttons under the product listings ("Shop Products") at the bottom of the page. This is not an option on the theme.

      Thank you!
      Aubrey

      Attached Image

    • 07/20/12 9:19am

      Manoj Raj says:

      Send any of us the login details.. May be the first came deserve the details first... or Send it to Arnav. If he is not ready to take it, give it to me...

    • 07/20/12 9:35am

      aubreyburkhart says:

      I chose Arnav, but thank you for your quick response!

  • avatar
    Last edited:
    07/20/12
    9:52am
    VValkov says:

    Hello,you should have a wpsc-products_page.php or products_page.php file in your theme folder.Open this file and add this code


    <?php if((get_option('hide_addtocart_button') == 0) && (get_option('addtocart_or_buynow') !='1')) : ?>
    <?php if(wpsc_product_has_stock()) : ?>
    <div class="wpsc_buy_button_container">
    <div class="wpsc_loading_animation">
    <img title="Loading" alt="Loading" src="<?php echo wpsc_loading_animation_url(); ?>" />
    <?php _e('Updating cart...', 'wpsc'); ?>
    </div><!--close wpsc_loading_animation-->
    <?php if(wpsc_product_external_link(wpsc_the_product_id()) != '') : ?>
    <?php $action = wpsc_product_external_link( wpsc_the_product_id() ); ?>
    <input class="wpsc_buy_button" type="submit" value="<?php echo wpsc_product_external_link_text( wpsc_the_product_id(), __( 'Buy Now', 'wpsc' ) ); ?>" onclick="return gotoexternallink('<?php echo $action; ?>', '<?php echo wpsc_product_external_link_target( wpsc_the_product_id() ); ?>')">
    <?php else: ?>
    <input type="submit" value="<?php _e('Add To Cart', 'wpsc'); ?>" name="Buy" class="wpsc_buy_button" id="product_<?php echo wpsc_the_product_id(); ?>_submit_button"/>
    <?php endif; ?>
    </div><!--close wpsc_buy_button_container-->
    <?php endif ; ?>
    <?php endif ; ?>


    code before </form><!--close product_form--> if there is this line

    Previous versions of this answer: 07/20/12 at 9:52am

This question has expired.



Gabriel Reguly had additional discourse to offer.

Francisco Javier Carazo Gil, Manoj Raj, aubreyburkhart voted on this question.



Current status of this question: Completed



Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.

If the asker does not get an answer then they have 10 days to request a refund.