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

#   Auto add extra amount on Custom Field

##

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

Less More

- Posts: 11
- Thank you received: 0
-
-

7 years 9 months ago [\#301976](#301976) by [Webdexter](/forum/user/47417-webdexter "View Webdexter's Profile")  *[Auto add extra amount on Custom Field](/forum/31-development/896536-auto-add-extra-amount-on-custom-field#301976 "-- HikaShop version -- : 4.0.1 -- Joomla version -- : 3.9.1 -- PHP version -- : 7.2.1 -- Browser(s) name and version -- : Firefox 64.0  LS,  I have created a product page with two custom fields(&quot;Te borduren tekst&quot; and &quot;Extra tekst&quot;) as can be seen in the attachement. All is working well except that I would like to automatically add an amount on top of the price when the second custom field &quot;Extra tekst&quot; is used.  So if only the custom field &quot;&quot; is used the price remains €15,00. When the second custom field &quot;Extra tekst&quot; is used, €4,00 should be added to the price. So total should read €19,00  How can this be accomplished or is there an other way to do this. Please advice.  With regards Webdexter")* was created by *[Webdexter](/forum/user/47417-webdexter "View Webdexter's Profile")*

-- HikaShop version -- : 4.0.1
-- Joomla version -- : 3.9.1
-- PHP version -- : 7.2.1
-- Browser(s) name and version -- : Firefox 64.0

LS,

I have created a product page with two custom fields("Te borduren tekst" and "Extra tekst") as can be seen in the attachement.
All is working well except that I would like to automatically add an amount on top of the price when the second custom field "Extra tekst" is used.

So if only the custom field "" is used the price remains €15,00. When the second custom field "Extra tekst" is used, €4,00 should be added to the price. So total should read €19,00

How can this be accomplished or is there an other way to do this.
Please advice.

With regards
Webdexter

- [ ![ScreenShot2018-12-26at22.26.57.png](/forum/attachment/45678) ](/forum/attachment/45678 "...at22.26.57.png") [ ](/forum/attachment/45678?download=1 "...at22.26.57.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg5NjUzNi1hdXRvLWFkZC1leHRyYS1hbW91bnQtb24tY3VzdG9tLWZpZWxkP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

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

Less More

- Posts: 86286
- Thank you received: 14263
-
-

7 years 9 months ago [\#301982](#301982) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Auto add extra amount on Custom Field](/forum/31-development/896536-auto-add-extra-amount-on-custom-field#301982 "-- HikaShop version -- : 4.0.1 -- Joomla version -- : 3.9.1 -- PHP version -- : 7.2.1 -- Browser(s) name and version -- : Firefox 64.0  LS,  I have created a product page with two custom fields(&quot;Te borduren tekst&quot; and &quot;Extra tekst&quot;) as can be seen in the attachement. All is working well except that I would like to automatically add an amount on top of the price when the second custom field &quot;Extra tekst&quot; is used.  So if only the custom field &quot;&quot; is used the price remains €15,00. When the second custom field &quot;Extra tekst&quot; is used, €4,00 should be added to the price. So total should read €19,00  How can this be accomplished or is there an other way to do this. Please advice.  With regards Webdexter")*

Hi,

If you want to do that with a custom item field, you'll have to develop a plugin to do that.
We actually have many "shop custom" plugins that change the price of the product based on custom fields on our marketplace:
[ www.hikashop.com/marketplace/category/39-products.html](https://www.hikashop.com/marketplace/category/39-products.html)
For example, this one [ www.hikashop.com/marketplace/product/221...quantity-plugin.html](https://www.hikashop.com/marketplace/product/221-shopcustom-quantity-plugin.html) multiply the price of the product by the number entered in a custom field.
If you know a bit of programing you can easily modify that plugin for your needs.

However, HikaShop has an options system which is made especially to be able to add an amount to the price of a product when the option is selected, so I would rather recommand using that:
[ demo.hikashop.com/index.php/en/hikashop/...ct-page/with-options](https://demo.hikashop.com/index.php/en/hikashop/product-page/with-options)
[ www.hikashop.com/support/documentation/i...ct-form.html#options](https://www.hikashop.com/support/documentation/integrated-documentation/19-hikashop-product-form.html#options)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg5NjUzNi1hdXRvLWFkZC1leHRyYS1hbW91bnQtb24tY3VzdG9tLWZpZWxkP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

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

Less More

- Posts: 11
- Thank you received: 0
-
-

7 years 9 months ago -  7 years 9 months ago [\#301990](#301990) by [Webdexter](/forum/user/47417-webdexter "View Webdexter's Profile")  Replied by *[Webdexter](/forum/user/47417-webdexter "View Webdexter's Profile")* on topic *[Auto add extra amount on Custom Field](/forum/31-development/896536-auto-add-extra-amount-on-custom-field#301990 "-- HikaShop version -- : 4.0.1 -- Joomla version -- : 3.9.1 -- PHP version -- : 7.2.1 -- Browser(s) name and version -- : Firefox 64.0  LS,  I have created a product page with two custom fields(&quot;Te borduren tekst&quot; and &quot;Extra tekst&quot;) as can be seen in the attachement. All is working well except that I would like to automatically add an amount on top of the price when the second custom field &quot;Extra tekst&quot; is used.  So if only the custom field &quot;&quot; is used the price remains €15,00. When the second custom field &quot;Extra tekst&quot; is used, €4,00 should be added to the price. So total should read €19,00  How can this be accomplished or is there an other way to do this. Please advice.  With regards Webdexter")*

Hello Nicolas,

Thank you for your answer. I have looked at "options" but I see no way to create an option and have a free text field where the client can put a random string into the textbox when the option is selected. Is there a way I don't know off?

Regards
Webdexter

Last edit: 7 years 9 months ago by [Webdexter](/forum/user/47417-webdexter "View Webdexter's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg5NjUzNi1hdXRvLWFkZC1leHRyYS1hbW91bnQtb24tY3VzdG9tLWZpZWxkP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

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

Less More

- Posts: 86286
- Thank you received: 14263
-
-

7 years 9 months ago [\#301994](#301994) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Auto add extra amount on Custom Field](/forum/31-development/896536-auto-add-extra-amount-on-custom-field#301994 "-- HikaShop version -- : 4.0.1 -- Joomla version -- : 3.9.1 -- PHP version -- : 7.2.1 -- Browser(s) name and version -- : Firefox 64.0  LS,  I have created a product page with two custom fields(&quot;Te borduren tekst&quot; and &quot;Extra tekst&quot;) as can be seen in the attachement. All is working well except that I would like to automatically add an amount on top of the price when the second custom field &quot;Extra tekst&quot; is used.  So if only the custom field &quot;&quot; is used the price remains €15,00. When the second custom field &quot;Extra tekst&quot; is used, €4,00 should be added to the price. So total should read €19,00  How can this be accomplished or is there an other way to do this. Please advice.  With regards Webdexter")*

Hi,

I didn't understand that there was a dependence between your custom fields.
It's indeed not possible to do that with an option (unless you add custom javascript code to hide/display the input field of the custom field when the option dropdown is changed).
Again, it's not particularily difficult to do if you know a bit about programming:
[ stackoverflow.com/a/16016019/6390007](https://stackoverflow.com/a/16016019/6390007)
However, in that case, I would rather recommend the plugin solution I was talking about at the beginning of my previous message. It will be simpler.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg5NjUzNi1hdXRvLWFkZC1leHRyYS1hbW91bnQtb24tY3VzdG9tLWZpZWxkP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) 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.169 seconds

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

[](#top)
