Vote up!
Vote down!

Calculate the original price to show 67%, 33% of the original price

Greetings genius commerce developers,
I need to create a field with three clickable displayed prices. The only number I am given is the original/full price.
What I need to be done is:
1- Show the full price (this is already done), Please help with the next two steps:
2- Calculate and display 67% of the original price.
3- Calculate and display 33% of the original price.
All options are clickable; once you pick any option it should add the item to your shopping cart.
Thank you in advance.

Asked by: flashwebcenter
on May 22, 2013

1 Answer

Vote up!
Vote down!

I don't think Commerce provides something like that out of the box.

You could use http://drupal.org/project/commerce_custom_product and add a custom field to the product line item type (say, a select box with options: normal, 67, 33).

Then create a rule or set of rules to handle the pricing depending on the custom field value.

Answer by: Favio Manriquez
Posted: May 24, 2013