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

[3.1.0.0_b] Affiliate register adds customer_approval duplicate #7150

Closed
howdu opened this issue Jan 15, 2019 · 3 comments
Closed

[3.1.0.0_b] Affiliate register adds customer_approval duplicate #7150

howdu opened this issue Jan 15, 2019 · 3 comments

Comments

@howdu
Copy link
Contributor

howdu commented Jan 15, 2019

When affiliate register with both customer group and affiliate require approval, then there are two rows added to customer_approval table.

Both methods addCustomer and addAffiliate insert into customer_approval.

I think there should be 'type' parameter passed to addCustomer so there's a way of knowing what 'type' of customer is being added.

@howdu
Copy link
Contributor Author

howdu commented Jan 15, 2019

Also affiliate approval email contains wrong store url: index.php?route=account/loginindex.php?route=account/login

File: admin/controller/mail/affiliate.php

@howdu
Copy link
Contributor Author

howdu commented Jan 15, 2019

Can't explode an array :) catalog/controller/mail/affiliate.php

$emails = explode(',', (array)$this->config->get('config_mail_alert_email'));

@howdu
Copy link
Contributor Author

howdu commented Jan 25, 2019

Other affiliate issues remain:

  1. If both customer group and affiliate require approval, then there are two rows added to customer_approval table.
  2. affiliate approval email contains wrong store url: index.php?route=account/loginindex.php?route=account/login

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

2 participants