cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Saved carts are not shown in backoffice for user profile

skotni
Explorer
0 Likes
1,374

It is observed that saved carts [carts with savetime] are not shown in backoffice. [Open a user profile and go to orders tab]

Is it an expected behavior?

What could be the customization if we need to enable saved carts in backoffice

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Likes

Hi ,

Saved carts information will be available in administration tab of user profile in back office.

Thanks,

Venki

skotni
Explorer
0 Likes

Thanks, Venkat. It's really helpful.

We could observe that if the cart has the save time then it is treated as saved cart else it is treated as a normal cart. Can you please provide more insight on how it was handled in backoffice[Customer->OrderTab to skip these saved carts].

Thanks in advance.

Former Member
0 Likes

Hi Sai Krishna Konti,

you need to add the below code in your custom extension of *-backoffice-config.xml and if you need to any customization needs do changes in that xml only. do build and update platfrom after adding this

   <context merge-by="type" parent="GenericItem" type="User"
         component="editor-area">
         <editorArea:editorArea
             xmlns:editorArea="http://www.hybris.com/cockpitng/component/editorArea">
             <editorArea:tab name="name="hmc.orders" position="8"">
                 <editorArea:section name="hmc.section.orders">
                     <editorArea:attribute qualifier="savedCarts"/>
                 </editorArea:section>
             </editorArea:tab>
         </editorArea:editorArea>
     </context>

   

Answers (2)

Answers (2)

0 Likes

There seems to be a bug in Hybris platform. This issue can be fixed as below.

  1. Define a collectiontype in items.xml e.g. <collectiontype code="SavedCarts" elementtype="Cart" type="list"/>
  2. In items.xml, add a dynamic attribute to B2BCustomer as below.
    <attribute qualifier="savedCarts" type="SavedCarts">
    <persistence type="dynamic" attributeHandler="savedCartsAttributeHandler"/>
    </attribute>
  3. Define the dynamic attribute handler that returns a list of saved carts.
  4. Perform build (ant clean all).
  5. Perform update from hAC console.
Former Member
0 Likes

Are you saving you cart token information for the registered user at order placement time?