• Resolved nickfr

    (@nickfr)


    hi there does your plugin has support for qtranslate x

    i have problem with the feed in the product title showing the [:en]title[:ru] another title[:]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Contributor Michel Jongbloed

    (@michel-jongbloed)

    Hi @nickfr,

    Currently it does not. It’s still on our todo list. We do support WPML though.

    As for the product title, you could use our wppfm_feed_item_value filter to remove the unwanted code from the title. Here you can find some information about how to use the wppfm_feed_item_value filter: https://gist.github.com/Auke1810/c62bb043926f539f9a99b418c06a3e6e

    Thread Starter nickfr

    (@nickfr)

    thanks i see that if i choose product title without variables it removes the [:el]
    and show only the greek title
    i want to use the value filter to do this for description as it has not this option
    i added in functions of chilf theme

    function alter_feed_item( $attributes, $feed_id, $product_id ) {
    
    	
    	if( $feed_id === '1' ) {
    		
    		
    		// this lines puts the text Dollar behind the price data
    		$attributes['price'] = $attributes['price'] . " Dollar";
    		
    		
    	}
    	
    	
    	// IMPORTANT! Always return the $attributes
    	return $attributes;
    }
    
    add_filter( 'wppfm_feed_item_value', 'alter_feed_item', 10, 3 );

    to test for example the currency
    but it does not do anything
    currency stays euro (im my feed it is euro)

    Plugin Author AukeJomm

    (@aukejomm)

    Are you using the paid version of the plugin @nickfr?

    Thread Starter nickfr

    (@nickfr)

    no but i will buy!
    could you help then remove
    [:el] greek description [:en] englishdescription [:]
    and only leave greek description?

    • This reply was modified 6 years, 3 months ago by nickfr.
    Plugin Author AukeJomm

    (@aukejomm)

    Then I think you have not updated the plugin to the latest version.
    If you update the wppfm_feed_item_value filter should work.

    Thread Starter nickfr

    (@nickfr)

    i have free version 1.12.1

    Plugin Author AukeJomm

    (@aukejomm)

    OK, are you sure you looked in feed id 1?
    Or remove the if( $feed_id === ‘1’ ) and see if it still is not working.

    
    function alter_feed_item( $attributes, $feed_id, $product_id ) {
    
    	
    	// this lines puts the text Dollar behind the price data
    	$attributes['price'] = "there should be this text displayd for each price attribute.";
    	
    	
    	// IMPORTANT! Always return the $attributes
    	return $attributes;
    }
    
    add_filter( 'wppfm_feed_item_value', 'alter_feed_item', 10, 3 );
    
    Thread Starter nickfr

    (@nickfr)

    thanks it works great
    i will buy plugin since i have 400 products
    any ideas how to achieve this
    [:el]title[:en]english[:]
    i want only to keep
    title
    i use this
    $attributes[‘description’] = str_replace( “[:en]”, “”, $attributes[‘description’] );
    but i need something like keep the left x first letters of the output after removing
    [:el], [:en] and [:]

    • This reply was modified 6 years, 3 months ago by nickfr.
    Plugin Author AukeJomm

    (@aukejomm)

    Hey @nickfr

    Not fully sure what you want but you can use

    $attributes['description'] = preg_replace("/(\W:e+n+\W|\W:e+l+\W|\W:\W)/", '', $attributes['description'] );

    instead of the str_replace.

    Plugin Contributor Michel Jongbloed

    (@michel-jongbloed)

    Hi @nickfr,

    Where you able to solve the issue and can we close your topic?

    Plugin Contributor Michel Jongbloed

    (@michel-jongbloed)

    Hi @nickfr,

    I hope we were successful in helping you resolve your issue with our Feed Manager plugin! Since we have not heard back from you in the past 2 weeks and we don’t want to leave tickets open forever, I will now be marking this support topic as resolved. However, if we still haven’t resolved your issue please reach out to us as we would be more than happy to further assist you!

    Thanks and have a great day!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘qtranslate support’ is closed to new replies.