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

Notification

Icon
Error

Taylor
#1 Posted : Thursday, August 30, 2007 3:37:53 PM(UTC)
Taylor

Rank: Member

Joined: 7/15/2004(UTC)
Posts: 368

Is there a way to globally add the words "per lb." to the end of all pricing? We need it to show up on the product pages, category pages, upsells, cross sells, wishlist and anywhere else that the price shows up.

I can do it on the product page, but I'm having trouble with adding it to the category grid page and SingleProductDisplay.ascx which is what I think controls the upsells and cross sells. Anyone care to point me in the right direction? All help is appreciated.
Cliff
#2 Posted : Thursday, August 30, 2007 5:53:11 PM(UTC)
Cliff

Rank: Member

Joined: 5/24/2004(UTC)
Posts: 4,147

Not sure. You could do something like this, but the pseudo-class isn't supported in Internet Explorer (not even IE7):
Code:
.SitePrice:after { content: " per lb." }

Otherwise, I'd imagine you'd have to go into the code. If not all products are sold by the pound, though, making the modification globally could pose a problem.
BMFResposio
#3 Posted : Friday, August 31, 2007 5:34:13 AM(UTC)
BMFResposio

Rank: Member

Joined: 3/15/2007(UTC)
Posts: 126

You can open your .vb page and append the site price like this:

Me.lblSitePrice.Text = productDisplay.SitePriceDisplay & " Per lb."

You will need to find all occurrences to make sure you get all of the prices.
Taylor
#4 Posted : Friday, August 31, 2007 8:25:21 AM(UTC)
Taylor

Rank: Member

Joined: 7/15/2004(UTC)
Posts: 368

Thanks Cliff, that's a good idea but I want something that will work across the board. My thought was to put a background image with the words "per lb." at the end of the price if I couldn't figure out the code part.

As usual Brendon... you rock! That's exactly what I was looking for :) Thanks!
MitchA
#5 Posted : Friday, August 31, 2007 10:26:12 AM(UTC)
MitchA

Rank: Member

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

Is there any way to make this a selectable option - product by product - on the product edit page? I'm thinking some products are packaged other than by the pound. Ounces, Kg, Grams, Each, Per pair, Per kit, Per download...etc.
Optimists invent airplanes,
Pessimists buy parachutes.
Taylor
#6 Posted : Friday, August 31, 2007 11:03:04 AM(UTC)
Taylor

Rank: Member

Joined: 7/15/2004(UTC)
Posts: 368

You could make a product template that would have the extra text and one that doesn't, same with the category templates. If you have the products together on a category page, I don't know how to do some and not others.
Cliff
#7 Posted : Friday, August 31, 2007 12:34:04 PM(UTC)
Cliff

Rank: Member

Joined: 5/24/2004(UTC)
Posts: 4,147

It might be a good idea to use a SiteTerm, just so you don't have to jump in all of those files again to change everything in the future, if need be:
Code:
Me.lblSitePrice.Text = productDisplay.SitePriceDisplay & " " & Content.SiteTerms.GetTerm("PostPrice")


Then in BVAdmin > Options > Site Terms just create a new site term called 'PostPrice' with your 'per lb.' value.
Andy Miller
#8 Posted : Friday, August 31, 2007 2:48:03 PM(UTC)
Andy Miller

Rank: Member

Joined: 11/5/2003(UTC)
Posts: 2,136

Was thanked: 1 time(s) in 1 post(s)
Using a product Type Property is another way. This has the advantage of letting you set the units for some or all of the products in your catalog and you can have different units for different products.


<OL>
<LI>Use BVAdmin &gt; Catalog &gt; Type Properties to create a new text property called Units. Make the default value be your default units (i.e. "per lb"). I would not check "Display on Site" or "Display to Drop Shipper" since they will cause the units to display in odd places IMO.
<LI>Use BVAdmin &gt; Catalog &gt; Product Type to assign the Units property to your product types.
<LI>Use BVAdmin &gt; Catalog &gt; Products to assign different units (or no units) to your products.

<LI>Save the attached file to the BVModules\Controls directory of your site. This user control displays the value of a product type property.
<LI>Add the following line to the top of your product template (i.e. BVModules\ProductTemplates\BVC 2004 Layout\Product.ascx).

&lt;%@ Register TagPrefix="uc" TagName="ProductTypePropertyDisplay"
Src="~/BVModules/Controls/ProductTypePropertyDisplay.ascx" %&gt;

<LI>Add the following line to the product template every place you want the units to appear:

&lt;uc:ProductTypePropertyDisplay runat="server"
ProductId="&lt;%# LocalProduct.Bvin %&gt;"
TypeProperty="Units" /&gt;</LI></OL>
You can use this for more than just units. For example, if you want to display the value of a property called "Special Handling", then you would use:

&lt;uc:ProductTypePropertyDisplay runat="server"
ProductId="&lt;%# LocalProduct.Bvin %&gt;"
TypeProperty="Special Handling" /&gt;
File Attachment(s):
ProductTypePropertyDisplay.ascx (3kb) downloaded 157 time(s).

You cannot view/download attachments. Try to login or register.
Andy Miller
Structured Solutions

Shipper 3 - High Velocity Shipment Processing
Cliff
#9 Posted : Friday, August 31, 2007 3:28:30 PM(UTC)
Cliff

Rank: Member

Joined: 5/24/2004(UTC)
Posts: 4,147

Awesome idea, Andy! Bookmarking this one.
BMFResposio
#10 Posted : Saturday, September 1, 2007 10:54:52 AM(UTC)
BMFResposio

Rank: Member

Joined: 3/15/2007(UTC)
Posts: 126

Nice addition Andy!
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