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

Incorrect Billing City Set to Postcode in WooCommerce Subscriptions When Changing Payment Gateway #700

Open
goran72 opened this issue Oct 15, 2024 · 0 comments
Labels
type: bug The issue is a confirmed bug.

Comments

@goran72
Copy link

goran72 commented Oct 15, 2024

In the WooCommerce Subscriptions core file class-wc-subscriptions-change-payment-gateway.php, located in woocommerce-subscriptions-core/includes, there is an error on line 297. The billing city is incorrectly being set to the postcode value when changing the payment gateway for a subscription. The line reads:

$subscription_billing_city = $subscription->get_billing_postcode();

It should be:

$subscription_billing_city = $subscription->get_billing_city();

Regards,

@goran72 goran72 added the type: bug The issue is a confirmed bug. label Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug The issue is a confirmed bug.
Projects
None yet
Development

No branches or pull requests

1 participant