1
Answers
Vote up!
0
Vote down!

Product Price

Hi,

I am finding no way to my solution at the moment. I have product type "Ideas" and product display type "Ideas Display". There I have added a field "Reward". User will put some amount in it. I want this Reward field to be the product price to be paid not the default product price and that reward amount shall be paid by the customer through drupal commerce checkout process.

Any help in this regard will be appreciated.

Thanks.

Asked by: druplex80
on March 1, 2014

1 Answer

Vote up!
0
Vote down!

You are describing a common use case. We call this "Customizable Line Items" and you can achieve this by creating a field on your line item type and clicking a checkbox that says enable this field on the add to cart form.

Josh Miller
Answer by: Josh Miller
Posted: Mar 7, 2014

Comments

Thanks joshmiller,

I have created a field "Reward" with text box widget in my Custom Line Item and the reward amount is adding in the product price nicely as desired. I only want that my field "Reward" in the Product Display should be copied to the Custom Line Item field "Reward". I don't want user to re-enter that value. I was wondering if it can be done by rules but may be I am missing something.

Regards
Sohail

- druplex80 on March 8, 2014

Are you talking about something like this module?

https://drupal.org/project/commerce_saleprice

If you want the "customer" to enter the reward value (per user session), then use customizable line item fields (current solution).

If you want the "store administrator" to enter the reward value (per product), then use the module I just linked to.

- Josh Miller on March 12, 2014