- Posts: 76
- Thank you received: 2
Change price of all products by percentage?
- jberry210490
-
Topic Author
- Offline
Hopefully just a quick question...
Can you use mass action, or some other tool, to change the price of all your hikashop products at once? Would be good to change large selections of products by a given percentage to account for inflation each year...
Best wishes,
Jonathan
Please Log in or Create an account to join the conversation.
Yes you can and it is one of the goals of the mass action system.
www.hikashop.com/support/documentation/167-massaction-form.html
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
- jberry210490
-
Topic Author
- Offline
- Posts: 76
- Thank you received: 2
Thanks for this. Could you give a bit more detail, as I have read the documentation and failed to make it work.
Say I want to create a mass action that halfs all prices on the site (extreme I know, but just for example):
-I set data to "product"
-I don't apply a trigger as I only want it to happen when admin says "process".
-I don't apply a filter as I want it to happen on all products.
-I set the action to "update the values" with "product_price_percentage" = "int" "50"
When I say "process", nothing happens to the prices... What am I doing wrong?
Many thanks,
Jonathan
Please Log in or Create an account to join the conversation.
In the action you have to set "update the values" "price_value" = "operation" "price.price_value*0.5"
0.5 to half all the prices on the site, you can change this value to make another operation
Please Log in or Create an account to join the conversation.
This doesn't seem to work for me, please see attached. I have tried modifying your code to see if i need to add the prefix for the table to it as i know this is randomly generated by Joomla, either way i get errors. Has the name of something changed in more recent version Hikashop?
Thanks
Alex
Please Log in or Create an account to join the conversation.
Thanks for the report.
I have corrected the problem.
Thanks to edit the file "plugins\hikashop\massaction_product\massaction_product.php" and in the function "onProcessProductMassActionupdateValues()" replace:
Please Log in or Create an account to join the conversation.
Sorry for the slow reply i have been away. I tried your fix however i still get this error (attached).
Any ideas?
Thanks
Alex
Please Log in or Create an account to join the conversation.
In the MySQL query the id are duplicated, they shouldn't.
I am not able to reproduce that bug on my end, but some fixes have been made recently, thanks to replace the current function by this content:
If that doesn't work, I will need a FTP + backend access to debug.
Please Log in or Create an account to join the conversation.
Did you get my pm a couple of days ago?
Kind regards
Alex
Please Log in or Create an account to join the conversation.
Thanks
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
I updated hikashop the get the new email templates you added however this is now broken again was this bug not fixed in one of the hotfixes?
Kind regards
Alex
Please Log in or Create an account to join the conversation.
We don't made new release since this fix, so that couldn't be in the package.
The email feature is in the 2.2.2 since the 28 September.
Please Log in or Create an account to join the conversation.
Thanks.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- Posts: 5
- Thank you received: 0
Please Log in or Create an account to join the conversation.
Was this file in a different location before this as i asked the host and they say they cannot see the file be fore the date 17/11/13 and i have a 14 day backup on my server? Was it in another hikashop directory?
Thanks
Alex
Please Log in or Create an account to join the conversation.
@mishgan2004:
Thanks to enable the debug mode and set the error reporting level to maximum.
This should display possible errors. But I think that it's the same issue than the one encountered by Dibben.
So the fix will be in the next release.
@Dibben & @mishgan2004:
As I can remember, to fix that issue you have to replace the function "onProcessProductMassActionupdateValues" by:
Please Log in or Create an account to join the conversation.
It seems to work ok now for products with a vlue of £0.00 but the mass price % increase doesn't work.. Any ideas?
Thanks
Alex
Please Log in or Create an account to join the conversation.