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

Notification

Icon
Error

ProgDan
#1 Posted : Wednesday, May 6, 2009 4:25:18 PM(UTC)
ProgDan

Rank: Member

Joined: 12/1/2008(UTC)
Posts: 31

I am trying to create a custom work flow for volume discounts.

I want to access a product property to check for a value. The property is a multiple choice box. OrderLine doesn't have choices on it. How can I look at the property value What function call should I use. I can view the properties just not getting the value for the choice picked.

Can some one send me on my way. Here is a code snippet.

Dim p1 As Catalog.Product = Catalog.InternalProduct.FindByBvin(item.ProductId)

Dim test As String
props = Catalog.ProductProperty.FindByProductType(p1.ProductTypeId)

For Each p As Catalog.ProductProperty In props


test = Catalog.InternalProduct.GetPropertyValue(item.ProductId, p.Bvin)
Dim test2 As Catalog.ProductChoice = Catalog.ProductChoice.FindByBvin(test)
Dim test3 As String = test2.DisplayName

Next

this does not work I don't get an object returned on test2. This is BV 5.4 I havn't had time to go to 5.5 yet. (Got to diff out my custom changes).

I want the value of the property price group.

With out hard coding what I want.

Thanks

Dan
ProgDan
#2 Posted : Thursday, May 7, 2009 10:47:16 AM(UTC)
ProgDan

Rank: Member

Joined: 12/1/2008(UTC)
Posts: 31

Never mind I was not using productpropertychoice.

I ended up writing a sub class to handle what I was looking to do.

Dan
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