Skip to main content

SOLVED Mass action to copy price to product_msrp

10 years 2 weeks ago - 10 years 2 weeks ago #254745 by huwhuw
-- HikaShop version -- : 2.6.4

Hi is it possible to update all Retail Prices (product_msrp) from the Price field using a mass action.
My client needs to filter their products by Price ascending and (correct me if I'm wrong) it seems the only way to do this if each product has a "Retail Price"
There are hundred of products so doing this manually is not an option.
Unless there is another way of displaying products via price ascending by default?
Last edit: 10 years 2 weeks ago by huwhuw.

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

10 years 2 weeks ago #254750 by Jerome
Hi,

It is one way in HikaShop 2.6.x ; but instead of the "msrp" you can use a product custom field. So it will not change the website display for the prices.
Afterwards, in HikaShop 3.x ; the price sorting feature has been implemented so it will be a native feature in the future.

For the mass action configuration, the usage of "OPERATION" is recommended.
www.hikashop.com/forum/mass-actions/8860...-actions.html#247802

Regards,

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

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

10 years 2 weeks ago #254807 by huwhuw
Thanks is there a mass action operation that will transfer all my prices into a custom field? I need to get price ascending order sorted - glad to hear this is coming in v3

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

10 years 2 weeks ago #254826 by nicolas
Hi,

Yes. You need to use an action "update the values" on the column product_msrp being equal the operation {price.price_value} and it will copy the prices to the msrp field when you process the mass action.

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

10 years 2 weeks ago - 10 years 2 weeks ago #255016 by huwhuw
Thanks Nicolas
I did as instructed see screen shot
[strike]Saved And processed the action - it doesnt seem to have any affect (no error message and no processing message)
[/strike]Using hika2.6.4 and Joomla3.6.4
[strike]If i put curly brackets in {price.price_value} it says error table {price does not exist.
[/strike]
SOLVED: It actually worked perfectly there were a lot of products with null values hence null was copied to product_msrp - all the ones with prices have been updated successfully
Best wishes and thanks for the support
Last edit: 10 years 2 weeks ago by huwhuw.

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

Time to create page: 0.063 seconds
Powered by Kunena Forum