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

#   error after using % of price for variations

##

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

Less More

- Posts: 7
- Thank you received: 0
-
-

8 years 5 months ago [\#293755](#293755) by [kikidesign](/forum/user/40727-kikidesign "View kikidesign's Profile")  *[error after using % of price for variations](/forum/32-content-creation/894936-error-after-using-of-price-for-variations#293755 "-- HikaShop version -- : 3.4.0 -- Joomla version -- : 3.8.8 -- PHP version -- : 7.1 -- Browser(s) name and version -- : firefox -- Error-message(debug-mod must be tuned on) -- : Warning: A non-numeric value encountered in /www/htdocs/&#42;&#42;&#42;&#42;&#42;&#42;&#42;&#42;&#42;&#42;/administrator/components/com&#95;hikashop/classes/product.php on line 3235  Hello,  If i use a % of the price of the mainproduct on a variation, i get an error: Warning: A non-numeric value encountered in /www/htdocs/&#42;&#42;&#42;&#42;&#42;&#42;&#42;&#42;&#42;&#42;/administrator/components/com&#95;hikashop/classes/product.php on line 3235 If i use as input prices, then there will be no error. But it is easier to use %. How can i solve this problem?  have a nice day!")* was created by *[kikidesign](/forum/user/40727-kikidesign "View kikidesign's Profile")*

-- HikaShop version -- : 3.4.0
-- Joomla version -- : 3.8.8
-- PHP version -- : 7.1
-- Browser(s) name and version -- : firefox
-- Error-message(debug-mod must be tuned on) -- : Warning: A non-numeric value encountered in /www/htdocs/**********/administrator/components/com_hikashop/classes/product.php on line 3235

Hello,

If i use a % of the price of the mainproduct on a variation, i get an error:
Warning: A non-numeric value encountered in /www/htdocs/**********/administrator/components/com_hikashop/classes/product.php on line 3235
If i use as input prices, then there will be no error. But it is easier to use %. How can i solve this problem?

have a nice day!

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

8 years 5 months ago [\#293760](#293760) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[error after using % of price for variations](/forum/32-content-creation/894936-error-after-using-of-price-for-variations#293760 "-- HikaShop version -- : 3.4.0 -- Joomla version -- : 3.8.8 -- PHP version -- : 7.1 -- Browser(s) name and version -- : firefox -- Error-message(debug-mod must be tuned on) -- : Warning: A non-numeric value encountered in /www/htdocs/&#42;&#42;&#42;&#42;&#42;&#42;&#42;&#42;&#42;&#42;/administrator/components/com&#95;hikashop/classes/product.php on line 3235  Hello,  If i use a % of the price of the mainproduct on a variation, i get an error: Warning: A non-numeric value encountered in /www/htdocs/&#42;&#42;&#42;&#42;&#42;&#42;&#42;&#42;&#42;&#42;/administrator/components/com&#95;hikashop/classes/product.php on line 3235 If i use as input prices, then there will be no error. But it is easier to use %. How can i solve this problem?  have a nice day!")*

Hello,

Could you please provide more details about the value you have for your product ?

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 7
- Thank you received: 0
-
-

8 years 5 months ago -  8 years 5 months ago [\#293795](#293795) by [kikidesign](/forum/user/40727-kikidesign "View kikidesign's Profile")  Replied by *[kikidesign](/forum/user/40727-kikidesign "View kikidesign's Profile")* on topic *[error after using % of price for variations](/forum/32-content-creation/894936-error-after-using-of-price-for-variations#293795 "-- HikaShop version -- : 3.4.0 -- Joomla version -- : 3.8.8 -- PHP version -- : 7.1 -- Browser(s) name and version -- : firefox -- Error-message(debug-mod must be tuned on) -- : Warning: A non-numeric value encountered in /www/htdocs/&#42;&#42;&#42;&#42;&#42;&#42;&#42;&#42;&#42;&#42;/administrator/components/com&#95;hikashop/classes/product.php on line 3235  Hello,  If i use a % of the price of the mainproduct on a variation, i get an error: Warning: A non-numeric value encountered in /www/htdocs/&#42;&#42;&#42;&#42;&#42;&#42;&#42;&#42;&#42;&#42;/administrator/components/com&#95;hikashop/classes/product.php on line 3235 If i use as input prices, then there will be no error. But it is easier to use %. How can i solve this problem?  have a nice day!")*

Hi Jerome,

thank for your reply. I attach the error and the input screen. I hope it will give you enough information.

bye,
kiki

- [ ![inputvarianten.PNG](/forum/attachment/43891) ](/forum/attachment/43891 "...tvarianten.PNG") [ ](/forum/attachment/43891?download=1 "...tvarianten.PNG")
- [ ![website.PNG](/forum/attachment/43892) ](/forum/attachment/43892 "website.PNG") [ ](/forum/attachment/43892?download=1 "website.PNG")

Last edit: 8 years 5 months ago by [kikidesign](/forum/user/40727-kikidesign "View kikidesign's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vODk0OTM2LWVycm9yLWFmdGVyLXVzaW5nLW9mLXByaWNlLWZvci12YXJpYXRpb25zP3RtcGw9bWFya2Rvd24=) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

8 years 5 months ago [\#293800](#293800) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[error after using % of price for variations](/forum/32-content-creation/894936-error-after-using-of-price-for-variations#293800 "-- HikaShop version -- : 3.4.0 -- Joomla version -- : 3.8.8 -- PHP version -- : 7.1 -- Browser(s) name and version -- : firefox -- Error-message(debug-mod must be tuned on) -- : Warning: A non-numeric value encountered in /www/htdocs/&#42;&#42;&#42;&#42;&#42;&#42;&#42;&#42;&#42;&#42;/administrator/components/com&#95;hikashop/classes/product.php on line 3235  Hello,  If i use a % of the price of the mainproduct on a variation, i get an error: Warning: A non-numeric value encountered in /www/htdocs/&#42;&#42;&#42;&#42;&#42;&#42;&#42;&#42;&#42;&#42;/administrator/components/com&#95;hikashop/classes/product.php on line 3235 If i use as input prices, then there will be no error. But it is easier to use %. How can i solve this problem?  have a nice day!")*

Hi,

Thank you for your feedback.
Change the line: Code:

} elseif(!in_array($key,array('price_currency_id','price_orig_currency_id','price_min_quantity','price_access', 'price_users'))) {

to: Code:

} elseif(is_numeric($value) &amp;&amp; !in_array($key,array('price_currency_id','price_orig_currency_id','price_min_quantity','price_access', 'price_users'))) {

in the file administrator/components/com_hikashop/classes/product.php and that will remove these warnings.
We'll also add that patch on our end.

The following user(s) said Thank You: [kikidesign](/forum/user/40727-kikidesign "View kikidesign's Profile")

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

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

Less More

- Posts: 7
- Thank you received: 0
-
-

8 years 5 months ago [\#293883](#293883) by [kikidesign](/forum/user/40727-kikidesign "View kikidesign's Profile")  Replied by *[kikidesign](/forum/user/40727-kikidesign "View kikidesign's Profile")* on topic *[error after using % of price for variations](/forum/32-content-creation/894936-error-after-using-of-price-for-variations#293883 "-- HikaShop version -- : 3.4.0 -- Joomla version -- : 3.8.8 -- PHP version -- : 7.1 -- Browser(s) name and version -- : firefox -- Error-message(debug-mod must be tuned on) -- : Warning: A non-numeric value encountered in /www/htdocs/&#42;&#42;&#42;&#42;&#42;&#42;&#42;&#42;&#42;&#42;/administrator/components/com&#95;hikashop/classes/product.php on line 3235  Hello,  If i use a % of the price of the mainproduct on a variation, i get an error: Warning: A non-numeric value encountered in /www/htdocs/&#42;&#42;&#42;&#42;&#42;&#42;&#42;&#42;&#42;&#42;/administrator/components/com&#95;hikashop/classes/product.php on line 3235 If i use as input prices, then there will be no error. But it is easier to use %. How can i solve this problem?  have a nice day!")*

We installed the package but it didnt solve the problem. Changing the line in php solved it.
Thanks for the great support!
have a nice day
kiki

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vODk0OTM2LWVycm9yLWFmdGVyLXVzaW5nLW9mLXByaWNlLWZvci12YXJpYXRpb25zP3RtcGw9bWFya2Rvd24=) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

8 years 5 months ago [\#293886](#293886) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[error after using % of price for variations](/forum/32-content-creation/894936-error-after-using-of-price-for-variations#293886 "-- HikaShop version -- : 3.4.0 -- Joomla version -- : 3.8.8 -- PHP version -- : 7.1 -- Browser(s) name and version -- : firefox -- Error-message(debug-mod must be tuned on) -- : Warning: A non-numeric value encountered in /www/htdocs/&#42;&#42;&#42;&#42;&#42;&#42;&#42;&#42;&#42;&#42;/administrator/components/com&#95;hikashop/classes/product.php on line 3235  Hello,  If i use a % of the price of the mainproduct on a variation, i get an error: Warning: A non-numeric value encountered in /www/htdocs/&#42;&#42;&#42;&#42;&#42;&#42;&#42;&#42;&#42;&#42;/administrator/components/com&#95;hikashop/classes/product.php on line 3235 If i use as input prices, then there will be no error. But it is easier to use %. How can i solve this problem?  have a nice day!")*

Hi,

The patch will be in the next version so it's normal that installing the package available didn't solve the problem ![:)](/media/kunena/emoticons/3.png ":)")

The following user(s) said Thank You: [kikidesign](/forum/user/40727-kikidesign "View kikidesign's Profile")

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

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