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

#   Action to copy description to meta description

##

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

Less More

- Posts: 127
- Thank you received: 1
-
-

10 years 11 months ago [\#224983](#224983) by [mikehermary](/forum/user/35673-mikehermary "View mikehermary's Profile")  *[Action to copy description to meta description](/forum/44-mass-actions/881251-action-to-copy-description-to-meta-description#224983 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.7 -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : Safari 9.0.1  Hello,  I am needing to copy the first part of the product's description to the meta description field and I am wondering if this can be done with a mass action or if a MySQL query would be needed. Also, can a limit be placed on the length of text copied over? Any help is greatly appreciated. Thank you.  Mike")* was created by *[mikehermary](/forum/user/35673-mikehermary "View mikehermary's Profile")*

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.7
-- PHP version -- : 5.3.28
-- Browser(s) name and version -- : Safari 9.0.1

Hello,

I am needing to copy the first part of the product's description to the meta description field and I am wondering if this can be done with a mass action or if a MySQL query would be needed. Also, can a limit be placed on the length of text copied over? Any help is greatly appreciated. Thank you.

Mike

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

- **[lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")**
- [![lousyfool's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar28604.jpg)](/forum/user/28604-lousyfool "View lousyfool's Profile")
- [ Offline](/forum/user/28604-lousyfool)

Less More

- Posts: 2143
- Thank you received: 746
-
- [](http://www.inphase.one)
-

10 years 11 months ago [\#224986](#224986) by [lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")  Replied by *[lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")* on topic *[Action to copy description to meta description](/forum/44-mass-actions/881251-action-to-copy-description-to-meta-description#224986 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.7 -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : Safari 9.0.1  Hello,  I am needing to copy the first part of the product's description to the meta description field and I am wondering if this can be done with a mass action or if a MySQL query would be needed. Also, can a limit be placed on the length of text copied over? Any help is greatly appreciated. Thank you.  Mike")*

Hi,

Have you noticed and tried what's already available "out of the box"? In the HikaShop backend -&gt; System -&gt; Configuration -&gt; tab Features -&gt; SEF url options, please look at the options "Automatic product keywords and metadescription filling" and "Maximum size of the metadescription". Is that perhaps what you need?

---

Need help with customisations of layouts, style or other site development? [ PM me!](/component/uddeim/?task=new)
(Don't forget to turn on [ "E-mail notification of new messages"](/component/uddeim/?task=settings))

The following user(s) said Thank You: [Jerome](/forum/user/80-jerome "View Jerome's Profile")

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

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

Less More

- Posts: 127
- Thank you received: 1
-
-

10 years 11 months ago [\#224992](#224992) by [mikehermary](/forum/user/35673-mikehermary "View mikehermary's Profile")  Replied by *[mikehermary](/forum/user/35673-mikehermary "View mikehermary's Profile")* on topic *[Action to copy description to meta description](/forum/44-mass-actions/881251-action-to-copy-description-to-meta-description#224992 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.7 -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : Safari 9.0.1  Hello,  I am needing to copy the first part of the product's description to the meta description field and I am wondering if this can be done with a mass action or if a MySQL query would be needed. Also, can a limit be placed on the length of text copied over? Any help is greatly appreciated. Thank you.  Mike")*

Hello,

I have seen this option and it is enabled, but it only works if you go in and save each product individually. I have hundreds of products already created and I do not want to go through this process. Also, this automatic option seems to convert all of the text to lowercase letters, which is not helpful for meta descriptions. It is fine for meta keywords, but those are no longer used by Google.

Mike

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ0LW1hc3MtYWN0aW9ucy84ODEyNTEtYWN0aW9uLXRvLWNvcHktZGVzY3JpcHRpb24tdG8tbWV0YS1kZXNjcmlwdGlvbj90bXBsPW1hcmtkb3du) 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 [\#224996](#224996) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Action to copy description to meta description](/forum/44-mass-actions/881251-action-to-copy-description-to-meta-description#224996 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.7 -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : Safari 9.0.1  Hello,  I am needing to copy the first part of the product's description to the meta description field and I am wondering if this can be done with a mass action or if a MySQL query would be needed. Also, can a limit be placed on the length of text copied over? Any help is greatly appreciated. Thank you.  Mike")*

Hi,

Thanks to the mass actions you can automatically set the "product_meta_description" from the "product_description", this will keep the upper-cases **but** you can't set a description length, it will be automatically cut after 255 characters **and** the html tags will be present.

So to set a description lenght and not have the html tags, it will require custom code.
The creation of a mass action for example, you can create a new plugin, take the existing version of the "onProcessProductMassActionupdateValues()" then paste it and adapt it in the plugin.

[ www.hikashop.com/support/documentation/s...s-action-plugin.html](http://www.hikashop.com/support/documentation/support/documentation/168-create-you-own-mass-action-plugin.html)

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

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