Magento CE :: Discount on First Order?

Magento CE :: Discount on First Order?

August 12, 2026 · Illustrated author avatarBy Stefan Bogdanescu
Magento CE :: Discount on First Order?

Offering a Discount on First Order in Magento CE

In Magento Commerce Edition (CE), giving customers a discount on their first order requires a combination of setting up customer groups, promotional rules, and some custom code. Here’s a step-by-step guide to achieve this:

Step 1: Create Customer Group for New Accounts

First, create a new customer group that will be assigned to all new signups.

  1. Log in to your Magento admin panel.
  2. Navigate to Customers > Customer Groups.
  3. Click on “Add New Customer Group.”
  4. Enter a name (e.g., “New Customers”).
  5. Set the tax class and click Save.

Step 2: Assign New Group to New Accounts

Next, write a custom script to automatically assign new customers to this group during registration.

// File path: app/code/Vendor/Module/etc/events.xml
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:event:etc_events.xsd">
    <event name="customer_register_success">
        <observer name="assign_new_customer_group" instance="Vendor\Module\Model\Observer\AssignNewGroup"/>
    </event>
</config>

// File path: app/code/Vendor/Module/Model/Observer/AssignNewGroup.php
public function execute(\Magento\Framework\Event\Observer $observer)
{
    $customer = $observer->getCustomer();
    $customer->setGroupId(1); // Replace 1 with your new group ID
    $customer->save();
}

Step 3: Set Up Promotional Rule

Now, create a promotional rule that applies the discount to customers in our “New Customers” group.

  1. Navigate to Marketing > Promotions > Cart Price Rules.
  2. Click on “Add New Rule.”
  3. Enter a name (e.g., “First Order Discount”).
  4. Set the following:
    • Website: All Websites
    • Customer Group: “New Customers”
    • Coupon Code: Leave blank for automatic discount
  5. Under Actions, set:
    • Apply: Fixed amount discount ($X)
    • To Discount Amount: The desired discount value

Step 4: Configure Promotional Rule Application

To ensure the rule applies to first-time buyers only, you can use a custom condition.

  1. Click on “Add.”
  2. Select “Customer’s First Order” and set the condition to “is equal to” and enter 1.
  3. Set Stop further rules processing to Yes.

Conclusion

By following these steps, you should now be able to offer customers an automatic discount on their first order in Magento CE. This setup combines native features with a bit of custom code for assigning the customer group during registration.

Remember to replace “Vendor” and “Module” in the PHP examples with your actual vendor name and module directory name.

For more advanced discounts and promotions, consider exploring Laravel Company’s professional services for expert guidance and implementation.

Extensions Admin Configuration Orders

Our network