Rank: Member
Joined: 5/21/2007(UTC) Posts: 11
|
I would like to have the manufactures name pull up before the product name on my category pages. Not sure how to call for it in the codebehind file. Here is what I currently have: http://storedev.nofear.com/Departments/Mens-Clothing/T-Shirts.aspx If these where the product settings, Name: Illuminator Manufacture: Rolex Price: $2,950 I would want it to look like this: Rolex - Illuminator $2,950 Any help would be greatly appreciated Thanks, -G
|
|
|
|
Rank: Member
Joined: 3/1/2006(UTC) Posts: 1,142
|
In the code-behind of the Product template there is a method called PopulateProductInfo and in there you will see a call that looks like this:
Me.lblName.Text = Me.LocalProduct.ProductName
You just need to change it to look like this
Dim manufacturer As Contacts.Manufacturer = Contacts.Manufacturer.FindByBvin(Me.LocalProduct.ManufacturerId) If manufacturer IsNot Nothing AndAlso manufacturer.Bvin <> String.Empty Then Me.lblName.Text = Me.LocalProduct.ProductName & " - " & manufacturer.DisplayName Else Me.lblName.Text = Me.LocalProduct.ProductName End If |
Justin Etheredge Senior Software Engineer BVSoftware |
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.