mass action stopped working

  • Posts: 13
  • Thank you received: 0
9 years 2 months ago #218538

-- 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

Attachments:

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

  • Posts: 13
  • Thank you received: 0
9 years 2 months ago #218548

Hi

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





Best regards GG

Attachments:

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

  • Posts: 13201
  • Thank you received: 2322
9 years 1 month ago #218581

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.

  • Posts: 13
  • Thank you received: 0
9 years 1 month ago #218627

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

Attachments:

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

  • Posts: 13
  • Thank you received: 0
9 years 1 month ago #218667

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.

  • Posts: 13201
  • Thank you received: 2322
9 years 1 month ago #218676

Hi,

Thanks for the report, please edit the file "administator/components/com_hikashop/classes/massaction.php" and in the function "updateValuesSecure()" replace:

$symbols = array('%','+','-','/','*','(',')');
By:
$symbols = array('%','+','-','/','*','(',')','.');

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

Time to create page: 0.100 seconds
Powered by Kunena Forum