Jump to content

Allow Customer to Select Desired Price


Recommended Posts

I'm searching for a way that allows the customer to enter an amount to pay for a product. This will be used for things such as charitable contributions and entering payment amount for an invoice.

 

I tried creating a product with combinations and dropdowns with the number 0 through 9 labeled as cents, dimes, dollars, ten dollars, and hundred dollars. The value of each having an amount that corresponds to the dropdown selected.

 

The problem is there are so many combinations, the combinations generator times out. Does anyone have a solution that allows a customer to enter the amount they desire to pay for a custom product?

Link to comment
Share on other sites

  • 11 months later...

Create Product e.g "Charity Payment"

Set Product Price = 1

You don't have to create product combination.

 

Modify product.tpl file to add smarty if-else statement, so if customer browsing this product then the Product price information is hidden (or completely removed from the product page) and change the text "Quantity" became "I'm willing to pay" or whatever :)

Then your customer can enter the payment amount that s/he want in "I'm willing to pay" field input which is actually "Quantity" field input.

Link to comment
Share on other sites

gonebdg - thanks for the tip.  If this approach is taken, can a person enter a decimal amount for the quantity (e.g. 1.25 to represent $1.25)?

 

Set Product Price = 0.1 (or set to 0.01)

 

Customer can enter payment amount = 12 to represent $1.20 (if product price was set to 0.1)

OR

Customer can enter payment amount = 125 to represent $1.25 (if product price was set to 0.01)

 

You can also set minimum amount

Set Product Minimum Quantity (The minimum quantity to buy this product) = 10 (or set to 100)

Then the minimum payment amount will be = 1 (if product price was set to 0.1)

OR

Then the minimum payment amount will be = 0.1 (if product price was set to 0.01)

 

Example : http://www.presta.team.pro/en/home/9-charity-payment.html

Link to comment
Share on other sites

  • 9 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...