WooCommerce Price amount is showing $0 instead of correct item price.
-
I am currently turning my catalog website into an e-commerce website. When the website was first made a catalog, WooCommerce and YITH WooCommerce Catalog Mode were installed. The YITH plugin was installed to remove the prices and buying functions. I removed the YITH plugin now so that I could add those functions back but things haven’t been working as expected.
WooCommerce Price amount is showing $0 instead of correct item price, which in this case should be $10. However, in the Products section in WP Admin, the product price shows up correctly.
I tried the following but haven’t been able to fully fix the issue:
1. Initially the price didn’t even show up, but I went to the theme.1.css file and changed the display:none for the “woocommerce-Price-amount” class to display:block and then the price showed up but it’s displayed as as $0 instead of $10.
2. I went to the wp-content/plugins/woocommerce/includes/wc-formatting-functions.php file and checked the code for the “woocommerce-Price-amount” class (function starts at line 559) and it appears to be correct, per my understanding.
3. I’ve deactivated all plugins except the WooCommerce ones. I even reinstalled the WooCommerce ones again.
4. I updated all WooCommerce plugins and the page theme.
5. I deleted all my custom pages that were related to the shopping/e-commerce and then recreated those pages using WooCommerce/Status/Tools and Create default WooCommerce pages.
I’ve also tried inputting other solutions I’ve found (such as add_filters, functions, etc.) into the main Theme functions.php file in the Theme Editor but nothing.
The only issue I’ve been having is with the price across all pages, everything else is working after the conversion.
I believe the YITH plugin affects certain database tables when initially installed and configured, but I couldn’t figure out which tables. Maybe the issue is that even though the plugin was removed, the tables were not reconfigured properly to remove all traces of the plugin?
Any help would be very appreciated. I can send whatever info you need, please just ask. Thanks in advance!
The page I need help with: [log in to see the link]
- The topic ‘WooCommerce Price amount is showing $0 instead of correct item price.’ is closed to new replies.