• Resolved wildfernsthailand

    (@wildfernsthailand)


    Dear Support,

    Ive been enjoying your plugin, its very simple to use.

    I have run into a problem where i have 2 languages (WPML) in my website and the plugin generates a single feed with products and their translations, Usually this would not be a problem but I am using the Feed for facebook Catalogue.

    The problem is that facebook does not allow item ID to be duplicated. so ive been trying to set rules to change the ID to SKU + Language code. I have tried several variables/conditions such as WPML_Language, ive even searched in my database what the values are (en for english, th for thai) but it doesnt work.

    looking at the WPML documentation it seems that they use

    language_code – language code of the item
    source_language_code – if translated, the language of the original item
    (https://wpml.org/documentation/support/wpml-tables/)

    but im not sure how to get your plugin to look these up and separate the products using them.

    The other obvious solution is to buy your premium plugin and remove all the items that are of another language, but if it also uses only WPML_Language then im afraid that it also might not work.

    SO for the meanwhile ive just made the ID point to the name of the product (because they have different names in each language) but have been rejected by facebook because they too long, maybe i will try post id next as a temporary workaround.

    I also have the paid version of WPML but i cant seem to find the addon in the downloads section for this plug in? perhaps its not necessary anymore?

    The page I need help with: [log in to see the link]

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

    (@michel-jongbloed)

    Hello @wildfernsthailand,

    If I understand you correctly, you want to make a product ID that is specific for a product in a different language.

    A solution might be to use the SKU plus a static value and just use your own language code in the static value (eg. ENG or THA).

    So to do this select the “Combine source fields” option as source and set the first one to “SKU”, then a separator (like the dash) and then “Fill with a static value” where you then use your own language code.

    Let me know if that worked.

    Thread Starter wildfernsthailand

    (@wildfernsthailand)

    A solution might be to use the SKU plus a static value and just use your own language code in the static value (eg. ENG or THA).

    Ok so ive tried this, and it would make all of the products to come out with the demarkation. so english would be BVC-TH and Thai would also output BVC-TH.

    I just want to know if the parameter WPML_Language actually does anything?

    Thread Starter wildfernsthailand

    (@wildfernsthailand)

    I have used the POST ID parameter instead of SKU it has given me a Unique ID for all products however the ID is something that I dont have any reference to. For example BEE VENOM CREAM would be BVC but now its 651 or something like that.

    Would be nice to have something that I can refer to such as BVC-THA for example.

    Plugin Contributor Michel Jongbloed

    (@michel-jongbloed)

    Ok, I thought you would make a specific feed for each language. That is what most users do, they make a feed for each language. In that case you could set the feed parameters such that the English feed has the ENG extension and the Thai feed THA.

    That way you can also keep the SKU as id as that is a better reference to the product?

    But if I’m right I think in your case the issue that you can’t identify the language of a product, is that correct?

    I’m not sure what the WPML_Language parameter does. It’s not generated by our plugin. I guess it’s a parameter from WPML. You could search in your postmeta table if you can find the WPML_Language meta key there, and see what values it stores (if at all).

    Our premium plugins support WPML out of the box, so that’s of course also an option to try. There is a 30 days money back guarantee should it not work.

    Thread Starter wildfernsthailand

    (@wildfernsthailand)

    Our premium plugins support WPML out of the box, so that’s of course also an option to try. There is a 30 days money back guarantee should it not work.

    So this is what ive been missing. This wasn’t clear to me even after going through the plugin documentation and forums.

    Okay so this is just how the free version of the plugin is.

    Thank you so much for your quick responses and detailed explanations!

    Plugin Contributor Michel Jongbloed

    (@michel-jongbloed)

    Thanks for mentioning it. You’re right, looking at our documentation and our web site it’s not clear that the premium version supports WPML. We will change that as soon as feasible.

    You’re welcome!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Feeds by language (Facebook)’ is closed to new replies.