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

#   custom input text field in product view increasing the final price if any text

##

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

Less More

- Posts: 9
- Thank you received: 0
-
-

9 years 4 months ago [\#271917](#271917) by [mixes](/forum/user/32406-mixes "View mixes's Profile")  *[custom input text field in product view increasing the final price if any text](/forum/4-how-to/890715-custom-input-text-field-in-product-view-increasing-the-final-price-if-any-text#271917 "-- HikaShop version -- : Essential: 3.1.1 -- Joomla version -- : 3.7.2 -- PHP version -- : 5.6.20 -- Browser(s) name and version -- : 58.0.3029.110 (64-bit) Mac  Dear support  I know that I need to purchase the Business edition to use custom input text boxes in the products view (item), but still need to know first if this is posible:  I need to create a custom input text in the product view to the user input his name to customize the product and this will increase the final price if any text has filled in  so if the text input is empty then price doesnt change unless he writes some text on it so it will increase price of the product  many thanks danny")* was created by *[mixes](/forum/user/32406-mixes "View mixes's Profile")*

-- HikaShop version -- : Essential: 3.1.1
-- Joomla version -- : 3.7.2
-- PHP version -- : 5.6.20
-- Browser(s) name and version -- : 58.0.3029.110 (64-bit) Mac

Dear support

I know that I need to purchase the Business edition to use custom input text boxes in the products view (item), but still need to know first if this is posible:

I need to create a custom input text in the product view to the user input his name to customize the product and this will increase the final price if any text has filled in

so if the text input is empty then price doesnt change unless he writes some text on it so it will increase price of the product

many thanks
danny

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg5MDcxNS1jdXN0b20taW5wdXQtdGV4dC1maWVsZC1pbi1wcm9kdWN0LXZpZXctaW5jcmVhc2luZy10aGUtZmluYWwtcHJpY2UtaWYtYW55LXRleHQ/dG1wbD1tYXJrZG93bg==) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86292
- Thank you received: 14269
-
-

9 years 4 months ago [\#271921](#271921) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[custom input text field in product view increasing the final price if any text](/forum/4-how-to/890715-custom-input-text-field-in-product-view-increasing-the-final-price-if-any-text#271921 "-- HikaShop version -- : Essential: 3.1.1 -- Joomla version -- : 3.7.2 -- PHP version -- : 5.6.20 -- Browser(s) name and version -- : 58.0.3029.110 (64-bit) Mac  Dear support  I know that I need to purchase the Business edition to use custom input text boxes in the products view (item), but still need to know first if this is posible:  I need to create a custom input text in the product view to the user input his name to customize the product and this will increase the final price if any text has filled in  so if the text input is empty then price doesnt change unless he writes some text on it so it will increase price of the product  many thanks danny")*

Hi,

There is no pre-made system to add a fixed amount to the price of the product based on whether something has been entered in a custom item field or not.
However, we do provide a "donation" plugin which can take the value entered in a custom field and replace the product price with it:
[ demo.hikashop.com/index.php/en/hikashop/...t-page/donation-page](https://demo.hikashop.com/index.php/en/hikashop/product-page/donation-page)
So it would require modifying the code of that plugin.
You would have to change all the instances of: Code:

hikashop_toFloat($product-&gt;$column)

to: Code:

hikashop_toFloat($product-&gt;prices[$k]-&gt;price_value + XX)

where XX is the amount to add to the product. That change is to be done in plugins/system/custom_price/custom_price.php
Then the donation plugin will behave like you need it to.

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

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

Less More

- Posts: 9
- Thank you received: 0
-
-

9 years 4 months ago [\#271972](#271972) by [mixes](/forum/user/32406-mixes "View mixes's Profile")  Replied by *[mixes](/forum/user/32406-mixes "View mixes's Profile")* on topic *[custom input text field in product view increasing the final price if any text](/forum/4-how-to/890715-custom-input-text-field-in-product-view-increasing-the-final-price-if-any-text#271972 "-- HikaShop version -- : Essential: 3.1.1 -- Joomla version -- : 3.7.2 -- PHP version -- : 5.6.20 -- Browser(s) name and version -- : 58.0.3029.110 (64-bit) Mac  Dear support  I know that I need to purchase the Business edition to use custom input text boxes in the products view (item), but still need to know first if this is posible:  I need to create a custom input text in the product view to the user input his name to customize the product and this will increase the final price if any text has filled in  so if the text input is empty then price doesnt change unless he writes some text on it so it will increase price of the product  many thanks danny")*

Thanks for the update, what I really need is the user to fill in the field some text instead an amount like his name or a color etc and if that field contains any text then applies the different price for it
will it be possible using the plugin for the donations?
many thanks
mixes

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg5MDcxNS1jdXN0b20taW5wdXQtdGV4dC1maWVsZC1pbi1wcm9kdWN0LXZpZXctaW5jcmVhc2luZy10aGUtZmluYWwtcHJpY2UtaWYtYW55LXRleHQ/dG1wbD1tYXJrZG93bg==) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86292
- Thank you received: 14269
-
-

9 years 4 months ago [\#271975](#271975) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[custom input text field in product view increasing the final price if any text](/forum/4-how-to/890715-custom-input-text-field-in-product-view-increasing-the-final-price-if-any-text#271975 "-- HikaShop version -- : Essential: 3.1.1 -- Joomla version -- : 3.7.2 -- PHP version -- : 5.6.20 -- Browser(s) name and version -- : 58.0.3029.110 (64-bit) Mac  Dear support  I know that I need to purchase the Business edition to use custom input text boxes in the products view (item), but still need to know first if this is posible:  I need to create a custom input text in the product view to the user input his name to customize the product and this will increase the final price if any text has filled in  so if the text input is empty then price doesnt change unless he writes some text on it so it will increase price of the product  many thanks danny")*

Hi,

With that plugin and the modification I gave in my previous message, it will be possible yes.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg5MDcxNS1jdXN0b20taW5wdXQtdGV4dC1maWVsZC1pbi1wcm9kdWN0LXZpZXctaW5jcmVhc2luZy10aGUtZmluYWwtcHJpY2UtaWYtYW55LXRleHQ/dG1wbD1tYXJrZG93bg==) 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.141 seconds

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

[](#top)
