How to update variant products price in mass action?

  • Posts: 126
  • Thank you received: 6
3 days 3 hours ago #365223

-- HikaShop version -- : 4.6.1
-- Joomla version -- : 4.1.3

Hi
I intended to update product prices using mass action. The products have variants. The main product's price was updated, but the prices of the variant products did not change.

Attachments:

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

  • Posts: 83050
  • Thank you received: 13412
  • MODERATOR
2 days 21 hours ago #365224

Hi,

A variant doesn't have a category column linked to it. Only the main product is linked to categories.
So, the problem is not the action, which, by itself, works as well on products as on variants.
The problem here is the filter, which automatically discard all the variants.
You would have to use a filter on the product_parent_id column where you could enter the id of the main product. That would automatically filter the entries to only keep the variants of that product.

The following user(s) said Thank You: levelup

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

  • Posts: 126
  • Thank you received: 6
2 days 16 hours ago #365227

Thank you for your response.
Is it possible to enter multiple values for product_parent_id so that the prices of variant products for several main products are updated?

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

  • Posts: 83050
  • Thank you received: 13412
  • MODERATOR
2 days 2 hours ago #365228

Hi,

Yes. You would have to change the operator from "=" to "regex" and then you could use a regex in the input field, like:

(123|456|789)
where 123, 456 and 789 are three product ids. And you can add as many ids as you want in the regex.

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

Time to create page: 0.068 seconds
Powered by Kunena Forum