New Landing How can we help? Themeforest Theme Support Neighborhood Change button text to "buy" using css neighbourhood theme

Viewing 2 posts - 1 through 2 (of 2 total)
  • #93090
    Holly & Trisha
    Member
    Post count: 54

    Hi There,

    I have looked at all the other threads regarding this topic and they were unhelpful. All I want to know if how to change my button text on product pages to “buy”

    thanks

    Trisha

    #93114
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    You’ll need to edit a few instances, see below”

    neighborhood/woocommerce/loop/add-to-cart.php:
       46  				if ( $product->is_purchasable() ) {
       47  					$link['url'] 	= apply_filters( 'add_to_cart_url', esc_url( $product->add_to_cart_url() ) );
       48: 					$link['label'] 	= '<i class="icon-plus"></i>' . apply_filters( 'add_to_cart_text', __( 'Add to shopping bag', 'swiftframework' ) );
       49  					$link['class']  = apply_filters( 'add_to_cart_class', 'add_to_cart_button' );
       50  				} else {
    
    neighborhood/woocommerce/single-product/add-to-cart/simple.php:
       43   	
       44  	 	<?php 
       45: 	 		$button_text = '<i class="fa-plus"></i>' . apply_filters('single_add_to_cart_text', __("Add to shopping bag", "swiftframework"), $product->product_type);
       46  	 	?>
       47  	 	
    
    neighborhood/woocommerce/single-product/add-to-cart/variable.php:
       89  				<?php woocommerce_quantity_input(); ?>
       90  				<?php 
       91: 					$button_text = '<i class="fa-plus"></i>' . apply_filters('single_add_to_cart_text', __("Add to shopping bag", "swiftframework"), $product->product_type);
       92  				?>	
       93  				<button type="submit" class="single_add_to_cart_button button alt"><?php echo $button_text; ?></button>
       ..
      188  			<?php woocommerce_quantity_input(); ?>
      189  			<?php 
      190: 				$button_text = '<i class="fa-plus"></i>' . apply_filters('single_add_to_cart_text', __("Add to shopping bag", "swiftframework"), $product->product_type);
      191  			?>			
      192  			<button type="submit" class="single_add_to_cart_button"><?php echo $button_text; ?></button>

    – Kyle

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register