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

#   Comments stay in textarea after ordering

##

- **[Rixters](/forum/user/28762-rixters "View Rixters's Profile")**
- [![Rixters's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar28762.jpg)](/forum/user/28762-rixters "View Rixters's Profile") Topic Author
- [ Offline](/forum/user/28762-rixters)

Less More

- Posts: 209
- Thank you received: 14
-
-
-
- [](http://www.r2h.nl)
-

6 years 6 months ago [\#318806](#318806) by [Rixters](/forum/user/28762-rixters "View Rixters's Profile")  *[Comments stay in textarea after ordering](/forum/27-checkout/899784-comments-stay-in-textarea-after-ordering#318806 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.18 -- PHP version -- : 7.3  Hi,  When I place an order and put some text in the comments textarea, even after completing the order the text remains. So when I place a new order the textarea is pre-filled with the text from the previous order.  Can you provide a solution?  Thanks!")* was created by *[Rixters](/forum/user/28762-rixters "View Rixters's Profile")*

-- HikaShop version -- : 4.3.0
-- Joomla version -- : 3.9.18
-- PHP version -- : 7.3

Hi,

When I place an order and put some text in the comments textarea, even after completing the order the text remains. So when I place a new order the textarea is pre-filled with the text from the previous order.

Can you provide a solution?

Thanks!

- [ ![Image-10&#95;2020-05-08.jpg](/forum/attachment/49305) ](/forum/attachment/49305 "...2020-05-08.jpg") [ ](/forum/attachment/49305?download=1 "...2020-05-08.jpg")

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

6 years 6 months ago [\#318809](#318809) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Comments stay in textarea after ordering](/forum/27-checkout/899784-comments-stay-in-textarea-after-ordering#318809 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.18 -- PHP version -- : 7.3  Hi,  When I place an order and put some text in the comments textarea, even after completing the order the text remains. So when I place a new order the textarea is pre-filled with the text from the previous order.  Can you provide a solution?  Thanks!")*

Hi,
Try changing the line: Code:

(isset($_SESSION['hikashop_order_data']) &amp;&amp; is_object($_SESSION['hikashop_order_data']) &amp;&amp; isset($_SESSION['hikashop_order_data']-&gt;$fieldName) &amp;&amp; !is_null($_SESSION['hikashop_order_data']-&gt;$fieldName)) ? $_SESSION['hikashop_order_data']-&gt;$fieldName : @$cart-&gt;cart_fields-&gt;$fieldName,

to: Code:

@$cart-&gt;cart_fields-&gt;$fieldName,

in the file checkout / show_block_fields.php via the menu Display&gt;Views.

The following user(s) said Thank You: [Rixters](/forum/user/28762-rixters "View Rixters's Profile")

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

- **[Rixters](/forum/user/28762-rixters "View Rixters's Profile")**
- [![Rixters's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar28762.jpg)](/forum/user/28762-rixters "View Rixters's Profile") Topic Author
- [ Offline](/forum/user/28762-rixters)

Less More

- Posts: 209
- Thank you received: 14
-
-
-
- [](http://www.r2h.nl)
-

6 years 6 months ago [\#318933](#318933) by [Rixters](/forum/user/28762-rixters "View Rixters's Profile")  Replied by *[Rixters](/forum/user/28762-rixters "View Rixters's Profile")* on topic *[Comments stay in textarea after ordering](/forum/27-checkout/899784-comments-stay-in-textarea-after-ordering#318933 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.18 -- PHP version -- : 7.3  Hi,  When I place an order and put some text in the comments textarea, even after completing the order the text remains. So when I place a new order the textarea is pre-filled with the text from the previous order.  Can you provide a solution?  Thanks!")*

Thanks Nicolas! Fixed!

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

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