2
0 Comments

Customer zone implemented

Feature - Customer Zone [beta]

Explanation

Customers can now see their order history overview + detail

They can also update their password now.

It took a bit longer, because these were my first real DDD-modules. I spend a considerable amount of time ( 2-3 evenings + 1 day) to fine-tune the module architecture.

One of the nice things that was implemented, was using the Agregate ( DDD ) and updating the EF-entity ( = Updating my SQL Database). So only the properties that the Aggregate has were updated in the database.

The code for this is now ridiciously simple and 3 lines long:

public async Task Update(CustomerAggregate customer)
    {
        var entity = await m_db.Customers.FindAsync(customer.Id.Value);
        var updated = m_mapper.Map<CustomerAggregate, Shop.Models.Customer>(customer, entity); //Update the entity with the customer Aggregate values

        await m_db.SaveChangesAsync();
    }

Bugfixes/enhancements [ Prod ]

  • Improved sharing of pages through Facebook [enhancement]
  • Registered accounts outside of the "checkout path" could have an issue with their orders [bugfix]
  • Checkout out with a mobile sees their order summary now, which was hidden in the past [enhancement]
  • Some minor layout changes
, Founder of Icon for Shop't
Shop't
on May 26, 2020