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

Notification

Icon
Error

SStorhaug
#1 Posted : Friday, November 13, 2009 12:36:04 PM(UTC)
SStorhaug

Rank: Member

Joined: 11/20/2005(UTC)
Posts: 122

I am trying to get the value of a specific type property for the current product. I copied over some of the code from the ProductTypeDisplay.aspx.vb file, but the code is meant for retrieving all of the properties and this seems like a really long way to go to get a single type property. Is there a method that can be called where I can just pass the name of the type property and get its value?



I will be needing to read more type properties as this project progresses, so I would like to do it the most elegant way possible. Here is my current (working) code, I am just trying to find a better way...





Code:

[color=#0000ff][color=#0000ff][2]End[/color][/2][/color][color=#0000ff][color=#0000ff][2]Property
[/color][/2][/color]
In addition, I am not sure what the purpose of passing this through the Catalog.ProductProperty.GetProductTypePropertyValue() method is, since the value I am after is being passed INTO the method as the second parameter.


Am I missing something, or is the API not using a Dictionary object to store a key/value pair?
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