fexible prices in custom fields

  • Posts: 4
  • Thank you received: 0
11 years 8 months ago #94882

Hi, is it possible to use a custom field to calculate prices in form of free input for millimeters as witdh an height.
I mean, that my Customer want to buy an article with 80 mm x 40 mm, 90 mm x 20 mm, the price for 100 mm x 100mm is 20 €.
Therefore the first costs 6,40 € and the 2 second costs 3,60 €.

Has anyone a solution or want to code this? And how much is the cost for this?

Rainer

Attachments:

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

  • Posts: 13201
  • Thank you received: 2322
11 years 8 months ago #94978

Hi,

You have to create two custom fields, one for the length the other one for the width.
Then add some js code in the view "product / show" to add action onmouseout of the input.
And it will calculate the price depending on the original price and the dimensions.

Then change the price value in the php var.

I suggest to post in the commercial jobs section of this forum.

Can the customer set any dimensions or there is defined dimensions ?
If defined, you can use the variants:
www.hikashop.com/en/support/documentatio...html#characteristics

Last edit: 11 years 8 months ago by Xavier.

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

  • Posts: 4
  • Thank you received: 0
11 years 8 months ago #95020

Hi Xavier, thanks for answer and the golden tip. Can you do it for me, what did you think about the costs?

Rainer

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

  • Posts: 13201
  • Thank you received: 2322
11 years 8 months ago #95219

Hi,

I answered in PM.

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

Time to create page: 0.070 seconds
Powered by Kunena Forum