badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

adding filter in functions.php

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #21037
    Jörg
    Participant

    hi there,

    i wanted to change the add to cart button on the homepage. so i need to add a filter into the functions.php file right? (because there is no custom-functions.php)

    but when i add following filter:
    ………………………………
    //Change Woocommerce add to cart button text
    add_filter( ‘add_to_cart_text’, ‘woo_custom_cart_button_text’ );
    add_filter( ‘woocommerce_product_add_to_cart_text’, ‘woo_custom_cart_button_text’ );
    add_filter(‘woocommerce_product_single_add_to_cart_text’, ‘woo_custom_cart_button_text’);
    function woo_custom_cart_button_text() {
    return __( ‘Buy Now’, ‘woocommerce’ );
    }

    ……………………………….

    nothing happens.. the button text stays the same. like the filter has been ignored.
    Can you help why? or what my mistake is or is this even possible with the interface pro theme?

    regards
    joerg

    #21152

    Hi Jörg,
    Our theme is not woocommerce compatible and you may have to edit and create new files for this to make it compatible. Just adding some code will not work and possibly will break other pages. So we request you to hire someone who is capable of making such changes.
    For more refrence
    http://docs.woothemes.com/document/third-party-custom-theme-compatibility/

    Thank you!

    #21364
    Jörg
    Participant

    ok thank you, i am working with a developer on this topic.

    cheers,
    joerg

    #21395

    That’s great Jörg

    Thank you!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.