Skip to content

Custom checkout fields notices and validation #2189

Description

@mihaijoldis

Added a random input field on the checkout and after filling everything in and getting to the payment page the error log shows

[01-Dec-2016 17:22:07 UTC] PHP Notice:  Undefined variable: field in D:\MAMP\htdocs\wpec-master\wp-content\plugins\WP-e-Commerce\wpsc-components\theme-engine-v2\helpers\form-validation.php on line 65

[01-Dec-2016 17:22:07 UTC] PHP Notice:  Undefined variable: value in D:\MAMP\htdocs\wpec-master\wp-content\plugins\WP-e-Commerce\wpsc-components\theme-engine-v2\helpers\form-validation.php on line 65

It also looks like if you make the field mandatory and leave it empty there is no validation.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions