Wrong data structure
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page pleaseIf you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.
Quote from 50lmyr on February 25, 2022, 22:27Hello,
I noticed one small bug made by the plugin. Wrong data is generated in class-wc-structured-data.php when the currency changes.
This error can be produced in the following way:
In WOOCS set Is Multiple Allowed to No, go to front end, switch currency and monitor your micro data ( application/ld+json ).
It will always show price values in default currency, but "priceCurrency" will be another currency.
If you enable is Multiple Allowed everything will working fine.
Hello,
I noticed one small bug made by the plugin. Wrong data is generated in class-wc-structured-data.php when the currency changes.
This error can be produced in the following way:
In WOOCS set Is Multiple Allowed to No, go to front end, switch currency and monitor your micro data ( application/ld+json ).
It will always show price values in default currency, but"priceCurrency" will be another currency.
If you enable is Multiple Allowed everything will working fine.
Quote from Pablo Borysenco on February 28, 2022, 11:14Hello
Is Multiple Allowed t= No - plugin does not change product data. Price conversion works only for front-end (in wc_price function)
Hello
Is Multiple Allowed t= No - plugin does not change product data. Price conversion works only for front-end (in wc_price function)
Quote from 50lmyr on February 28, 2022, 12:42Hello,
thanks for answer.
Data structure is for front-end: schema.org/@graph. It shows wrong data on the front end.
However, here is the image of the issue (is Multiple Allowed to No and wrong data structure):
Price should be ~$334
Hello,
thanks for answer.
Data structure is for front-end: schema.org/@graph. It shows wrong data on the front end.
However, here is the image of the issue (is Multiple Allowed to No and wrong data structure):

Price should be ~$334
Quote from 50lmyr on February 28, 2022, 13:05WOOCS probably change price after WC_Structured_Data object is called in /woocommerce/includes/class-wc-structured-data.php so it displays the wrong structured data on the front-end.
WOOCS probably change price after WC_Structured_Data object is called in /woocommerce/includes/class-wc-structured-data.php so it displays the wrong structured data on the front-end.
Quote from Pablo Borysenco on March 1, 2022, 11:05Hello
as I wrote before - https://c2n.me/4f4q024.png - and these prices - https://c2n.me/4f4q5As.jpg - are not processed by the function wc_price()
Hello
as I wrote before - https://c2n.me/4f4q024.png - and these prices - https://c2n.me/4f4q5As.jpg - are not processed by the function wc_price()
Quote from 50lmyr on March 1, 2022, 12:14Hello Pablo Borysenco
thanks for your reply.
I understand what you're talking about.
I just wanted to mention how serious this problem can be, especially when it comes to SEO optimization. When this problem occurs, the Google Merchant account will be suspended almost instantly.
Engines are reading the wrong structural data, so there will surely be penalties. The algorithm will surely recognize the wrong prices for the wrong currencies.
This also applies to all SEO plugins for WordPress, unless they do not use WC_Structured_Data, but generate a new structure (which is less likely).
Basically with WOOCS shows user prices for different currencies, but for search engines plugin are showing the wrong prices. If option "is Multiple allowed" set to Yes there will be no problem, but many users use only one currency for transaction and the rest are just informative.
I solved this problem in a dirty way (with ob_start, search and replace with preg_replace), but to draw attention to this problem, which is not so small as it looks like.
Best regards.
Hello Pablo Borysenco
thanks for your reply.
I understand what you're talking about.
I just wanted to mention how serious this problem can be, especially when it comes to SEO optimization. When this problem occurs, the Google Merchant account will be suspended almost instantly.
Engines are reading the wrong structural data, so there will surely be penalties. The algorithm will surely recognize the wrong prices for the wrong currencies.
This also applies to all SEO plugins for WordPress, unless they do not use WC_Structured_Data, but generate a new structure (which is less likely).
Basically with WOOCS shows user prices for different currencies, but for search engines plugin are showing the wrong prices. If option"is Multiple allowed" set to Yes there will be no problem, but many users use only one currency for transaction and the rest are just informative.
I solved this problem in a dirty way (with ob_start, search and replace with preg_replace), but to draw attention to this problem, which is not so small as it looks like.
Best regards.
Quote from Pablo Borysenco on March 1, 2022, 14:12Or you can in file - \wp-content\plugins\woocommerce-currency-switcher\classes\woocs.php - add this code - https://c2n.me/4f4xvJZ.png
add_filter('woocommerce_structured_data_product_offer', array($this, 'structured_data_product_offer'), 99, 3);
Or you can in file - \wp-content\plugins\woocommerce-currency-switcher\classes\woocs.php - add this code - https://c2n.me/4f4xvJZ.png
add_filter('woocommerce_structured_data_product_offer', array($this, 'structured_data_product_offer'), 99, 3);
Quote from 50lmyr on March 1, 2022, 14:35Thanks for suggestion.
I think it will solve the problem partially - it will always show default price with default currency (which is ok).
The only problem would be if the engine detected prices in multiple currencies. But after all, this is a better solution than before.
Thanks for suggestion.
I think it will solve the problem partially - it will always show default price with default currency (which is ok).
The only problem would be if the engine detected prices in multiple currencies. But after all, this is a better solution than before.
Quote from Pablo Borysenco on March 2, 2022, 10:25Hello
Welcome;)
Hello
Welcome;)