Comments stay in textarea after ordering

  • Posts: 189
  • Thank you received: 11
  • Hikashop Business
4 years 6 months ago #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!

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
4 years 6 months ago #318809

Hi,
Try changing the line:

(isset($_SESSION['hikashop_order_data']) && is_object($_SESSION['hikashop_order_data']) && isset($_SESSION['hikashop_order_data']->$fieldName) && !is_null($_SESSION['hikashop_order_data']->$fieldName)) ? $_SESSION['hikashop_order_data']->$fieldName : @$cart->cart_fields->$fieldName,
to:
@$cart->cart_fields->$fieldName,
in the file checkout / show_block_fields.php via the menu Display>Views.

The following user(s) said Thank You: Rixters

Please Log in or Create an account to join the conversation.

  • Posts: 189
  • Thank you received: 11
  • Hikashop Business
4 years 6 months ago #318933

Thanks Nicolas! Fixed!

Please Log in or Create an account to join the conversation.

Time to create page: 0.060 seconds
Powered by Kunena Forum