Error send multiples same emails when complete shipping
-
Hello dear bagisto community, I have the following problem, it is not a problem in itself, notice when I complete a purchase process and the invoice is issued I receive 5 identical emails with the same thing where I can manipulate or search in which part that is configured to see what's happening.
-
Not able to reproduce. Have you done any customization?
Also, please let us know which Bagisto version you are using.
-
@devansh-webkul use Bagisto 2.0, this on 2 cases default and custom theme, and nothing customization special only data with default
-
For custom theme, what you have done actually, have you added mail related code in your custom theme?
-
@devansh-webkul Not only do I have it enabled for the customer to receive an email when they place a new order, but it sends me 3 emails and not 1
-
@devansh-webkul oh i find problem, when have multiples themes i mean default, store, myTheme, etc. etc and complete shipped system call event on all
-
Yes, we handle all the events, so you don't need to worry about that. You just need to place your view for the respective theme.
Our theme viewfinder will detect the current theme and replace your view accordingly.
-
@devansh-webkul said in Error send multiples same emails when complete shipping:
Yes, we handle all the events, so you don't need to worry about that. You just need to place your view for the respective theme.
Our theme viewfinder will detect the current theme and replace your view accordinglyYes, but the problem comes from the fact that the listeners do not discriminate by topic, they are selected and they are all invoked regardless of the topic. An unprofessional fix was to place a return on the rest of the events that invoke the sending of email when generating an order and only leave my one running. selected topic with this it is solved but it should be possible to execute each event in relation to the selected topic