OneIdentity / IdentityManager.Imx

HTML5 source code for Identity Manager web apps
Other
31 stars 121 forks source link

Bringing back the shopping cart icon in the masthead #153

Closed NielsDeGroot closed 3 months ago

NielsDeGroot commented 3 months ago

Hello @hannoquest

In this post you hinted that shopping cart in the masthead might return in a future release. Can you confirm if this is still the case and if so for which release 9.3?

Shopping cart icon/component OOTB not in top right corner

The customer still wants to bring back the shopping cart. Identical in behavior to webdesigner: Shopping cart immediately changes color when product is added to empty cart and changes back to default color when cart is empty.

Since the masthead component is in the qbm library and all the shopping cart logic is in the qer library. I'm kind of struggling how to implement this logic without making the qbm library dependent on the qer library.

Regards, Niels

hannoquest commented 3 months ago

HI @NielsDeGroot ,

This feature is integrated into the 9.3 release.

The masthead is part of qbm but you can add an extension directive into the HTML, which acts as a placeholder for child modules.

  <imx-ext id="mastheadButton"></imx-ext>

In the shopping cart module initializer, we use the ExtService to register an extension for this ID:

    this.extService.register('mastheadButton', {
      instance: ShoppingCartButtonComponent /* component to display */
    });