Jump to content


Replying to How Can I Rename The Buy Now Button Wording?


Post Options

  or Cancel


Topic Summary

amandriguez3

Posted 17 February 2015 - 04:48 PM

Hi Elise,
I just edited my template and it worked for me, so I'm going to post here in case it can work for someone else...ofcourse it will have to be edited according to specific needs. I did mine by product ID since that worked for me. I made a cope of the super-widget-product and its subfolders to mychilddirectory/exchange/ so that the directory is mychilddirectory/exchange/super-widget-product/elements/purchase-options.php
Then I edited the code on that php file where the purchase options are looped in. I commented that out and then added my own conditions per product id and then change the label for buy now. I'm guessing this can also be done with type of product and also the add to cart button...etc. Hope this helps.

<?php do_action( 'it_exchange_super_widget_product_before_purchase_options_element' ); ?>
<div class="purchase-options">
<?php do_action( 'it_exchange_super_widget_product_begin_purchase_options_element' ); ?>


<?php

$id = it_exchange_get_the_product_id();

if ($id == 7510) {
it_exchange( 'product', 'purchase-options', array( 'add-to-cart-edit-quantity' => false, 'buy-now-edit-quantity' => false, 'buy-now-label'=>'Renew Now' ) );

} else if ($id == 7506){
it_exchange( 'product', 'purchase-options', array( 'add-to-cart-edit-quantity' => false, 'buy-now-edit-quantity' => false, 'buy-now-label'=>'Add Digital' ) );

}

?>

<?php //it_exchange( 'product', 'purchase-options', array( 'add-to-cart-edit-quantity' => false, 'buy-now-edit-quantity' => false ) ); ?>
<?php do_action( 'it_exchange_super_widget_product_end_purchase_options_element' ); ?>
</div>
<?php do_action( 'it_exchange_super_widget_product_after_purchase_options_element' ); ?>

douglamunyon

Posted 25 January 2014 - 01:56 PM

Is there a way to change the 'Buy Now' text in the child theme so it isn't overwritten with updates?

Elise Alley

Posted 26 November 2013 - 07:04 PM

Hi Ray,

We actually just released the Free Offers add-on, which you should find in your Toolkit Downloads.  You can use this with the Customer Pricing add-on, as well if you'd like, so you can change what the button says and allow the customer to select how much they'd like to donate on their own.

You can read more about the Free Offers add-on here:  http://ithemes.com/2013/11/20/add-free-offers-and-custom-url-tracking-to-your-exchange-store/

Let us know if you have any additional questions.

Thanks,

Elise

sixra2580

Posted 26 November 2013 - 06:59 PM

Elise,

Can the functionality to change this be added as a request. I'm using exchange for a charity, where a button reading "Donate Now" would be more appropriate.

Ray

Elise Alley

Posted 17 October 2013 - 10:27 AM

Hi Merv,

The label for the Buy Now button is in /api/theme/product.php on about line 772.  If you change this, you'll need to be aware that any updates to Exchange will overwrite your change, however.

Let us know if you have any other questions.

Thanks,

Elise

mervb

Posted 16 October 2013 - 11:32 PM

What function would i use to rename the Buy Now button to say

Hire Now

Cheers

Review the complete topic (launches new window)