In my project I am wanting to allow users to contribute any amount they want to publish, I have a field_donation_amount in the node, and would like to pass that integer * 100 to base price.

Comments

toastytheog’s picture

OK, I did it. It was pretty simple, my issue was not fully understanding how rules inherits fields

ended up adding a rule
on price calculation
with
entity has fields commerce-line-item:commerce_node_checkout_node
and fields commerce-line-item:commerce_node_checkout_node:field_donation_amount
then was able to
calculate
fields commerce-line-item:commerce_node_checkout_node:field_donation_amount *100

and set the unit price to that variable

too tired to format the text for easier reading, maybe tomorrow

mstef’s picture

Issue summary: View changes
Status: Active » Fixed

Looks like this was resolve via a custom Rule.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.