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

Notification

Icon
Error

MitchA
#1 Posted : Wednesday, March 5, 2008 4:55:28 PM(UTC)
MitchA

Rank: Member

Joined: 3/3/2006(UTC)
Posts: 1,737

Is there a way to place the product name in the long description (other than typing it there)? - An HTML tag?


Failing that, Can it be placed below the large picture?
Optimists invent airplanes,
Pessimists buy parachutes.
avmwebguy
#2 Posted : Friday, March 7, 2008 1:54:17 PM(UTC)
avmwebguy

Rank: Member

Joined: 1/24/2008(UTC)
Posts: 60

Sure, though the file you need to edit will differ based off the Display Template you choose for the product.

I'll use BVC5 as the example:

Make sure you create a backup of these files before you start: \store\BVModules\ProductTemplates\Bvc5\Product.aspx and \store\BVModules\ProductTemplates\Bvc5\Product.aspx.vb

In Visual Studio, open the file \store\BVModules\ProductTemplates\Bvc5\Product.aspx


Method 1 (Put it in the Long Description):

View the code for the page. Find the line
Code:
Me.lblDescription.Text = Me.LocalProduct.LongDescription


Change it to:

Code:
Me.lblDescription.Text = Me.LocalProduct.ProductName & "<br/>" & Me.LocalProduct.LongDescription



This will make it look like:


ProductName
ProductLongdescription here. This product is great because ______ .
Specs: Great product, etc etc etc.


Note: This will not change your database. It just changes the way the Long Description field looks on the page.


Method 2 (Add it under the picture):

Add a new label above the lblDescription label.

Name the new label something like lblName2.



Then view the code for the page. Find the line
Code:
Me.lblName.Text = Me.LocalProduct.ProductName
under it add:

Code:
Me.lblName2.Text = Me.LocalProduct.ProductName


This should be within the PopulateProductInfo Sub.





Finally



Save, Rebuild the page, Upload and test :)





Note: I haven't actually tested this. . . just did it off the top of my head, so make sure to test it out first.
- Brian

Web Developer/IT Manager
MitchA
#3 Posted : Friday, March 7, 2008 3:39:46 PM(UTC)
MitchA

Rank: Member

Joined: 3/3/2006(UTC)
Posts: 1,737

Thanks, I'll give these a shot.
Optimists invent airplanes,
Pessimists buy parachutes.
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.

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