Comments stay in textarea after ordering
6 years 6 months ago #318806
by Rixters
Comments stay in textarea after ordering was created by Rixters
-- 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!
-- 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!
Please Log in or Create an account to join the conversation.
6 years 6 months ago #318809
by nicolas
Replied by nicolas on topic Comments stay in textarea after ordering
Hi,
Try changing the line:
to:
in the file checkout / show_block_fields.php via the menu Display>Views.
Try changing the line:
Code:
(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,
Code:
@$cart->cart_fields->$fieldName,
The following user(s) said Thank You: Rixters
Please Log in or Create an account to join the conversation.
6 years 6 months ago #318933
by Rixters
Replied by Rixters on topic Comments stay in textarea after ordering
Thanks Nicolas! Fixed!
Please Log in or Create an account to join the conversation.
Time to create page: 0.060 seconds