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

#   product class data missing

##

- **[twscott](/forum/user/43011-twscott "View twscott's Profile")**
- [![twscott's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/beer.png)](/forum/user/43011-twscott "View twscott's Profile") Topic Author
- [ Offline](/forum/user/43011-twscott)

Less More

- Posts: 252
- Thank you received: 1
-
-
-
-

10 years 3 months ago [\#244473](#244473) by [twscott](/forum/user/43011-twscott "View twscott's Profile")  *[product class data missing](/forum/19-hikamarket/885361-product-class-data-missing#244473 "-- HikaShop version -- : HikaShop Business 2.6.3 -- HikaMarket version -- : HikaMarket Multivendor 1.7.0 -- Joomla version -- : 3.5 -- PHP version -- : 5.5.12 -- Browser(s) name and version -- : Chrom  Hi there, I have a question about this custom WYSIWYG (JCE)field I created, I wrote a plugin for onAfterProductCreate, and in the test process I did put content in it, but the plug in code showed this field was empty. This did not happen when I use the back-end to edit a product, and there is no problem for the &quot;product description field&quot; in the front-end either. Could you help to see what was missing?  Best Regards Scott")* was created by *[twscott](/forum/user/43011-twscott "View twscott's Profile")*

-- HikaShop version -- : HikaShop Business 2.6.3
-- HikaMarket version -- : HikaMarket Multivendor 1.7.0
-- Joomla version -- : 3.5
-- PHP version -- : 5.5.12
-- Browser(s) name and version -- : Chrom

Hi there,
I have a question about this custom WYSIWYG (JCE)field I created, I wrote a plugin for onAfterProductCreate, and in the test process I did put content in it, but the plug in code showed this field was empty.
This did not happen when I use the back-end to edit a product, and there is no problem for the "product description field" in the front-end either. Could you help to see what was missing?

Best Regards
Scott

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODg1MzYxLXByb2R1Y3QtY2xhc3MtZGF0YS1taXNzaW5nP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) 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)
-

10 years 3 months ago [\#244474](#244474) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[product class data missing](/forum/19-hikamarket/885361-product-class-data-missing#244474 "-- HikaShop version -- : HikaShop Business 2.6.3 -- HikaMarket version -- : HikaMarket Multivendor 1.7.0 -- Joomla version -- : 3.5 -- PHP version -- : 5.5.12 -- Browser(s) name and version -- : Chrom  Hi there, I have a question about this custom WYSIWYG (JCE)field I created, I wrote a plugin for onAfterProductCreate, and in the test process I did put content in it, but the plug in code showed this field was empty. This did not happen when I use the back-end to edit a product, and there is no problem for the &quot;product description field&quot; in the front-end either. Could you help to see what was missing?  Best Regards Scott")*

Hi,

I am sorry but I am not able to understand your message.

Regards,

---

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

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

- **[twscott](/forum/user/43011-twscott "View twscott's Profile")**
- [![twscott's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/beer.png)](/forum/user/43011-twscott "View twscott's Profile") Topic Author
- [ Offline](/forum/user/43011-twscott)

Less More

- Posts: 252
- Thank you received: 1
-
-
-
-

10 years 3 months ago [\#244513](#244513) by [twscott](/forum/user/43011-twscott "View twscott's Profile")  Replied by *[twscott](/forum/user/43011-twscott "View twscott's Profile")* on topic *[product class data missing](/forum/19-hikamarket/885361-product-class-data-missing#244513 "-- HikaShop version -- : HikaShop Business 2.6.3 -- HikaMarket version -- : HikaMarket Multivendor 1.7.0 -- Joomla version -- : 3.5 -- PHP version -- : 5.5.12 -- Browser(s) name and version -- : Chrom  Hi there, I have a question about this custom WYSIWYG (JCE)field I created, I wrote a plugin for onAfterProductCreate, and in the test process I did put content in it, but the plug in code showed this field was empty. This did not happen when I use the back-end to edit a product, and there is no problem for the &quot;product description field&quot; in the front-end either. Could you help to see what was missing?  Best Regards Scott")*

Hi,
It's hard to explain, because this is a coding problem.
Here I will show you steps to reproduce my problem.
1. In back-end, new a custom field, Type:WYSIWYG
2. Create a plug-in in plugiss\hikashop\myPlugin
3. Edit public function onAfterProductCreate(&amp;$element){
$thisProduct = $this-&gt;getProduct($element-&gt;product_id);
echo $thisProduct-&gt;myField;
}
4. In the debug mode and create a new product
if I am in front-end, $thisProduct-&gt;myField; ... "" &lt;-- it shows empty, but I have input data in it.
if I am in back-end, $thisProduct-&gt;myField; ... "the html code I input"

I hope this is clear enough for you,

Best Regards
Scott

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODg1MzYxLXByb2R1Y3QtY2xhc3MtZGF0YS1taXNzaW5nP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) 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)
-

10 years 3 months ago [\#244558](#244558) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[product class data missing](/forum/19-hikamarket/885361-product-class-data-missing#244558 "-- HikaShop version -- : HikaShop Business 2.6.3 -- HikaMarket version -- : HikaMarket Multivendor 1.7.0 -- Joomla version -- : 3.5 -- PHP version -- : 5.5.12 -- Browser(s) name and version -- : Chrom  Hi there, I have a question about this custom WYSIWYG (JCE)field I created, I wrote a plugin for onAfterProductCreate, and in the test process I did put content in it, but the plug in code showed this field was empty. This did not happen when I use the back-end to edit a product, and there is no problem for the &quot;product description field&quot; in the front-end either. Could you help to see what was missing?  Best Regards Scott")*

Hi,

If your WYSIWYG editor is TinyMce (or simple text area), do you have the same issue ?

Regards,

---

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

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

- **[twscott](/forum/user/43011-twscott "View twscott's Profile")**
- [![twscott's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/beer.png)](/forum/user/43011-twscott "View twscott's Profile") Topic Author
- [ Offline](/forum/user/43011-twscott)

Less More

- Posts: 252
- Thank you received: 1
-
-
-
-

10 years 3 months ago [\#244599](#244599) by [twscott](/forum/user/43011-twscott "View twscott's Profile")  Replied by *[twscott](/forum/user/43011-twscott "View twscott's Profile")* on topic *[product class data missing](/forum/19-hikamarket/885361-product-class-data-missing#244599 "-- HikaShop version -- : HikaShop Business 2.6.3 -- HikaMarket version -- : HikaMarket Multivendor 1.7.0 -- Joomla version -- : 3.5 -- PHP version -- : 5.5.12 -- Browser(s) name and version -- : Chrom  Hi there, I have a question about this custom WYSIWYG (JCE)field I created, I wrote a plugin for onAfterProductCreate, and in the test process I did put content in it, but the plug in code showed this field was empty. This did not happen when I use the back-end to edit a product, and there is no problem for the &quot;product description field&quot; in the front-end either. Could you help to see what was missing?  Best Regards Scott")*

HI Jerome,
Attached please find my screenshot.
I've changed the editor to TinyMce, and there is still no data.

BR

- [ ![debug.png](/forum/attachment/32450) ](/forum/attachment/32450 "debug.png") [ ](/forum/attachment/32450?download=1 "debug.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODg1MzYxLXByb2R1Y3QtY2xhc3MtZGF0YS1taXNzaW5nP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) 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)
-

10 years 3 months ago [\#244600](#244600) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[product class data missing](/forum/19-hikamarket/885361-product-class-data-missing#244600 "-- HikaShop version -- : HikaShop Business 2.6.3 -- HikaMarket version -- : HikaMarket Multivendor 1.7.0 -- Joomla version -- : 3.5 -- PHP version -- : 5.5.12 -- Browser(s) name and version -- : Chrom  Hi there, I have a question about this custom WYSIWYG (JCE)field I created, I wrote a plugin for onAfterProductCreate, and in the test process I did put content in it, but the plug in code showed this field was empty. This did not happen when I use the back-end to edit a product, and there is no problem for the &quot;product description field&quot; in the front-end either. Could you help to see what was missing?  Best Regards Scott")*

Hi,

I am sorry but I cannot reproduce your issue.
I have a wysiwyg product custom field and I can save it without any issue in my products.

Now the code you're using does not seem good to me ; there is no need to perform a "get" on a product while you have the entire product object in parameter.
I don't know what your function is ; but I know that the save in HikaMarket is working fine. And if the "save" is good, the content provided the trigger should be too.

Regards,

---

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

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

- **[twscott](/forum/user/43011-twscott "View twscott's Profile")**
- [![twscott's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/beer.png)](/forum/user/43011-twscott "View twscott's Profile") Topic Author
- [ Offline](/forum/user/43011-twscott)

Less More

- Posts: 252
- Thank you received: 1
-
-
-
-

10 years 3 months ago [\#244618](#244618) by [twscott](/forum/user/43011-twscott "View twscott's Profile")  Replied by *[twscott](/forum/user/43011-twscott "View twscott's Profile")* on topic *[product class data missing](/forum/19-hikamarket/885361-product-class-data-missing#244618 "-- HikaShop version -- : HikaShop Business 2.6.3 -- HikaMarket version -- : HikaMarket Multivendor 1.7.0 -- Joomla version -- : 3.5 -- PHP version -- : 5.5.12 -- Browser(s) name and version -- : Chrom  Hi there, I have a question about this custom WYSIWYG (JCE)field I created, I wrote a plugin for onAfterProductCreate, and in the test process I did put content in it, but the plug in code showed this field was empty. This did not happen when I use the back-end to edit a product, and there is no problem for the &quot;product description field&quot; in the front-end either. Could you help to see what was missing?  Best Regards Scott")*

Hi, Jerome,
I think I know what the problem is, but I still need your help, I am not sure if I miss setting config.
When I put same text into the description and my_custom_field, one shows the HTML code, and the other one is plain text.
[ ![debgu&#95;text.png](/forum/attachment/32454) ](/forum/attachment/32454 "debgu&#95;text.png")

When I put the img into them, description shows HTML code, and my_custom_field shows empty, and this is my problem.
[ ![debug&#95;img.png](/forum/attachment/32455) ](/forum/attachment/32455 "debug&#95;img.png")

How should I set it to save data in HTML code?

Thanks
Best Regards

- [ ![debgu&#95;text.png](/forum/attachment/32454) ](/forum/attachment/32454 "debgu&#95;text.png") [ ](/forum/attachment/32454?download=1 "debgu&#95;text.png")
- [ ![debug&#95;img.png](/forum/attachment/32455) ](/forum/attachment/32455 "debug&#95;img.png") [ ](/forum/attachment/32455?download=1 "debug&#95;img.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODg1MzYxLXByb2R1Y3QtY2xhc3MtZGF0YS1taXNzaW5nP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) 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)
-

10 years 3 months ago [\#244646](#244646) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[product class data missing](/forum/19-hikamarket/885361-product-class-data-missing#244646 "-- HikaShop version -- : HikaShop Business 2.6.3 -- HikaMarket version -- : HikaMarket Multivendor 1.7.0 -- Joomla version -- : 3.5 -- PHP version -- : 5.5.12 -- Browser(s) name and version -- : Chrom  Hi there, I have a question about this custom WYSIWYG (JCE)field I created, I wrote a plugin for onAfterProductCreate, and in the test process I did put content in it, but the plug in code showed this field was empty. This did not happen when I use the back-end to edit a product, and there is no problem for the &quot;product description field&quot; in the front-end either. Could you help to see what was missing?  Best Regards Scott")*

Hi,

That's the role of the HikaShop "input filtering" setting in your custom field configuration.

Regards,

---

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

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

- **[twscott](/forum/user/43011-twscott "View twscott's Profile")**
- [![twscott's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/beer.png)](/forum/user/43011-twscott "View twscott's Profile") Topic Author
- [ Offline](/forum/user/43011-twscott)

Less More

- Posts: 252
- Thank you received: 1
-
-
-
-

10 years 3 months ago [\#244679](#244679) by [twscott](/forum/user/43011-twscott "View twscott's Profile")  Replied by *[twscott](/forum/user/43011-twscott "View twscott's Profile")* on topic *[product class data missing](/forum/19-hikamarket/885361-product-class-data-missing#244679 "-- HikaShop version -- : HikaShop Business 2.6.3 -- HikaMarket version -- : HikaMarket Multivendor 1.7.0 -- Joomla version -- : 3.5 -- PHP version -- : 5.5.12 -- Browser(s) name and version -- : Chrom  Hi there, I have a question about this custom WYSIWYG (JCE)field I created, I wrote a plugin for onAfterProductCreate, and in the test process I did put content in it, but the plug in code showed this field was empty. This did not happen when I use the back-end to edit a product, and there is no problem for the &quot;product description field&quot; in the front-end either. Could you help to see what was missing?  Best Regards Scott")*

Hi Jerome,
It works, Thank you very much.

Best Regards

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

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.295 seconds

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

[](#top)
