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

Notification

Icon
Error

Mark H
#1 Posted : Friday, February 29, 2008 5:01:52 PM(UTC)
Mark H

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" description 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]"&lt;div class=""cartsku""&gt;" &amp; lineItem.AssociatedProduct.Sku &amp; "&lt;/div&gt;&lt;div class=""cartproductname""&gt;" &amp; lineItem.AssociatedProduct.ProductName &amp; <FONT color=red>"&lt;/div&gt;&lt;div class=""cartproducttype""&gt;"[/color][color=red>]lineItem.AssociatedProduct.ProductTypeId</U> &amp;[/color] "&lt;/div&gt;"
</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!
casti004
#2 Posted : Sunday, March 2, 2008 2:19:12 PM(UTC)
casti004

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
MitchA
#3 Posted : Sunday, March 2, 2008 6:29:00 PM(UTC)
MitchA

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.

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