[Skip to main content](#vessel-content)

#   Null values ​​in Mass Actions

##

- **[levelup](/forum/user/61801-levelup "View levelup's Profile")**
- [![levelup's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/61801-levelup "View levelup's Profile") Topic Author
- [ Offline](/forum/user/61801-levelup)

Less More

- Posts: 145
- Thank you received: 6
-
-

10 months 1 week ago [\#369811](#369811) by [levelup](/forum/user/61801-levelup "View levelup's Profile")  *[Null values ​​in Mass Actions](/forum/44-mass-actions/909988-null-values-in-mass-actions#369811 "I want to increase the price by 40% on the price column. To do this, I used the tutorial in this link:  This method works well on products that do not have variants, but if you have a product that has variants, it sets the price of the variant product to zero. That is, it writes the number 0 in the price column. Therefore, variant products cannot inherit the price from the main product. As far as I know, in the backend product management of Hikashop, we cannot give a product a zero price, but an empty price column means that it is zero. (Although it would be nice if we could have a zero value and a null value for variant products so that those that are zero are free and those that are null inherit the price from the main product). Therefore, the correct value 0 should not be written there. I think this is implemented incorrectly. How can I change the price of variant products that are not null and also the price of the main products by 40%, but leave the variant products whose price is null unchanged and the zero value in their price column not calculated?")* was created by *[levelup](/forum/user/61801-levelup "View levelup's Profile")*

I want to increase the price by 40% on the price column. To do this, I used the tutorial in this link:
[ ](https://www.hikashop.com/forum/mass-actions/861153-change-price-of-all-products-by-percentage.html)[ www.hikashop.com/forum/mass-actions/8611...s-by-percentage.html](https://www.hikashop.com/forum/mass-actions/861153-change-price-of-all-products-by-percentage.htmlhttps://www.hikashop.com/forum/mass-actions/861153-change-price-of-all-products-by-percentage.html)

[ ![increaseinproductprices.jpg](/forum/attachment/61086) ](/forum/attachment/61086 "...ductprices.jpg")

This method works well on products that do not have variants, but if you have a product that has variants, it sets the price of the variant product to zero. That is, it writes the number 0 in the price column. Therefore, variant products cannot inherit the price from the main product.
As far as I know, in the backend product management of Hikashop, we cannot give a product a zero price, but an empty price column means that it is zero. (Although it would be nice if we could have a zero value and a null value for variant products so that those that are zero are free and those that are null inherit the price from the main product).
Therefore, the correct value 0 should not be written there. I think this is implemented incorrectly.
How can I change the price of variant products that are not null and also the price of the main products by 40%, but leave the variant products whose price is null unchanged and the zero value in their price column not calculated?

---

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.

- [ ![increaseinproductprices.jpg](/forum/attachment/61086) ](/forum/attachment/61086 "...ductprices.jpg") [ ](/forum/attachment/61086?download=1 "...ductprices.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ0LW1hc3MtYWN0aW9ucy85MDk5ODgtbnVsbC12YWx1ZXMtaW4tbWFzcy1hY3Rpb25zP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14279
-
-

10 months 1 week ago [\#369814](#369814) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Null values ​​in Mass Actions](/forum/44-mass-actions/909988-null-values-in-mass-actions#369814 "I want to increase the price by 40% on the price column. To do this, I used the tutorial in this link:  This method works well on products that do not have variants, but if you have a product that has variants, it sets the price of the variant product to zero. That is, it writes the number 0 in the price column. Therefore, variant products cannot inherit the price from the main product. As far as I know, in the backend product management of Hikashop, we cannot give a product a zero price, but an empty price column means that it is zero. (Although it would be nice if we could have a zero value and a null value for variant products so that those that are zero are free and those that are null inherit the price from the main product). Therefore, the correct value 0 should not be written there. I think this is implemented incorrectly. How can I change the price of variant products that are not null and also the price of the main products by 40%, but leave the variant products whose price is null unchanged and the zero value in their price column not calculated?")*

Hi,

When a product or variant doesn't have a price, the mass action will create it for you. This is useful and how we meant it to be.
For example, suppose that you have a category with products without a price at all and you want to set the price of all of them to 10€ at once. With the "update the values" action on these products' price_value column, you'll be able to add these prices all at once.

The filter in your mass action should indeed discard products or variants without a price. However, the "is not null" is somewhat tricky to apply in some cases. I remember we already fix an issue like this in the past with "is not null". You didn't say which version you have so maybe it comes from that ?
What I would recommend is to change your filter to price_value &gt; 0
This should work better to skip products and variants without prices set in them.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ0LW1hc3MtYWN0aW9ucy85MDk5ODgtbnVsbC12YWx1ZXMtaW4tbWFzcy1hY3Rpb25zP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[levelup](/forum/user/61801-levelup "View levelup's Profile")**
- [![levelup's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/61801-levelup "View levelup's Profile") Topic Author
- [ Offline](/forum/user/61801-levelup)

Less More

- Posts: 145
- Thank you received: 6
-
-

10 months 1 week ago [\#369822](#369822) by [levelup](/forum/user/61801-levelup "View levelup's Profile")  Replied by *[levelup](/forum/user/61801-levelup "View levelup's Profile")* on topic *[Null values ​​in Mass Actions](/forum/44-mass-actions/909988-null-values-in-mass-actions#369822 "I want to increase the price by 40% on the price column. To do this, I used the tutorial in this link:  This method works well on products that do not have variants, but if you have a product that has variants, it sets the price of the variant product to zero. That is, it writes the number 0 in the price column. Therefore, variant products cannot inherit the price from the main product. As far as I know, in the backend product management of Hikashop, we cannot give a product a zero price, but an empty price column means that it is zero. (Although it would be nice if we could have a zero value and a null value for variant products so that those that are zero are free and those that are null inherit the price from the main product). Therefore, the correct value 0 should not be written there. I think this is implemented incorrectly. How can I change the price of variant products that are not null and also the price of the main products by 40%, but leave the variant products whose price is null unchanged and the zero value in their price column not calculated?")*

I use hikashop 5.1.0

---

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ0LW1hc3MtYWN0aW9ucy85MDk5ODgtbnVsbC12YWx1ZXMtaW4tbWFzcy1hY3Rpb25zP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14279
-
-

10 months 1 week ago [\#369823](#369823) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Null values ​​in Mass Actions](/forum/44-mass-actions/909988-null-values-in-mass-actions#369823 "I want to increase the price by 40% on the price column. To do this, I used the tutorial in this link:  This method works well on products that do not have variants, but if you have a product that has variants, it sets the price of the variant product to zero. That is, it writes the number 0 in the price column. Therefore, variant products cannot inherit the price from the main product. As far as I know, in the backend product management of Hikashop, we cannot give a product a zero price, but an empty price column means that it is zero. (Although it would be nice if we could have a zero value and a null value for variant products so that those that are zero are free and those that are null inherit the price from the main product). Therefore, the correct value 0 should not be written there. I think this is implemented incorrectly. How can I change the price of variant products that are not null and also the price of the main products by 40%, but leave the variant products whose price is null unchanged and the zero value in their price column not calculated?")*

Hi,

Oh, then that's probably why. If you can't update, then try with the &gt; 0 as I said in my message. It should work properly.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ0LW1hc3MtYWN0aW9ucy85MDk5ODgtbnVsbC12YWx1ZXMtaW4tbWFzcy1hY3Rpb25zP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.065 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
