- Posts: 145
- Thank you received: 6
How to update variant products price in mass action?
1 year 8 months ago #365223
by levelup
Life is the unique stage of our art. Everyone sings their own song and leaves the stage. The stage is always permanent. Blessed is that song that people remember.
How to update variant products price in mass action? was created by levelup
-- 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.
-- 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.
Life is the unique stage of our art. Everyone sings their own song and leaves the stage. The stage is always permanent. Blessed is that song that people remember.
Please Log in or Create an account to join the conversation.
1 year 8 months ago #365224
by nicolas
Replied by nicolas on topic How to update variant products price in mass action?
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.
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.
1 year 8 months ago #365227
by levelup
Life is the unique stage of our art. Everyone sings their own song and leaves the stage. The stage is always permanent. Blessed is that song that people remember.
Replied by levelup on topic How to update variant products price in mass action?
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?
Is it possible to enter multiple values for product_parent_id so that the prices of variant products for several main products are updated?
Life is the unique stage of our art. Everyone sings their own song and leaves the stage. The stage is always permanent. Blessed is that song that people remember.
Please Log in or Create an account to join the conversation.
1 year 8 months ago #365228
by nicolas
Replied by nicolas on topic How to update variant products price in mass action?
Hi,
Yes. You would have to change the operator from "=" to "regex" and then you could use a regex in the input field, like:
where 123, 456 and 789 are three product ids. And you can add as many ids as you want in the regex.
Yes. You would have to change the operator from "=" to "regex" and then you could use a regex in the input field, like:
Code:
(123|456|789)
The following user(s) said Thank You: levelup
Please Log in or Create an account to join the conversation.
Time to create page: 0.232 seconds