Inhalte aufrufen

Profilbild

Profile Controller in SmartStore.Web project

Profile

  • Bitte melden Sie sich an, um eine Antwort zu verfassen.
3 Antworten zu diesem Thema

#1 Kushil

Kushil

    Newbie

  • Members
  • Punkt
  • 4 Beiträge

Geschrieben: 02 February 2017 - 06:01

Hi 

Does anyone know how you get ProfileController in SmartStore.Web project gets executed? I am trying to find the navigation path for that. But I could not find any. I went to forums, threads, and blogs as well. But the break points set in the Profile controller did not get executed. I would like to extend SmartStore to have searchable profile. The first task is to see how the existing Profile Controller is triggered off? Thanks in advance!!

Kush



#2 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3801 Beiträge

Geschrieben: 02 February 2017 - 12:08

The route is defined as

routes.MapLocalizedRoute("CustomerProfile",
  "profile/{id}",
  new { controller = "Profile", action = "Index", id = UrlParameter.Optional },
  new { id = idConstraint },
  new[] { "SmartStore.Web.Controllers" });
So just call http://www.my-store.com/Profile. It hits the action method "Index".

Marcus Gesing

Smartstore AG


#3 Kushil

Kushil

    Newbie

  • Members
  • Punkt
  • 4 Beiträge

Geschrieben: 02 February 2017 - 22:02

Thanks so much!! I had to enable "Allow viewing of customer profiles" option in Customer Settings. It lets me clicking on the forum comment author's name link. That link takes me to the customer profile. Is there another way I can view profiles?

Thanks again!!



#4 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3801 Beiträge

Geschrieben: 03 February 2017 - 13:07

The URL route is used in several views. For instance in the list of proudct reviews on the product detail page.


Marcus Gesing

Smartstore AG