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

#   Adding string to description

##

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

Less More

- Posts: 240
- Thank you received: 13
-
-

4 years 3 months ago [\#343869](#343869) by [khashiz](/forum/user/61259-khashiz "View khashiz's Profile")  *[Adding string to description](/forum/44-mass-actions/904847-adding-string-to-description#343869 "-- HikaShop version -- : 4.6.1 -- Joomla version -- : 4.1.5 -- PHP version -- : 7.4  Hi, I want about 100 products in my site which every of them have different descriptions.  I need to add a static string at the end of all of products descriptions.  is that possible with mass actions ?")* was created by *[khashiz](/forum/user/61259-khashiz "View khashiz's Profile")*

-- HikaShop version -- : 4.6.1
-- Joomla version -- : 4.1.5
-- PHP version -- : 7.4

Hi,
I want about 100 products in my site which every of them have different descriptions.

I need to add a static string at the end of all of products descriptions.

is that possible with mass actions ?

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

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

Less More

- Posts: 240
- Thank you received: 13
-
-

4 years 3 months ago [\#343871](#343871) by [khashiz](/forum/user/61259-khashiz "View khashiz's Profile")  Replied by *[khashiz](/forum/user/61259-khashiz "View khashiz's Profile")* on topic *[Adding string to description](/forum/44-mass-actions/904847-adding-string-to-description#343871 "-- HikaShop version -- : 4.6.1 -- Joomla version -- : 4.1.5 -- PHP version -- : 7.4  Hi, I want about 100 products in my site which every of them have different descriptions.  I need to add a static string at the end of all of products descriptions.  is that possible with mass actions ?")*

Sorry I meant "I have about 100 product" by "I want about 100 product".
that was a typing mistake.

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

4 years 3 months ago [\#343872](#343872) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Adding string to description](/forum/44-mass-actions/904847-adding-string-to-description#343872 "-- HikaShop version -- : 4.6.1 -- Joomla version -- : 4.1.5 -- PHP version -- : 7.4  Hi, I want about 100 products in my site which every of them have different descriptions.  I need to add a static string at the end of all of products descriptions.  is that possible with mass actions ?")*

Hi,

Yes. You can use an action "update the values" on the column product_description with the mode "operation" and the value: Code:

concat(product.product_description, 'my extra text')

The following user(s) said Thank You: [khashiz](/forum/user/61259-khashiz "View khashiz's Profile")

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

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

Less More

- Posts: 240
- Thank you received: 13
-
-

4 years 3 months ago [\#343879](#343879) by [khashiz](/forum/user/61259-khashiz "View khashiz's Profile")  Replied by *[khashiz](/forum/user/61259-khashiz "View khashiz's Profile")* on topic *[Adding string to description](/forum/44-mass-actions/904847-adding-string-to-description#343879 "-- HikaShop version -- : 4.6.1 -- Joomla version -- : 4.1.5 -- PHP version -- : 7.4  Hi, I want about 100 products in my site which every of them have different descriptions.  I need to add a static string at the end of all of products descriptions.  is that possible with mass actions ?")*

thats why i love this amazing component.

thank you

The following user(s) said Thank You: [Philip](/forum/user/34318-philip "View Philip's Profile")

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

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

Less More

- Posts: 240
- Thank you received: 13
-
-

4 years 2 months ago [\#344357](#344357) by [khashiz](/forum/user/61259-khashiz "View khashiz's Profile")  Replied by *[khashiz](/forum/user/61259-khashiz "View khashiz's Profile")* on topic *[Adding string to description](/forum/44-mass-actions/904847-adding-string-to-description#344357 "-- HikaShop version -- : 4.6.1 -- Joomla version -- : 4.1.5 -- PHP version -- : 7.4  Hi, I want about 100 products in my site which every of them have different descriptions.  I need to add a static string at the end of all of products descriptions.  is that possible with mass actions ?")*

Hi.

today I tried to use this code.
I put some html instead of "my extra text" and the system returned error.

can't I put html there ?

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

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

Less More

- Posts: 240
- Thank you received: 13
-
-

4 years 2 months ago -  4 years 2 months ago [\#344358](#344358) by [khashiz](/forum/user/61259-khashiz "View khashiz's Profile")  Replied by *[khashiz](/forum/user/61259-khashiz "View khashiz's Profile")* on topic *[Adding string to description](/forum/44-mass-actions/904847-adding-string-to-description#344358 "-- HikaShop version -- : 4.6.1 -- Joomla version -- : 4.1.5 -- PHP version -- : 7.4  Hi, I want about 100 products in my site which every of them have different descriptions.  I need to add a static string at the end of all of products descriptions.  is that possible with mass actions ?")*

what I exactly want to do is that if my description's html is :
&lt;p&gt;some text&lt;/p&gt;

I want to add :
&lt;div class="class1"&gt;some other text&lt;/div&gt;
at the end of it.

so the final description would be :
&lt;p&gt;some text&lt;/p&gt;&lt;div class="class1"&gt;some other text&lt;/div&gt;

screenshot of the error i get is attached

- [ ![2022-09-02&#95;20-17-58.png](/forum/attachment/55468) ](/forum/attachment/55468 "...2&#95;20-17-58.png") [ ](/forum/attachment/55468?download=1 "...2&#95;20-17-58.png")

Last edit: 4 years 2 months ago by [khashiz](/forum/user/61259-khashiz "View khashiz's Profile").

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

4 years 2 months ago [\#344359](#344359) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Adding string to description](/forum/44-mass-actions/904847-adding-string-to-description#344359 "-- HikaShop version -- : 4.6.1 -- Joomla version -- : 4.1.5 -- PHP version -- : 7.4  Hi, I want about 100 products in my site which every of them have different descriptions.  I need to add a static string at the end of all of products descriptions.  is that possible with mass actions ?")*

Hi,

HTML is stripped for security reasons.
If you want to temporarily disable that, you can remove the line:
$value = strip_tags($value);
from the file administrator/components/com_hikashop/classes/massaction.php
Then, you'll get the HTML in there too when you process the mass action.

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

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