Skip to main content

mass action stopped working

More
10 years 11 months ago #218538 by 1448giorgio
-- HikaShop version -- : 2.6.0
-- Joomla version -- : 2.5.24
-- PHP version -- : 5.5.12

Hello

I was running an hourly mass action on price_value
the price of all products (3 products)was getting lower by a fixed amount

After having done the update from 2.5 to 2.6.0 the action stopped working

information message is attached


It seems tab 0 was missed
Pease how can solve this issue ?
Best regards GG

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

More
10 years 11 months ago #218548 by 1448giorgio
Hi

I have cheched ...... and with integers the action works ..... and it does not work with decimal numbers




Best regards GG

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

More
10 years 11 months ago #218581 by Xavier
Replied by Xavier on topic mass action stopped working
Hi,

Please try to use that string: "price.price_value-0.2" instead of "-0.2".

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

More
10 years 11 months ago #218627 by 1448giorgio
Hi

I have tried but it still fails working.

Please take a look at the second attached file .......I used a modified string just to make try with a value > 1
The information comes the same but tab is 1 .......








Best regards GG

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

More
10 years 10 months ago #218667 by 1448giorgio
Hi

Anyway I have got a message from a friend of mine and it may be useful for other user :
belew is the message :
The updated hikashop does not use point "." as the decimal separator.
So when you set "0.2" then it confuses it with a different thing (point is used for classes and tables).
The strange thing is it that the comma also does not functioning as the decimal separator
(tried "-0,2") so at the end i set up it as "-1/5" as 1/5=0.2 and it works. I think somewhere in the settings the decimal separator is misconfigured, but right now i don't have enough time to check it.


It may be that more investigation could fix the issue if any

Best regards GG

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

More
10 years 10 months ago #218676 by Xavier
Replied by Xavier on topic mass action stopped working
Hi,

Thanks for the report, please edit the file "administator/components/com_hikashop/classes/massaction.php" and in the function "updateValuesSecure()" replace:
Code:
$symbols = array('%','+','-','/','*','(',')');
By:
Code:
$symbols = array('%','+','-','/','*','(',')','.');

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

Time to create page: 0.247 seconds
Powered by Kunena Forum