Category Archives: Wordpress

Remove prices from WooCommerce

We can simple use a plugin for it. YITH WooCommerce Catalog Mode can do the work.

Although this might not be enough if you want to remove prices from Google results.

Add the following to your functions.php located at your theme page.

add_filter( 'woocommerce_structured_data_product_offer', '__return_empty_array' );

Test your page results according to Google at
https://search.google.com/test/rich-results?hl=pt-br

Google Support – About sale price annotations
https://support.google.com/merchants/answer/9017019?hl=en&sjid=11620160989609311719-EU

Google Merchant Center
https://www.google.com/retail/solutions/merchant-center/

Admin\WcPayWelcomePage’ not found

Warning: Class 'Automattic\WooCommerce\Internal\Admin\WcPayWelcomePage' not found in /home/group/public_html/domain.pt/wp-content/plugins/woocommerce/src/Admin/Features/Features.php on line 377

Parse error: syntax error, unexpected ')' in /home/group/public_html/domain.pt/wp-content/plugins/woocommerce/src/Internal/Admin/WcPayWelcomePage.php on line 322

Try to rename woocommerce folder.
Login to wp-admin and update woocommerce, then undo the rename and reactive woocommerce.

PHP Fatal error: Uncaught Error: Call to undefined method WP_Textdomain_Registry::reset() translation/classes/MO/Hooks/LanguageSwitch.php:139

PHP Fatal error: Uncaught Error: Call to undefined method WP_Textdomain_Registry::reset() in /home/XXXXX/public_html/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php:139

wpml.org/forums/topic/the-wpml-string-translation-giving-error/

You need to update your WPML.
Somehow the site lost the WPML key.

Add it on your-domain.com/wp-admin/plugin-install.php?tab=commercial