- Posts: 377
- Thank you received: 7
Mass Action Not Completing Fully
13 years 2 days ago #125016
by Dibben
Mass Action Not Completing Fully was created by Dibben
-- HikaShop version -- : 2.2.1
-- Joomla version -- : 3.1
-- PHP version -- : 5.3.72
Hi, I have created a mass action, please see attached. It seems to only process about 1000 products at a time. So i click on process, then it will delete 1000 products. I will then have to ask it to process again for it to delete more products, even though i can see that it has found all the products according to the filter, is this normal?
Thanks
Alex
-- Joomla version -- : 3.1
-- PHP version -- : 5.3.72
Hi, I have created a mass action, please see attached. It seems to only process about 1000 products at a time. So i click on process, then it will delete 1000 products. I will then have to ask it to process again for it to delete more products, even though i can see that it has found all the products according to the filter, is this normal?
Thanks
Alex
Please Log in or Create an account to join the conversation.
13 years 2 days ago #125047
by Xavier
Replied by Xavier on topic Mass Action Not Completing Fully
Hi,
We have to improve the mass actions, actually you have to do many process.
It's already on our todo list. This should be in HikaShop 2.3.0.
We have to improve the mass actions, actually you have to do many process.
It's already on our todo list. This should be in HikaShop 2.3.0.
Please Log in or Create an account to join the conversation.
13 years 2 days ago #125048
by Dibben
Replied by Dibben on topic Mass Action Not Completing Fully
Ok thank you for the quick response, is there any danger in me deleting the products for now via php my admin in the table rows?
Thanks
Alex
Thanks
Alex
Please Log in or Create an account to join the conversation.
13 years 2 days ago #125069
by Xavier
Replied by Xavier on topic Mass Action Not Completing Fully
I just checked the code and a modification has already been made.
Can you check in "plugins\hikashop\massaction_product\massaction_product.php" if the function is:
If it's not, thansk to replace it.
Can you check in "plugins\hikashop\massaction_product\massaction_product.php" if the function is:
Code:
function onProcessProductMassActiondeleteElements(&$elements,&$action,$k, $start = 0){
$ids = array();
$i = 0;
$productClass = hikashop_get('class.product');
foreach($elements as $element){
$nb = $i - $start;
if($nb >= 0 && $nb < 500){
$ids[] = $element->product_id;
$i++;
}elseif($nb >= 500){
$result = $productClass->delete($ids);
$start = $start + 500;
$this->onProcessProductMassActiondeleteElements($elements,$action,$k, $start);
}
}
}
Please Log in or Create an account to join the conversation.
13 years 2 days ago #125091
by Dibben
Replied by Dibben on topic Mass Action Not Completing Fully
Thanks I have updated this file, i still need to test it as i have now imported the products ok.
Please Log in or Create an account to join the conversation.
13 years 1 day ago #125178
by Dibben
Replied by Dibben on topic Mass Action Not Completing Fully
I have tested this again however it doesn't seem to delete any products so for now i shall have to just truncate the rows in the product table via phpmyadmin, do you know when the new release might be out so i can update hikashop?
Thanks.
Thanks.
Please Log in or Create an account to join the conversation.
13 years 1 day ago #125184
by Xavier
Replied by Xavier on topic Mass Action Not Completing Fully
The 2.2.2 should be released this week. But for the 2.3.0 we can't give a date for the moment.
Please Log in or Create an account to join the conversation.
13 years 1 day ago #125185
by Dibben
Replied by Dibben on topic Mass Action Not Completing Fully
Ok thanks for the update.
I have some more problems with an import at the moment but i think I should open these on a new thread? Nicolas has helped me via email but i think it might be quicker to do via the forum?
Thanks
Alex
I have some more problems with an import at the moment but i think I should open these on a new thread? Nicolas has helped me via email but i think it might be quicker to do via the forum?
Thanks
Alex
Please Log in or Create an account to join the conversation.
13 years 1 day ago #125203
by Xavier
Replied by Xavier on topic Mass Action Not Completing Fully
Yes, thanks to open a new thread as it's not related on the mass actions.
And on the forum, it can be quicker, we are more to answer.
And on the forum, it can be quicker, we are more to answer.
Please Log in or Create an account to join the conversation.
13 years 1 day ago #125208
by Dibben
Replied by Dibben on topic Mass Action Not Completing Fully
Ok thanks.
Please Log in or Create an account to join the conversation.
Time to create page: 0.315 seconds