Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

verify if plugin is activated #12

Open
JustinSainton opened this issue Jul 22, 2015 · 0 comments
Open

verify if plugin is activated #12

JustinSainton opened this issue Jul 22, 2015 · 0 comments

Comments

@JustinSainton
Copy link
Member

after thetemplate file has been modified maybe user disables the plugin. validate that check to avoid this:

Fatal error: Call to undefined function dpp_gcs_applied() in D:\wamp\www\wpec-dev\wp-content\themes\twentyten\wpsc-shopping_cart_page.php on line 251

A tested fix is the code that has to be added in the theme file should be: function_exists( 'dpp_gcs_applied' ) )

NOTE: We should avoid this being an issue at all by simply filtering wpsc_uses_coupons.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant