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

#   mass action of all products in a given category

##

- **[Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")**
- [![Lumiga's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar31479.png)](/forum/user/31479-lumiga "View Lumiga's Profile") Topic Author
- [ Offline](/forum/user/31479-lumiga)

Less More

- Posts: 645
- Thank you received: 26
-
-
-

10 years 11 months ago -  10 years 11 months ago [\#223462](#223462) by [Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")  *[mass action of all products in a given category](/forum/44-mass-actions/880971-mass-action-of-all-products-in-a-given-category#223462 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.5 -- PHP version -- : 5.6 -- Browser(s) name and version -- : FF 42  Hi Supportteam,  Please help me! :)  I have the desire to complement the value of a field with additional data. In this case it's the name of the product where I want to put some extra before the name.  &quot;Old White&quot; must be come &quot;Chalk Paint Old White&quot; , &quot;Olive&quot; must be come &quot;Chalk Paint Olive&quot; and so on. I have 300+ product so I like to do it in a mass action.  But there are two things that I can't figure out. 1: I can't find a filter where you can select only products that belong to a specific category. Also in the database I can't find a category field where the products belongs to. 2: There is no option to concatenate a field. (I know this would be too complicated, so this is no wish ;)  So I want to know if I'm right that you can't filter products that belong to a specific category.  Maybe there is an SQL query to do this. But I come no further than this.  SELECT product&#95;name FROM xxx&#95;hikashop&#95;product INNER JOIN jxxx&#95;hikashop&#95;product&#95;category ON xxx&#95;hikashop&#95;product.product&#95;id = xxx&#95;hikashop&#95;product&#95;category.product&#95;id WHERE &#96;category&#95;id&#96; =13;  But now I have to make an UPDATE and add extra value in the same field. This is an bridge to far for me ;-) Maybe you can help me to put me in the right direction. Because I don't know if concatenate is the right search word for this.  Hope you can help me a little bit.  Kind regards, Lumiga")* was created by *[Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")*

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.5
-- PHP version -- : 5.6
-- Browser(s) name and version -- : FF 42

Hi Supportteam,

Please help me! ![:)](/media/kunena/emoticons/3.png ":)")

I have the desire to complement the value of a field with additional data.
In this case it's the name of the product where I want to put some extra before the name.

"Old White" must be come "**Chalk Paint** Old White" ,
"Olive" must be come "**Chalk Paint** Olive" and so on.
I have 300+ product so I like to do it in a mass action.

But there are two things that I can't figure out.
1: I can't find a filter where you can select only products that belong to a specific category.
Also in the database I can't find a category field where the products belongs to.
2: There is no option to concatenate a field. (I know this would be too complicated, so this is no wish ![;)](/media/kunena/emoticons/24.png ";)")

So I want to know if I'm right that you can't filter products that belong to a specific category.

Maybe there is an SQL query to do this. But I come no further than this.

SELECT product_name
FROM xxx_hikashop_product
INNER JOIN jxxx_hikashop_product_category
ON xxx_hikashop_product.product_id = xxx_hikashop_product_category.product_id WHERE &#96;category_id&#96; =13;

But now I have to make an UPDATE and add extra value in the same field. This is an bridge to far for me ![;-)](/media/kunena/emoticons/24.png ";-)")
Maybe you can help me to put me in the right direction. Because I don't know if concatenate is the right search word for this.

Hope you can help me a little bit.

Kind regards,
Lumiga

---

Kind regards,
Lumiga

Last edit: 10 years 11 months ago by [Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile").

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

10 years 11 months ago [\#223502](#223502) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[mass action of all products in a given category](/forum/44-mass-actions/880971-mass-action-of-all-products-in-a-given-category#223502 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.5 -- PHP version -- : 5.6 -- Browser(s) name and version -- : FF 42  Hi Supportteam,  Please help me! :)  I have the desire to complement the value of a field with additional data. In this case it's the name of the product where I want to put some extra before the name.  &quot;Old White&quot; must be come &quot;Chalk Paint Old White&quot; , &quot;Olive&quot; must be come &quot;Chalk Paint Olive&quot; and so on. I have 300+ product so I like to do it in a mass action.  But there are two things that I can't figure out. 1: I can't find a filter where you can select only products that belong to a specific category. Also in the database I can't find a category field where the products belongs to. 2: There is no option to concatenate a field. (I know this would be too complicated, so this is no wish ;)  So I want to know if I'm right that you can't filter products that belong to a specific category.  Maybe there is an SQL query to do this. But I come no further than this.  SELECT product&#95;name FROM xxx&#95;hikashop&#95;product INNER JOIN jxxx&#95;hikashop&#95;product&#95;category ON xxx&#95;hikashop&#95;product.product&#95;id = xxx&#95;hikashop&#95;product&#95;category.product&#95;id WHERE &#96;category&#95;id&#96; =13;  But now I have to make an UPDATE and add extra value in the same field. This is an bridge to far for me ;-) Maybe you can help me to put me in the right direction. Because I don't know if concatenate is the right search word for this.  Hope you can help me a little bit.  Kind regards, Lumiga")*

Hi,

You can use this MySQL request: Code:

UPDATE &#96;#__hikashop_product&#96; AS p LEFT JOIN &#96;#__hikashop_product_category&#96; AS pc ON p.product_id = pc.product_id LEFT JOIN &#96;#__hikashop_category&#96; AS c ON pc.category_id = c.category_id SET p.product_name = CONCAT('Chalk Paint ',p.product_name) WHERE c.category_name = 'The desired name';

And simply replace 'The desired name' by the correct categoy name, or filter on another category column.

The following user(s) said Thank You: [Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")

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

- **[Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")**
- [![Lumiga's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar31479.png)](/forum/user/31479-lumiga "View Lumiga's Profile") Topic Author
- [ Offline](/forum/user/31479-lumiga)

Less More

- Posts: 645
- Thank you received: 26
-
-
-

10 years 11 months ago [\#223705](#223705) by [Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")  Replied by *[Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")* on topic *[mass action of all products in a given category](/forum/44-mass-actions/880971-mass-action-of-all-products-in-a-given-category#223705 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.5 -- PHP version -- : 5.6 -- Browser(s) name and version -- : FF 42  Hi Supportteam,  Please help me! :)  I have the desire to complement the value of a field with additional data. In this case it's the name of the product where I want to put some extra before the name.  &quot;Old White&quot; must be come &quot;Chalk Paint Old White&quot; , &quot;Olive&quot; must be come &quot;Chalk Paint Olive&quot; and so on. I have 300+ product so I like to do it in a mass action.  But there are two things that I can't figure out. 1: I can't find a filter where you can select only products that belong to a specific category. Also in the database I can't find a category field where the products belongs to. 2: There is no option to concatenate a field. (I know this would be too complicated, so this is no wish ;)  So I want to know if I'm right that you can't filter products that belong to a specific category.  Maybe there is an SQL query to do this. But I come no further than this.  SELECT product&#95;name FROM xxx&#95;hikashop&#95;product INNER JOIN jxxx&#95;hikashop&#95;product&#95;category ON xxx&#95;hikashop&#95;product.product&#95;id = xxx&#95;hikashop&#95;product&#95;category.product&#95;id WHERE &#96;category&#95;id&#96; =13;  But now I have to make an UPDATE and add extra value in the same field. This is an bridge to far for me ;-) Maybe you can help me to put me in the right direction. Because I don't know if concatenate is the right search word for this.  Hope you can help me a little bit.  Kind regards, Lumiga")*

Hi Xavier,

Thank you very much!!!!

Kind regards,
Lumiga

---

Kind regards,
Lumiga

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

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