Rates and wpml

Hi there.

I have found that when I add a Woocommerce product to the rates, referrals are only recorded if the customer is in the correct language in the shop. No referrals are recorded for translated products because they have a different ID than the one stored with the rates. How can that be solved?

Best regards

Guido

8 Responses to Rates and wpml

  1. George February 2, 2021 at 6:45 pm #

    Hi Guido,

    If your products total is low, then yes you can use one general rate, one rate per tiered level commission and then set 0 rate for all the other products ( including one rate per language )

    Cheers

  2. George January 26, 2021 at 5:12 pm #

    Hi Guido,

    May I ask what is the general idea here, what you’re trying to achieve? In case there is an easier way to do it and avoid setting up all these rates.
    BTW, regarding SKU it might be a unique field but it’s also an optional field, so it cannot be safely used to distinguish a product.

    Kind regards,
    George

    • GMT-IT January 31, 2021 at 11:17 am #

      Hello George.
      I want to pay the same commissions for a product in all languages. All in 8 groups up to 6 levels. I don’t want to pay any commission for another product. It would be enough if the SKU could be created optionally.
      If you leave Object and Term empty, all Woocommerce products are recorded. I have now done so that I have created 0% rates for the products that are not provisioned for all groups and levels.

  3. George January 22, 2021 at 9:37 am #

    Thanks Guido, I’ll keep that in mind.

    Cheers

  4. GMT-IT January 21, 2021 at 10:51 pm #

    Hello George.

    Thanks for the hint. So I would have to create 31 rates for 7 languages. 🙁

    It would be better if you consider using the product’s unique SKU instead of the ID. The SKU is the same in all languages.

    Best regards

    Guido

  5. George January 21, 2021 at 2:08 pm #

    Hey Guido,

    You can work this out by adding different rates for each language. Once in Rates switch between languages and then add as many rates as required for the same product in each language.

    This is happening because when you set a rate for a product, the products list will only show the ones for the active language. Each product in turn has a unique ID for each translated version of it. In other words a product with ID 1300, will have a different ID in each of the other languages that is translated to.

    As a consequence when the referral is recorded will look for a rate set for this specific product id and if the rate has been set for only one language then the system will obviously not find a matching object for the user’s selected language.

    Kind regards,
    George

    • GMT-IT January 23, 2021 at 4:18 pm #

      Hello George.

      So I’ve tested it now. I have to apply 217 rates for a single product in 7 groups. If I only create the Woocommerce integration with the rates without a term or object, it works for all products. How can I exclude individual products from referrals? Applying 2170 rates to 10 products doesn’t make sense, right?

  6. George January 20, 2021 at 2:03 pm #

    Hi Guido,

    Thanks for mentioning your notice, I’ll have a look in this use case and keep you posted.

    Kind regards,
    George

We use cookies to optimize your experience on our site and assume you're OK with that if you stay.
OK, hide this message.

Affiliates · Contact · Jobs · Terms & Conditions · Privacy Policy · Documentation · Downloads · Useful Plugins · My Account

Share