Rank: Member
Joined: 1/10/2005(UTC) Posts: 714
Thanks: 14 times Was thanked: 1 time(s) in 1 post(s)
|
Is there any way to display the product manfacturer dynamically on the product page? It seems like putting a product type for each manfacturer could be tedious. Id rather display it dynamically, just like a price or sku number. I tried LocalProduct.ManufacturerId, but that will only display the manufacturer ID, not the manufacturer name. Thanks,
Bryan
|
|
|
|
Rank: Member
Joined: 4/22/2004(UTC) Posts: 280
|
[3]Edit product.aspx.vb for your Product Template by adding this . . .[/3][3]<SPAN style="mso-tab-count: 1">
[code] Dim m As Contacts.Manufacturer = Contacts.Manufacturer.FindByBvin(LocalProduct.ManufacturerId) Me.lblManufacturer.Text = m.DisplayName [/3][3]somewhere - like under this line . . .<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>[/3]
<o:p>[3] [/3]</o:p>[3]<SPAN style="mso-tab-count: 1"> Me.lblDescription.Text = Me.LocalProduct.LongDescription<o:p></o:p>[/3]
<o:p>[3] [/3]</o:p>
[3]Edit product.aspx for your Product Template by adding this . . .<o:p></o:p>[/3] [3]<SPAN style="mso-tab-count: 1">
[code] <div id="ManufacturerName"> <asp:Literal ID="lblManufacturer" runat="server" EnableViewState="false"></asp:Literal> </div> [/3]Linette
|
|
|
|
Rank: Member
Joined: 10/11/2006(UTC) Posts: 162
Thanks: 1 times
|
Great, works awesome. I just emailed support about this same thing yesterday. Thanks for sharing Linette.
: Greg
|
|
|
|
Rank: Member
Joined: 1/10/2005(UTC) Posts: 714
Thanks: 14 times Was thanked: 1 time(s) in 1 post(s)
|
yup works great... thanks!
|
|
|
|
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.