Error in add-to-cart.php | WordPress.org

[ad_1]

Hello @debby78018,

Thanks for reaching out to WooCommerce Support.

This kind of problem is usually caused by a conflict with your theme or with another plugin. The best way to determine this is by running a full conflict test.

To test, you’ll first want to change the theme on your site to Storefront, then check to see if the issue is still present. If that resolves the issue, you’ll want to get in touch with your theme’s developer and see if they have an update or fix for you.

If changing the theme doesn’t help, you’ll want to deactivate all plugins except for WooCommerce and take a look. If that fixes the problem, re-enable the other plugins one by one (gradually), checking after each, to see where the issue is coming from.

Be sure you have a good backup in place of your full site and database. You can ask your host for backup functionality or you can consider using a service like Jetpack. If something goes wrong, you will be able to restore it.

I hope that helps! Let us know once you have done a conflict test!

Hi,

Thanks it is not a conflict it is due to the code in the file. I have resolved it

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer