1
Answers
Vote up!
0
Vote down!

How to access custom product fields from checkout order status?

Hello, I am trying to access from Rules the custom fields of my product at the stage of the checkout status of an order, but I am having a hard time doing so.

I have been able to access the custom product fields on the generic event of calculating the product price and using a Rule component, but in this case that approach does not seem to work because it looks like the checkout event is not providing the appropriate variables.

I am debugging the line items at this point from Rules and see that, among other things, the commerce_product element of the line item is "und".

Any help greatly appreciated, thanks.

Asked by: uweb
on August 26, 2012

1 Answer

Vote up!
0
Vote down!

I was eventually able to access the data from within a loop with the help of Conditional Rules module by adding a condition on each list item inside the loop.

Answer by: uweb
Posted: Aug 27, 2012

Comments

Hi uweb - how were you eventually able to do this? I'm dealing with pretty much the same situation as you were, but after hours of trying to get it to work I haven't had any luck. I've tried using loops, but I must be using the wrong conditions. Any advice on how to structure the loop and conditions? Thanks!

- GTN_John on January 10, 2013