Sliding scale prices

  • Posts: 65
  • Thank you received: 3
  • Hikashop Business
3 years 11 months ago #330850

-- Joomla version -- : 3.9.25
-- PHP version -- : 7.4.16
-- Browser(s) name and version -- : safari

We are attempting create a product where a customer can select a price based on their ability to pay. Such as an item where one person can pay $40 and another can pay $20. Is there a way to do this?

Please Log in or Create an account to join the conversation.

  • Posts: 83404
  • Thank you received: 13497
  • MODERATOR
3 years 11 months ago #330854

Hi,

If you want a way for the customer to choose the amount to pay there are two options I can see:
1. You could create a characteristic with all the different price values you want to accept and then add that characteristic to the product and then add the variants. In each variant you can then enter the price you want.
www.hikashop.com/support/support/documen...html#characteristics
This will display by default as a dropdown. In your thread subject, you're talking about a "sliding scale". So if you want to transform this into a slider, it would require some custom coding. You could display a slider as explained here:
www.w3schools.com/howto/howto_js_rangeslider.asp
and then connect that slider with the dropdown and hide the dropdown with CSS and javascript code.

2. You could also use the donation plugin along with a custom item field:
demo.hikashop.com/index.php/en/hikashop/...t-page/donation-page
A custom field could also be a dropdown, or an input field. So if you use a dropdown, you could also turn it into a slider with custom coding as explained in point 1.

Please Log in or Create an account to join the conversation.

Time to create page: 0.050 seconds
Powered by Kunena Forum