Giter Site home page Giter Site logo

medusa-plugin-mailjet's People

Contributors

hemann55 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

medusa-plugin-mailjet's Issues

Variables: undefined

When I test a new user creation first I get: info: Processing customer.created which has 0 subscribers

But it seems to actually trigger the mailjet plugin which however gives me: Variables: undefined. How do I get the first and last name?

support invite.create

Do you plan on supporting the invite.create event? This is emitted when a user is invited to become an admin user?

How to use template language?

Please provide some examples of using a template language so that we can incorporate various data, such as customer first name, last name, and order total, into an email template.

Prevent account registration email from being sent to guest users upon order creation

Description:

I've noticed a problem with the customer.create event that triggers an account registration email. Specifically, when a user with the email [email protected] places an order as a guest, they receive an account registration email, even though they have not created an account. This becomes problematic when the same user decides to create an account at a later time (using the same email), as they will receive the same account registration email again, leading to a suboptimal user experience.

Steps to reproduce:

  1. As a guest user with email [email protected], create an order.
  2. Observe that an account registration email is sent to [email protected].
  3. As [email protected], create a new account.
  4. Observe that the same account registration email is sent to [email protected] again.

Expected behavior:

The account registration email should only be triggered when customer.has_account is true. In the steps above, the email should not be sent at step 2, but should be sent at step 4.

Suggested solution:

Modify the event trigger conditions for sending the account registration email to include a check for customer.has_account being true.

Please let me know if any additional information is required. Thank you!

Help to integrate mailjet plugin

Hello!
I am trying to integrate medusa-plugin-mailjet to my Medusa backend but I have problems

  1. When I try to send emails for order placed events. I get the following error:

image

  1. When I try to invite users. I get the following: Processing invite.created which has 0 subscribers

I would be very grateful if you could help me.

CONFIGURATION DETAILS

  • Plugin configuration
{
    resolve: `medusa-plugin-mailjet`,
    options: {
      public_key: MAILJET API KEY,
      private_key: MAILJET SECRET KEY,
      from: "Hello [email protected]",
      order_placed_template: 1234567,
      invite_created_template: 1234568,
    },
  }
  • Module configuration
 modules: {
    eventBus: {
      resolve: "@medusajs/event-bus-redis",
      options: {
        redisUrl: process.env.EVENTS_REDIS_URL,
      },
    },
  },

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.