New Landing How can we help? Themeforest Theme Support Neighborhood Affiliate Button Don't Change Name

Viewing 8 posts - 1 through 8 (of 8 total)
  • #309390
    fixius
    Member
    Post count: 16

    Hi, i have an issue with the button of affiliated products.

    As you can see in the img, it appears “ADD TO SHOPPING BAD”; but i wrote “Ver producto en la amazon store” in the product.

    How can i solve it? :S

    Cheers

    Attachments:
    You must be logged in to view attached files.
    #309663
    David Martin – Support
    Moderator
    Post count: 20834

    That’s odd, when testing I see this:

    Please can you disable all plugins leaving only Swift Framework and WooCommerce active.

    Can you also add your FTP details?

    Thanks.

    #309709
    fixius
    Member
    Post count: 16
    This reply has been marked as private.
    #309972
    fixius
    Member
    Post count: 16

    Finally i will not use affiliate products, but the problem now is that the normal products don’t translate the button: https://pentapop.com/producto/penta-gear/camiseta-pentagear/

    #310242
    David Martin – Support
    Moderator
    Post count: 20834

    Please install and activate the supplied child theme, inside the child theme functions.php file add this:

    	function sf_text_strings( $translated_text, $text, $domain ) {
    		//echo $translated_text;
    		switch ( $translated_text ) {
    			case 'Add to Shopping Bag' :
    			$translated_text = __( 'New button text', 'swiftframework' );
    			break;
    
    			case 'Add to cart' :
    			$translated_text = __( 'New button text', 'swiftframework' );
    			break;
    		}
    		return $translated_text;
    	}
    	add_filter( 'gettext', 'sf_text_strings', 20, 3 );
    #310386
    fixius
    Member
    Post count: 16

    Thx! It works now for the in-store products 🙂

    #310388
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Nice. Glad it’s sorted.
    Thanks David.

    -Rui

    #310389
    David Martin – Support
    Moderator
    Post count: 20834

    Marking as resolved.

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

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

License required for the following item
Login and Registration Log in · Register