BV Commerce Forum
»
BV Commerce Support
»
General Support
»
Help Adding Product Type/Product Propery Description to Cart
Rank: Member
Joined: 12/19/2006(UTC) Posts: 153
|
Hi all, I have a Product Type/Product Propery set up for some products that are perishable. I would like to pass the "perishable" descript ion to the cart page as well. Thus far I've managed to add the product type ID to the cart display by simply modifying the code as such: Code:
[color=black>Dim]</b>[b][/b][b][/b]ion As LinkButton = CType(e.Row.FindControl("Descript[b][/b][b][/b][b][/b]ionLinkButton"[/color][color=black>),][/color]
[color=black></b>[b][/b][b][/b]ion IsNot Nothing Then[/color] [color=black>descript[b][/b][b][/b][b][/b]ion.Text]"<div class=""cartsku"">" & lineItem.AssociatedProduct.Sku & "</div><div class=""cartproductname"">" & lineItem.AssociatedProduct.ProductName & <FONT color=red>"</div><div class=""cartproducttype"">"[/color][color=red>]lineItem.AssociatedProduct.ProductTypeId</U> &[/color] "</div>" </FONT> [color=black>descript[b][/b][b][/b][b][/b]ion.CommandName]"EditProduct"[/color]
[color=black]descript[b][/b][b][/b][b][/b]ion.CommandArgument = lineItem.Bvin[/color]
[color=black>If [/color]</FONT>
As a total novice to web development, I'm totally stuck on how to go from the 'ProductTypeId' to the 'ProductTypeName' or to the 'ProductProperty' Display name. I've tried things like "lineItem.AssociatedProduct.ProductTypeId(Catalog.ProductType.FindNameForType)" but obviously I'm way off in my approach. I've tried a few other approaches (Dim...If . . .Then. . .) but with no luck either. I do lack the fundamentals, but am trying to become proficient via books, trial and error, and these forums. Any pointers or code snippets would be much appreciated. Thanks!
|
|
|
|
Rank: Member
Joined: 1/18/2008(UTC) Posts: 50
|
Hi Mark,
I don't know if this will help, but you may want to use the built-in shared choices option.
In Shared Choices ->Text Input, for example, I think you can set the columns and rows to 0, then simply use the header description as your "perishable" description.
That should be passed on to the cart, but you may need to fiddle with it.
Cheers,
Dave
|
|
|
|
Rank: Member
Joined: 3/3/2006(UTC) Posts: 1,737
|
Dave, I never would have come up with something like that. Kudos.
If that dosn't work, try a radio button choice with the default set on the one choice available. It should look like a bullet point on the screen and the text will wrap. This will give you a title and text and will also go to the invoice. |
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.