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

#   Mass Action Filter Error

##

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

Less More

- Posts: 46
- Thank you received: 6
-
-

1 year 8 months ago [\#366245](#366245) by [cmb](/forum/user/9805-cmb "View cmb's Profile")  *[Mass Action Filter Error](/forum/44-mass-actions/909259-mass-action-filter-error#366245 "-- HikaShop version -- : 5.1.5 -- Joomla version -- : 4.4.12 -- PHP version -- : 8.2.27 -- Browser(s) name and version -- : Firefox 136.0.1 -- Error-message(debug-mod must be tuned on) -- : None  I have written a Mass Action to display the price&#95;values of products that have a product&#95;name containing the string boot.  Name: Display Selected Product Prices Description: Show the prices of selected products with certain text in the product name. Data: Product Product: no triggers Filters: Product columns &gt; product&#95;name Contains boot (35 results before Save) Limitations &gt; Start: 0 Value: 10000 Actions: Display the results (product&#95;id, product&#95;name, price&#95;value)  Back in the Products section, I select all products and then select the Display Selected Product Prices button.  The table displayed shows 35 lines with the word boot. Unfortunately there are an additional 58 lines with product&#95;names that do not contain that word.  Examples: F80 E Brake Handle, Z4 E85 Manual Shift Knob, E82 DCT Thick M Sport Steering Wheel.  If I switch to the CSV output, the results are the same. If I switch the product&#95;name filter to LIKE %boot%, the result is the same. If I switch the product&#95;name filter to REGEXP, .&#42;boot.&#42;, the result is still wrong. If I try other strings in the product&#95;name, the output still has more matches than it should.  What can I do to fix this problem?")* was created by *[cmb](/forum/user/9805-cmb "View cmb's Profile")*

-- HikaShop version -- : 5.1.5
-- Joomla version -- : 4.4.12
-- PHP version -- : 8.2.27
-- Browser(s) name and version -- : Firefox 136.0.1
-- Error-message(debug-mod must be tuned on) -- : None

I have written a Mass Action to display the *price\_value*s of products that have a *product\_name* containing the string *boot*.

Name: Display Selected Product Prices
Description: Show the prices of selected products with certain text in the product name.
Data: Product
Product: no triggers
Filters: Product columns &gt; product_name Contains boot (*35 results* before Save)
Limitations &gt; Start: 0 Value: 10000
Actions: Display the results (*product\_id*, *product\_name*, *price\_value*)

Back in the Products section, I select all products and then select the *Display Selected Product Prices* button.

The table displayed shows 35 lines with the word *boot*. Unfortunately there are an **additional** 58 lines with *product\_name*s that do **not** contain that word.

Examples: F80 E Brake Handle, Z4 E85 Manual Shift Knob, E82 DCT Thick M Sport Steering Wheel.

If I switch to the CSV output, the results are the same.
If I switch the *product\_name* filter to *LIKE %boot%*, the result is the same.
If I switch the *product\_name* filter to *REGEXP, .\*boot.\**, the result is still wrong.
If I try other strings in the *product\_name*, the output still has more matches than it should.

What can I do to fix this problem?

---

Charles

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ0LW1hc3MtYWN0aW9ucy85MDkyNTktbWFzcy1hY3Rpb24tZmlsdGVyLWVycm9yP3RtcGw9bWFya2Rvd24=) 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: 86592
- Thank you received: 14329
-
-

