Is there a way to do complex calculations?

  • Posts: 21
  • Thank you received: 1
11 years 9 months ago #88213

A customer of mine wants to do "complex" calculations for the price, he wants people to be able to enter the length of an item and the width of the item and then according to the item they have chosen they will get an exact price.
Is this possible with HikaShop and, if so, how ?

BTW, I really like your product and if this works I will probably be using it as much as possible (otherwise I will have to search for a different sollution for this customer and get back to you for the others ;-) )

Last edit: 11 years 9 months ago by yvesvo.

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

  • Posts: 82796
  • Thank you received: 13357
  • MODERATOR
11 years 9 months ago #88368

Hi,

Yes, that's possible with a product quantity price override plugin.
We have some documentation on that here:
www.hikashop.com/en/support/documentatio...tation.html#override
You can also find an example of such plugin here:
demo.hikashop.com/index.php?option=com_h...show&cid=214&lang=en
Here, it's the most simple ue where the value entered in the custom field replaces the price of the product, but you can have any kind of calculation in the plugin for the price.

The following user(s) said Thank You: yvesvo

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

  • Posts: 21
  • Thank you received: 1
11 years 9 months ago #88504

Thank you ... That did solve this question
I just changed some minor things in the sample code and presto ... Works like a charm

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

Time to create page: 0.061 seconds
Powered by Kunena Forum