I have configured all B2Bking plugin and it works fine but only on default language. If the B2B user after login, change de language of the web, the prices are the B2C ones.
I use WPML to translate the website.
If I want to get the price on each language, I have to edit every product in every language and add the B2B price (I do it that way because every product has his own B2B price, so I cannot do Dinamic Rule. )
Is there any way on config to apply the same price to other language when i insert it in a product in default language?
Otherwise, another option is that B2B users can only see the web in English (default language). I don't know if this is possible or not with your plugin.
B2BKing sets prices of products as "PRODUCT METADATA", so when using WPML, you should COPY over the metadata for the prices to the translated products.
In practice:
When you edit a product with WPML activated, you should be seeing something like this in the product page backend:
All these options such as "b2bking_regular_product_price_group_184" or "b2bking_sale_product_price_group_184" are the meta keys that control the pricing. You should set these to "Copy". By doing this, prices would be copied over automatically.
I logged in to your website and did some tests. Indeed I am seeing the same problem as you, meta data is not being copied.
I tested in my local site with the same technique and here it is working normally.
I checked the database in your site. For the original (english) product, the metadata is fine:
But for the translated products, it is not copied:
If I add the data manually in the database, it works fine and price is set.
So my opinion is that this is some kind of issue with WPML - it does not copy the metadata for some reason. B2BKing works fine if the metadata is added to the database.
My suggestion going forward would be to:
1. Try testing with all plugins except B2BKing,WPML,WooCommerce disabled. It could be a plugin conflict or some kind of error preventing WPML from copying the data.
2. If that doesn't help, I would recommend contacting WPML support as they will know their plugin and what could cause this best.
Hi
I have configured all B2Bking plugin and it works fine but only on default language. If the B2B user after login, change de language of the web, the prices are the B2C ones.
I use WPML to translate the website.
If I want to get the price on each language, I have to edit every product in every language and add the B2B price (I do it that way because every product has his own B2B price, so I cannot do Dinamic Rule. )
Is there any way on config to apply the same price to other language when i insert it in a product in default language?
Otherwise, another option is that B2B users can only see the web in English (default language). I don't know if this is possible or not with your plugin.
Thanks
Hi Marc,
B2BKing sets prices of products as "PRODUCT METADATA", so when using WPML, you should COPY over the metadata for the prices to the translated products.
In practice:
When you edit a product with WPML activated, you should be seeing something like this in the product page backend:
All these options such as "b2bking_regular_product_price_group_184" or "b2bking_sale_product_price_group_184" are the meta keys that control the pricing. You should set these to "Copy". By doing this, prices would be copied over automatically.
Let me know if you can get this to work,
Kind regards,
Stefan
To add more context to the other message.
Those are found under "Multilingual Content Setup", under "Custom Fields"
Thank you for the credentials,
I logged in to your website and did some tests. Indeed I am seeing the same problem as you, meta data is not being copied.
I tested in my local site with the same technique and here it is working normally.
I checked the database in your site. For the original (english) product, the metadata is fine:
But for the translated products, it is not copied:
If I add the data manually in the database, it works fine and price is set.
So my opinion is that this is some kind of issue with WPML - it does not copy the metadata for some reason. B2BKing works fine if the metadata is added to the database.
My suggestion going forward would be to:
1. Try testing with all plugins except B2BKing,WPML,WooCommerce disabled. It could be a plugin conflict or some kind of error preventing WPML from copying the data.
2. If that doesn't help, I would recommend contacting WPML support as they will know their plugin and what could cause this best.
Kind regards,
Stefan
Hi
Thank you for check that Stefan
I'll try what you propose and i'll contact WPML too to check whats going wrong on this site.
Best regards