1 year 8 months ago [\#366246](#366246) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Mass Action Filter Error](/forum/44-mass-actions/909259-mass-action-filter-error#366246 "-- HikaShop version -- : 5.1.5 -- Joomla version -- : 4.4.12 -- PHP version -- : 8.2.27 -- Browser(s) name and version -- : Firefox 136.0.1 -- Error-message(debug-mod must be tuned on) -- : None  I have written a Mass Action to display the price&#95;values of products that have a product&#95;name containing the string boot.  Name: Display Selected Product Prices Description: Show the prices of selected products with certain text in the product name. Data: Product Product: no triggers Filters: Product columns &gt; product&#95;name Contains boot (35 results before Save) Limitations &gt; Start: 0 Value: 10000 Actions: Display the results (product&#95;id, product&#95;name, price&#95;value)  Back in the Products section, I select all products and then select the Display Selected Product Prices button.  The table displayed shows 35 lines with the word boot. Unfortunately there are an additional 58 lines with product&#95;names that do not contain that word.  Examples: F80 E Brake Handle, Z4 E85 Manual Shift Knob, E82 DCT Thick M Sport Steering Wheel.  If I switch to the CSV output, the results are the same. If I switch the product&#95;name filter to LIKE %boot%, the result is the same. If I switch the product&#95;name filter to REGEXP, .&#42;boot.&#42;, the result is still wrong. If I try other strings in the product&#95;name, the output still has more matches than it should.  What can I do to fix this problem?")*

Hi,

From what I understand you've activated the "actions as a button" setting of the mass action so that you get a button with the name of the mass action on the backend products listing.
And you're then using this button on the products that you select in the listing.
As the name of the setting implies, the button will only run the actions of the mass action on the product you select in your backend.

When you run a mass action with the "process" button, you don't select any product, so by default, it takes into account all the products. Thus, filtering is necessary.
We figured that there is little point in running the filters of the mass action when using the action button since you're the one selecting the products before clicking the action button.
So, if you select 93 products on the listing and click on the action button, the actions of the mass action will run on the 93 products, regardless of the filters configured in the mass action.

So it is not an error. The system is meant to work like this.
If you need to filter the products based on their name, you could just use the search input field at the top of the products listing to first filter the products listing, and then only select the remaining 35 products before clicking on the action button.

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

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

Less More

- Posts: 46
- Thank you received: 6
-
-

1 year 8 months ago [\#366267](#366267) by [cmb](/forum/user/9805-cmb "View cmb's Profile")  Replied by *[cmb](/forum/user/9805-cmb "View cmb's Profile")* on topic *[Mass Action Filter Error](/forum/44-mass-actions/909259-mass-action-filter-error#366267 "-- HikaShop version -- : 5.1.5 -- Joomla version -- : 4.4.12 -- PHP version -- : 8.2.27 -- Browser(s) name and version -- : Firefox 136.0.1 -- Error-message(debug-mod must be tuned on) -- : None  I have written a Mass Action to display the price&#95;values of products that have a product&#95;name containing the string boot.  Name: Display Selected Product Prices Description: Show the prices of selected products with certain text in the product name. Data: Product Product: no triggers Filters: Product columns &gt; product&#95;name Contains boot (35 results before Save) Limitations &gt; Start: 0 Value: 10000 Actions: Display the results (product&#95;id, product&#95;name, price&#95;value)  Back in the Products section, I select all products and then select the Display Selected Product Prices button.  The table displayed shows 35 lines with the word boot. Unfortunately there are an additional 58 lines with product&#95;names that do not contain that word.  Examples: F80 E Brake Handle, Z4 E85 Manual Shift Knob, E82 DCT Thick M Sport Steering Wheel.  If I switch to the CSV output, the results are the same. If I switch the product&#95;name filter to LIKE %boot%, the result is the same. If I switch the product&#95;name filter to REGEXP, .&#42;boot.&#42;, the result is still wrong. If I try other strings in the product&#95;name, the output still has more matches than it should.  What can I do to fix this problem?")*

> nicolas wrote: We figured that there is little point in running the filters of the mass action when using the action button since you're the one selecting the products before clicking the action button.
> So, if you select 93 products on the listing and click on the action button, the actions of the mass action will run on the 93 products, regardless of the filters configured in the mass action.

That behaviour is not noted in the [ documentation.](https://www.hikashop.com/support/documentation/167-massaction-form.html) A cautionary note should be added to that page. I suggest, "*Caution: Even though entered and saved, Mass Action filters might be ignored in some scenarios.*" Perhaps that will prompt the website Administrator to scrutinize the display and investigate further.

---

Charles

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ0LW1hc3MtYWN0aW9ucy85MDkyNTktbWFzcy1hY3Rpb24tZmlsdGVyLWVycm9yP3RtcGw9bWFya2Rvd24=) 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: 86592
- Thank you received: 14329
-
-

1 year 8 months ago -  1 year 8 months ago [\#366268](#366268) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Mass Action Filter Error](/forum/44-mass-actions/909259-mass-action-filter-error#366268 "-- HikaShop version -- : 5.1.5 -- Joomla version -- : 4.4.12 -- PHP version -- : 8.2.27 -- Browser(s) name and version -- : Firefox 136.0.1 -- Error-message(debug-mod must be tuned on) -- : None  I have written a Mass Action to display the price&#95;values of products that have a product&#95;name containing the string boot.  Name: Display Selected Product Prices Description: Show the prices of selected products with certain text in the product name. Data: Product Product: no triggers Filters: Product columns &gt; product&#95;name Contains boot (35 results before Save) Limitations &gt; Start: 0 Value: 10000 Actions: Display the results (product&#95;id, product&#95;name, price&#95;value)  Back in the Products section, I select all products and then select the Display Selected Product Prices button.  The table displayed shows 35 lines with the word boot. Unfortunately there are an additional 58 lines with product&#95;names that do not contain that word.  Examples: F80 E Brake Handle, Z4 E85 Manual Shift Knob, E82 DCT Thick M Sport Steering Wheel.  If I switch to the CSV output, the results are the same. If I switch the product&#95;name filter to LIKE %boot%, the result is the same. If I switch the product&#95;name filter to REGEXP, .&#42;boot.&#42;, the result is still wrong. If I try other strings in the product&#95;name, the output still has more matches than it should.  What can I do to fix this problem?")*

Hi,

Thanks but this is already explained on the documentation page though. Here :
[ www.hikashop.com/support/documentation/1...ion-form.html#action](https://www.hikashop.com/support/documentation/167-massaction-form.html#action)

> Here, we activate the "Actions as a button" setting of the mass action.
> This will add an extra button to the corresponding listing in the backend with the name of the mass action as label of the button.
> When the button will be pressed, the actions of the mass action will run on the selected elements.
> Warning: Triggers, filters and limitations will be ignored when the action button is pressed. Only the actions will be processed.

Last edit: 1 year 8 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

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

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

Less More

- Posts: 46
- Thank you received: 6
-
-

1 year 8 months ago [\#366274](#366274) by [cmb](/forum/user/9805-cmb "View cmb's Profile")  Replied by *[cmb](/forum/user/9805-cmb "View cmb's Profile")* on topic *[Mass Action Filter Error](/forum/44-mass-actions/909259-mass-action-filter-error#366274 "-- HikaShop version -- : 5.1.5 -- Joomla version -- : 4.4.12 -- PHP version -- : 8.2.27 -- Browser(s) name and version -- : Firefox 136.0.1 -- Error-message(debug-mod must be tuned on) -- : None  I have written a Mass Action to display the price&#95;values of products that have a product&#95;name containing the string boot.  Name: Display Selected Product Prices Description: Show the prices of selected products with certain text in the product name. Data: Product Product: no triggers Filters: Product columns &gt; product&#95;name Contains boot (35 results before Save) Limitations &gt; Start: 0 Value: 10000 Actions: Display the results (product&#95;id, product&#95;name, price&#95;value)  Back in the Products section, I select all products and then select the Display Selected Product Prices button.  The table displayed shows 35 lines with the word boot. Unfortunately there are an additional 58 lines with product&#95;names that do not contain that word.  Examples: F80 E Brake Handle, Z4 E85 Manual Shift Knob, E82 DCT Thick M Sport Steering Wheel.  If I switch to the CSV output, the results are the same. If I switch the product&#95;name filter to LIKE %boot%, the result is the same. If I switch the product&#95;name filter to REGEXP, .&#42;boot.&#42;, the result is still wrong. If I try other strings in the product&#95;name, the output still has more matches than it should.  What can I do to fix this problem?")*

During some future software revision, you could also add the Warning to the Actions as a button tootip.

---

Charles

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ0LW1hc3MtYWN0aW9ucy85MDkyNTktbWFzcy1hY3Rpb24tZmlsdGVyLWVycm9yP3RtcGw9bWFya2Rvd24=) 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: 86592
- Thank you received: 14329
-
-

1 year 8 months ago [\#366277](#366277) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Mass Action Filter Error](/forum/44-mass-actions/909259-mass-action-filter-error#366277 "-- HikaShop version -- : 5.1.5 -- Joomla version -- : 4.4.12 -- PHP version -- : 8.2.27 -- Browser(s) name and version -- : Firefox 136.0.1 -- Error-message(debug-mod must be tuned on) -- : None  I have written a Mass Action to display the price&#95;values of products that have a product&#95;name containing the string boot.  Name: Display Selected Product Prices Description: Show the prices of selected products with certain text in the product name. Data: Product Product: no triggers Filters: Product columns &gt; product&#95;name Contains boot (35 results before Save) Limitations &gt; Start: 0 Value: 10000 Actions: Display the results (product&#95;id, product&#95;name, price&#95;value)  Back in the Products section, I select all products and then select the Display Selected Product Prices button.  The table displayed shows 35 lines with the word boot. Unfortunately there are an additional 58 lines with product&#95;names that do not contain that word.  Examples: F80 E Brake Handle, Z4 E85 Manual Shift Knob, E82 DCT Thick M Sport Steering Wheel.  If I switch to the CSV output, the results are the same. If I switch the product&#95;name filter to LIKE %boot%, the result is the same. If I switch the product&#95;name filter to REGEXP, .&#42;boot.&#42;, the result is still wrong. If I try other strings in the product&#95;name, the output still has more matches than it should.  What can I do to fix this problem?")*

That's a good idea. Thanks for the feedback.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ0LW1hc3MtYWN0aW9ucy85MDkyNTktbWFzcy1hY3Rpb24tZmlsdGVyLWVycm9yP3RtcGw9bWFya2Rvd24=) 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.067 seconds

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