• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

gregmoser
#1 Posted : Wednesday, June 6, 2007 7:04:44 AM(UTC)
gregmoser

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
jetheredge
#2 Posted : Wednesday, June 6, 2007 12:40:04 PM(UTC)
jetheredge

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.

©2025 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012