cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a link under My account tab?

former_member1354369
Participant
0 Kudos

Hello Hybris expets,

Could you please guide me how to create a new link under My Account tab. In My Account there are Profile, Address Book,Order History....ect., In the similar way i want to add new customize link for site.

Guide what files are required to implement.

Provide some dummy data to add link.

Appreciate your help.

Thanks in Advance,

Regards R venkata karthik

Accepted Solutions (1)

Accepted Solutions (1)

former_member621020
Active Participant
0 Kudos

Hi venkata,

I have answered to a similar question. Please refer the below link (accepted answer). https://answers.sap.com/questions/12759112/can-anyone-help-me-to-understand-the-impex-files-h.html?c...

In here I have shown "how to add a new link (Reward Points) under My account tab".

former_member1354369
Participant
0 Kudos

Hi Madhavi, Thanks for the above link.

I followed the same , but am getting below as error

UPDATE ContentPage;catalogVersion(CatalogVersion.catalog(Catalog.id[default=powertoolsContentCatalog]),CatalogVersion.version[default=Staged])[default=powertoolsContentCatalog:Staged][unique=true];uid[unique=true];previewImage(code, catalogVersion(CatalogVersion.catalog(Catalog.id[default=powertoolsContentCatalog]),CatalogVersion.version[default=Staged])[default=powertoolsContentCatalog:Staged]) ,,,no existing item found for update;;profile;profilePagePreview

former_member1354369
Participant
0 Kudos

In continue.....

18.10.2016 14:54:01: ERROR: line 3 at main script: Can not resolve any more lines ... Aborting further passes (at pass 3). Finally could not import 1 lines! 18.10.2016 14:54:01: ERROR: line 3 at main script: Can not resolve any more lines ... Aborting further passes (at pass 3). Finally could not import 1 lines!

Here is my code added for cms-content.impex file :

########## MY ACCOUNT START

2. add account related cms items for responsive

former_member1354369
Participant
0 Kudos

In continue....

;;TraceSessionDetailsLink;TraceSessionDetailsLink;/my-account/trace-sesion;TraceSessionDetailsLink;

create navigation root node for my account & child nodes for the root node

;TraceSessionNavNode;;TraceSessionNavNode;MyAccountNavNode;;TraceSessionNavNode

create cms navigation entry for navigation child nodes

;TraceSessionNavNodeEntry;;TraceSessionNavNodeEntry;TraceSessionNavNode;TraceSessionDetailsLink;

former_member1354369
Participant
0 Kudos

In continue....

cms-content_en.impex file:

;;TraceSessionDetailsLink;"TraceSession Details"

could u pls go through it & let me know any changes are required.

former_member1354369
Participant
0 Kudos

Hi Madhavi,

The above impex files throwing an error as posted previous.

what else need to change from java & jsp's .

Could you pls suggest me.

Thanks in Advance,

Regards R venkata karthik

Answers (2)

Answers (2)

former_member1354369
Participant
0 Kudos

Hi Madhavi,

The above impex files throwing an error as posted previous.

what else need to change from java & jsp's .

Could you pls suggest me.

Thanks in Advance,

Regards R venkata karthik

former_member621020
Active Participant
0 Kudos

Hi Venkata,

My answer is for "desktop" version. Seems like your one is for "responsive" . Can you post the headers(INSERT_UPDATE line) of your code as well because headers are different in "desktop" & "responsive" versions.You can add the link only by using impex. No need to do any java or jsp change.

Suggestion: you can try importing one by one. So that you can identify which line throws the error.

Then you can go to hmc/backoffice & check whether above cmscomponents have actually created.

former_member1354369
Participant
0 Kudos

Hi Madhavi,

I am using below path in my local mahine

\powertoolsstore\resources\powertoolsstore\import\sampledata\contentCatalogs\powertoolsContentCatalog\cms-content.impex

i did't find the "desktop"

Is above path is correct ?

Need your help!

former_member621020
Active Participant
0 Kudos

which hybris version are you using?

Why are you changing "default hybris pages"? It is a bad practice. Didn't you create a module using "ant modulegen" & then do the customization in it. Don't change standard code.

My answer is for a b2c store. but powertools store is for b2b. But the concept is same. In early hybris versions there is "desktop","mobile","responsive". But newer version has only "responsive".

former_member1354369
Participant
0 Kudos

Hi Madhavi,

I'm using Hybris 6.0 version. working for B2B Accelerator.

using "ant modulegen" i could't build the powertool site. So, used recipe with the following command

.......installer>install.bat –r b2b_acc

After build is successful, executed the following command ....installer> install.bat –r b2b_acc initialize

Is the above approach is correct? Let me know any changes are required.

Thanks karthik

former_member1354369
Participant
0 Kudos

Thank you Madhavi, vl follow the steps corretly. Once its done vl update the status..

Regards, karthik

former_member1354369
Participant
0 Kudos

18.10.2016 14:54:01: ERROR: line 3 at main script: Can not resolve any more lines ... Aborting further passes (at pass 3). Finally could not import 1 lines! 18.10.2016 14:54:01: ERROR: line 3 at main script: Can not resolve any more lines ... Aborting further passes (at pass 3). Finally could not import 1 lines!

Here is my code added for cms-content.impex file :

########## MY ACCOUNT START

2. add account related cms items for responsive

;;TraceSessionDetailsLink;TraceSessionDetailsLink;/my-account/trace-sesion;TraceSessionDetailsLink;

create navigation root node for my account & child nodes for the root node

;TraceSessionNavNode;;TraceSessionNavNode;MyAccountNavNode;;TraceSessionNavNode

create cms navigation entry for navigation child nodes

;TraceSessionNavNodeEntry;;TraceSessionNavNodeEntry;TraceSessionNavNode;TraceSessionDetailsLink;

cms-content_en.impex file:

;;TraceSessionDetailsLink;"TraceSession Details"

could u pls go through it & let me know any changes are required.