The error with Amasty Reward point after registering B2B customer

Created by Support Agent, Modified on Sun, 19 Apr at 1:44 AM by Support Agent

Issue: 

We have the following environment: 

+ Magento 2.3.1, 

+ BSS_B2bRegistration extension version 1.1.6.

+ BSS_ForceLogin version 1.0.4. 

+ Amasty Reward Point


We have set a reward for customer registration, eg: 100 points for registration. 

If we have B2bRegistration disable, ForceLogin enable, everything works correctly and registration points are created to the customer's account after registration. 

If we have B2bRegistration enable (and set "Disable Regular Registration" to YES) and ForceLogin enable, then registration points will not be created at all.


Solution:


The root of problem: 

We have checked and found that this is caused because the Amasty module uses event customer_register_success and checks some rules to apply point when registering B2b customer. 

Whereas, our module Bss B2b Registration uses another event when registering B2b customer: "bss_customer_register_success"


Solution: 

We would suggest that you should change event in this file /app/code/Bss/B2bRegistration/Controller/Account/CreatePost.php into default event (reward point is applied when registering customer) 

Hence, please edit this file: /app/code/Bss/B2bRegistration/Controller/Account/CreatePost.php to get the reward point.


If you need any further assistance, please feel free to contact us.

We're more than happy to support you and let you get to know more about us.


BSS Commerce is a trusted Magento 2 extensions provider with 14+ years of experience, serving 75,000+ customers worldwide. We are an Adobe Commerce Solution Bronze Partner and a Select Magento Extensions Builder, reinforcing our expertise in the Magento ecosystem.


We specialize in developing 150+ high-quality Magento 2 extensions that enhance functionality, improve user experience, and support scalable growth. Our reputation is built on long-term partnerships, positive feedback, and proven performance-driven solutions.


Here are our best extensions:


Discover for more at: https://bsscommerce.com/magento-2-extensions.html 



Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article