[Skip to main content](#vessel-content)

#   fexible prices in custom fields

##

- **[mrairwolf](/forum/user/14856-mrairwolf "View mrairwolf's Profile")**
- [![mrairwolf's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/14856-mrairwolf "View mrairwolf's Profile") Topic Author
- [ Offline](/forum/user/14856-mrairwolf)

Less More

- Posts: 4
- Thank you received: 0
-
-

13 years 7 months ago [\#94882](#94882) by [mrairwolf](/forum/user/14856-mrairwolf "View mrairwolf's Profile")  *[fexible prices in custom fields](/forum/2-general-talk-about-hikashop/79384-fexible-prices-in-custom-fields#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")* was created by *[mrairwolf](/forum/user/14856-mrairwolf "View mrairwolf's Profile")*

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

- [ ![picture.gif](/forum/attachment/9181) ](/forum/attachment/9181 "picture.gif") [ ](/forum/attachment/9181?download=1 "picture.gif")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc5Mzg0LWZleGlibGUtcHJpY2VzLWluLWN1c3RvbS1maWVsZHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 7 months ago -  13 years 7 months ago [\#94978](#94978) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[fexible prices in custom fields](/forum/2-general-talk-about-hikashop/79384-fexible-prices-in-custom-fields#94978 "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")*

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](http://www.hikashop.com/en/support/documentation/integrated-documentation/19-hikashop-product-form.html#characteristics)

Last edit: 13 years 7 months ago by [Xavier](/forum/user/4105-xavier "View Xavier's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc5Mzg0LWZleGlibGUtcHJpY2VzLWluLWN1c3RvbS1maWVsZHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[mrairwolf](/forum/user/14856-mrairwolf "View mrairwolf's Profile")**
- [![mrairwolf's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/14856-mrairwolf "View mrairwolf's Profile") Topic Author
- [ Offline](/forum/user/14856-mrairwolf)

Less More

- Posts: 4
- Thank you received: 0
-
-

13 years 7 months ago [\#95020](#95020) by [mrairwolf](/forum/user/14856-mrairwolf "View mrairwolf's Profile")  Replied by *[mrairwolf](/forum/user/14856-mrairwolf "View mrairwolf's Profile")* on topic *[fexible prices in custom fields](/forum/2-general-talk-about-hikashop/79384-fexible-prices-in-custom-fields#95020 "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")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc5Mzg0LWZleGlibGUtcHJpY2VzLWluLWN1c3RvbS1maWVsZHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 7 months ago [\#95219](#95219) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[fexible prices in custom fields](/forum/2-general-talk-about-hikashop/79384-fexible-prices-in-custom-fields#95219 "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")*

Hi,

I answered in PM.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc5Mzg0LWZleGlibGUtcHJpY2VzLWluLWN1c3RvbS1maWVsZHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.074 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
