Your cart is currently empty!
Rates and wpml
—
by
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
Posted in Affiliates Enterprise
Comments
8 responses to “Rates and wpml”
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
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
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.
Thanks Guido, I’ll keep that in mind.
Cheers
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
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
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?
Hi Guido,
Thanks for mentioning your notice, I’ll have a look in this use case and keep you posted.
Kind regards,
George