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

#   PHP in Product Description

##

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

Less More

- Posts: 2
- Thank you received: 0
-
-

13 years 11 months ago -  13 years 11 months ago [\#80120](#80120) by [JosephTheLee](/forum/user/12165-josephthelee "View JosephTheLee's Profile")  *[PHP in Product Description](/forum/4-how-to/76396-php-in-product-description#80120 "Hello,  I apologize if this has been covered before (searching the forums for anything with PHP in the terms produces overwhelming results, obviously).  Anyway, I'm interested in using PHP in the product description field. Unfortunately, it seems to be commented out on the front end. Is there a way for me to allow PHP in that field?  Or, more direct to my current application--is there a good way to have information in the product description field populated from a database?  Here's a link to one of the products on my store:   wizardsnorman.com/index.php/component/hi.../category&#95;pathway-22  The bolded fields (eg., Rarity) will be the same across all of that type of product; I would like to have the variable information (eg., Common) be filled in dynamically.  Any advice would be appreciated.  Best wishes, Joseph")* was created by *[JosephTheLee](/forum/user/12165-josephthelee "View JosephTheLee's Profile")*

Hello,

I apologize if this has been covered before (searching the forums for anything with PHP in the terms produces overwhelming results, obviously).

Anyway, I'm interested in using PHP in the product description field. Unfortunately, it seems to be commented out on the front end. Is there a way for me to allow PHP in that field?

Or, more direct to my current application--is there a good way to have information in the product description field populated from a database?

Here's a link to one of the products on my store: [ wizardsnorman.com/index.php/component/hi.../category\_pathway-22](http://wizardsnorman.com/index.php/component/hikashop/product/3697-selesnya-sentry/category_pathway-22)

The bolded fields (eg., Rarity) will be the same across all of that type of product; I would like to have the variable information (eg., Common) be filled in dynamically.

Any advice would be appreciated.

Best wishes,
Joseph

Last edit: 13 years 11 months ago by [JosephTheLee](/forum/user/12165-josephthelee "View JosephTheLee's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2Mzk2LXBocC1pbi1wcm9kdWN0LWRlc2NyaXB0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 11 months ago [\#80124](#80124) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[PHP in Product Description](/forum/4-how-to/76396-php-in-product-description#80124 "Hello,  I apologize if this has been covered before (searching the forums for anything with PHP in the terms produces overwhelming results, obviously).  Anyway, I'm interested in using PHP in the product description field. Unfortunately, it seems to be commented out on the front end. Is there a way for me to allow PHP in that field?  Or, more direct to my current application--is there a good way to have information in the product description field populated from a database?  Here's a link to one of the products on my store:   wizardsnorman.com/index.php/component/hi.../category&#95;pathway-22  The bolded fields (eg., Rarity) will be the same across all of that type of product; I would like to have the variable information (eg., Common) be filled in dynamically.  Any advice would be appreciated.  Best wishes, Joseph")*

Hi,

The product description is stored in the database, that's why it's not possible to store PHP into (or execute php from it).
I think that the best solution would be to use custom field and you could insert your PHP directly in the product view ("product &#124; show_default").
You can use the plugin system (and plugin triggers) in order to catch some events and fill/save your variables in the database or process them during the loading.

Best regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [JosephTheLee](/forum/user/12165-josephthelee "View JosephTheLee's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2Mzk2LXBocC1pbi1wcm9kdWN0LWRlc2NyaXB0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 2
- Thank you received: 0
-
-

13 years 10 months ago [\#80277](#80277) by [JosephTheLee](/forum/user/12165-josephthelee "View JosephTheLee's Profile")  Replied by *[JosephTheLee](/forum/user/12165-josephthelee "View JosephTheLee's Profile")* on topic *[PHP in Product Description](/forum/4-how-to/76396-php-in-product-description#80277 "Hello,  I apologize if this has been covered before (searching the forums for anything with PHP in the terms produces overwhelming results, obviously).  Anyway, I'm interested in using PHP in the product description field. Unfortunately, it seems to be commented out on the front end. Is there a way for me to allow PHP in that field?  Or, more direct to my current application--is there a good way to have information in the product description field populated from a database?  Here's a link to one of the products on my store:   wizardsnorman.com/index.php/component/hi.../category&#95;pathway-22  The bolded fields (eg., Rarity) will be the same across all of that type of product; I would like to have the variable information (eg., Common) be filled in dynamically.  Any advice would be appreciated.  Best wishes, Joseph")*

Excellent recommendations. Thanks!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2Mzk2LXBocC1pbi1wcm9kdWN0LWRlc2NyaXB0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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.071 seconds

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