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

#   Product edition form in order

##

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

Less More

- Posts: 52
- Thank you received: 6
-
-

5 years 5 months ago [\#333521](#333521) by [dhusband](/forum/user/60503-dhusband "View dhusband's Profile")  *[Product edition form in order](/forum/35-orders-management/902782-product-edition-form-in-order#333521 "-- HikaShop version -- : 4.4.3 -- Joomla version -- : 3.9.27 -- PHP version -- : 7.3.28 -- Browser(s) name and version -- : Edge  Custom field Item 'Proposed Dates'. Set to display in Front End as an option for the user to complete on buying an item. Details displays in front end listing and backend listing. Field is not set to display in 'Product edition form in order' Custom field Item 'Confirmed Start Date'. Set to only display in Front and Back end product listing, plus in 'Product edition form in order'.  When data is updated in 'Product edition form in order', any fields that are not displayed are cleared. So information added by the customer in 'Proposed Dates' is lost.  If the field is not shown to the backend user to complete, shouldn't the data added by the frontend user be retained?  David")* was created by *[dhusband](/forum/user/60503-dhusband "View dhusband's Profile")*

-- HikaShop version -- : 4.4.3
-- Joomla version -- : 3.9.27
-- PHP version -- : 7.3.28
-- Browser(s) name and version -- : Edge

Custom field Item 'Proposed Dates'. Set to display in Front End as an option for the user to complete on buying an item. Details displays in front end listing and backend listing. Field is not set to display in 'Product edition form in order'
Custom field Item 'Confirmed Start Date'. Set to only display in Front and Back end product listing, plus in 'Product edition form in order'.

When data is updated in 'Product edition form in order', any fields that are not displayed are cleared. So information added by the customer in 'Proposed Dates' is lost.

If the field is not shown to the backend user to complete, shouldn't the data added by the frontend user be retained?

David

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

5 years 5 months ago [\#333525](#333525) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Product edition form in order](/forum/35-orders-management/902782-product-edition-form-in-order#333525 "-- HikaShop version -- : 4.4.3 -- Joomla version -- : 3.9.27 -- PHP version -- : 7.3.28 -- Browser(s) name and version -- : Edge  Custom field Item 'Proposed Dates'. Set to display in Front End as an option for the user to complete on buying an item. Details displays in front end listing and backend listing. Field is not set to display in 'Product edition form in order' Custom field Item 'Confirmed Start Date'. Set to only display in Front and Back end product listing, plus in 'Product edition form in order'.  When data is updated in 'Product edition form in order', any fields that are not displayed are cleared. So information added by the customer in 'Proposed Dates' is lost.  If the field is not shown to the backend user to complete, shouldn't the data added by the frontend user be retained?  David")*

Hi,

Thanks for the feedback.
This can be fixed by changing the code: Code:

$item_fields = $fieldClass-&gt;getData('backend', 'item');

to: Code:

if(!empty($data['order']['product']['product_id'])) { $oldData = $orderProductClass-&gt;get($data['order']['product']['product_id']); } $item_fields = $fieldClass-&gt;getFields('display:order_edit=1', $oldData, 'item', 'user&amp;task=state');

in the file administrator/components/com_hikashop/classes/order.php
That change should even help if you have required fields for some products as otherwise, it might not let you save the fields of other products in the order edition.
Please confirm how that patch goes on your end so that we can include the modification on our end.

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

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

Less More

- Posts: 52
- Thank you received: 6
-
-

5 years 5 months ago [\#333532](#333532) by [dhusband](/forum/user/60503-dhusband "View dhusband's Profile")  Replied by *[dhusband](/forum/user/60503-dhusband "View dhusband's Profile")* on topic *[Product edition form in order](/forum/35-orders-management/902782-product-edition-form-in-order#333532 "-- HikaShop version -- : 4.4.3 -- Joomla version -- : 3.9.27 -- PHP version -- : 7.3.28 -- Browser(s) name and version -- : Edge  Custom field Item 'Proposed Dates'. Set to display in Front End as an option for the user to complete on buying an item. Details displays in front end listing and backend listing. Field is not set to display in 'Product edition form in order' Custom field Item 'Confirmed Start Date'. Set to only display in Front and Back end product listing, plus in 'Product edition form in order'.  When data is updated in 'Product edition form in order', any fields that are not displayed are cleared. So information added by the customer in 'Proposed Dates' is lost.  If the field is not shown to the backend user to complete, shouldn't the data added by the frontend user be retained?  David")*

Great that has resolved disappearing data.

However, there is a field of checkboxes. If you update this in the backend, it no longer stores the changes.

Thank you
David

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

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

Less More

- Posts: 52
- Thank you received: 6
-
-

5 years 5 months ago [\#333534](#333534) by [dhusband](/forum/user/60503-dhusband "View dhusband's Profile")  Replied by *[dhusband](/forum/user/60503-dhusband "View dhusband's Profile")* on topic *[Product edition form in order](/forum/35-orders-management/902782-product-edition-form-in-order#333534 "-- HikaShop version -- : 4.4.3 -- Joomla version -- : 3.9.27 -- PHP version -- : 7.3.28 -- Browser(s) name and version -- : Edge  Custom field Item 'Proposed Dates'. Set to display in Front End as an option for the user to complete on buying an item. Details displays in front end listing and backend listing. Field is not set to display in 'Product edition form in order' Custom field Item 'Confirmed Start Date'. Set to only display in Front and Back end product listing, plus in 'Product edition form in order'.  When data is updated in 'Product edition form in order', any fields that are not displayed are cleared. So information added by the customer in 'Proposed Dates' is lost.  If the field is not shown to the backend user to complete, shouldn't the data added by the frontend user be retained?  David")*

I have not yet applied the fix to the live environment and realised the checkboxes are not updating. So this not due to the fix, but a different bug.

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

5 years 5 months ago [\#333539](#333539) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Product edition form in order](/forum/35-orders-management/902782-product-edition-form-in-order#333539 "-- HikaShop version -- : 4.4.3 -- Joomla version -- : 3.9.27 -- PHP version -- : 7.3.28 -- Browser(s) name and version -- : Edge  Custom field Item 'Proposed Dates'. Set to display in Front End as an option for the user to complete on buying an item. Details displays in front end listing and backend listing. Field is not set to display in 'Product edition form in order' Custom field Item 'Confirmed Start Date'. Set to only display in Front and Back end product listing, plus in 'Product edition form in order'.  When data is updated in 'Product edition form in order', any fields that are not displayed are cleared. So information added by the customer in 'Proposed Dates' is lost.  If the field is not shown to the backend user to complete, shouldn't the data added by the frontend user be retained?  David")*

Hi,

Could you describe the issue with the checkboxes and provide some screenshots, like a screenshot of the settings of the custom field ?

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

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

Less More

- Posts: 52
- Thank you received: 6
-
-

5 years 5 months ago [\#333580](#333580) by [dhusband](/forum/user/60503-dhusband "View dhusband's Profile")  Replied by *[dhusband](/forum/user/60503-dhusband "View dhusband's Profile")* on topic *[Product edition form in order](/forum/35-orders-management/902782-product-edition-form-in-order#333580 "-- HikaShop version -- : 4.4.3 -- Joomla version -- : 3.9.27 -- PHP version -- : 7.3.28 -- Browser(s) name and version -- : Edge  Custom field Item 'Proposed Dates'. Set to display in Front End as an option for the user to complete on buying an item. Details displays in front end listing and backend listing. Field is not set to display in 'Product edition form in order' Custom field Item 'Confirmed Start Date'. Set to only display in Front and Back end product listing, plus in 'Product edition form in order'.  When data is updated in 'Product edition form in order', any fields that are not displayed are cleared. So information added by the customer in 'Proposed Dates' is lost.  If the field is not shown to the backend user to complete, shouldn't the data added by the frontend user be retained?  David")*

Afternoon
If you set the checkboxes in the frontend, they save.
If you set the checkboxes in the backend, they do not save. If checkboxes are set and remove all of them, they do get saved. You cannot reset them and the reverse idea of ticking all checkboxes does not save.
Screenshot of the field set up attached.

- [ ![customfield-checkboxsetup.png](/forum/attachment/53015) ](/forum/attachment/53015 "...ckboxsetup.png") [ ](/forum/attachment/53015?download=1 "...ckboxsetup.png")

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

5 years 5 months ago [\#333584](#333584) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Product edition form in order](/forum/35-orders-management/902782-product-edition-form-in-order#333584 "-- HikaShop version -- : 4.4.3 -- Joomla version -- : 3.9.27 -- PHP version -- : 7.3.28 -- Browser(s) name and version -- : Edge  Custom field Item 'Proposed Dates'. Set to display in Front End as an option for the user to complete on buying an item. Details displays in front end listing and backend listing. Field is not set to display in 'Product edition form in order' Custom field Item 'Confirmed Start Date'. Set to only display in Front and Back end product listing, plus in 'Product edition form in order'.  When data is updated in 'Product edition form in order', any fields that are not displayed are cleared. So information added by the customer in 'Proposed Dates' is lost.  If the field is not shown to the backend user to complete, shouldn't the data added by the frontend user be retained?  David")*

Hi,

Thank you for the details. I've actually dug a bit deeper and properly tested different cases and thus I came up with a bigger patch.
I've added the patch on our end.
To get it, download the install package of the latest HikaShop on our website and install it on yours and it will add it.

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

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

Less More

- Posts: 52
- Thank you received: 6
-
-

5 years 5 months ago [\#333599](#333599) by [dhusband](/forum/user/60503-dhusband "View dhusband's Profile")  Replied by *[dhusband](/forum/user/60503-dhusband "View dhusband's Profile")* on topic *[Product edition form in order](/forum/35-orders-management/902782-product-edition-form-in-order#333599 "-- HikaShop version -- : 4.4.3 -- Joomla version -- : 3.9.27 -- PHP version -- : 7.3.28 -- Browser(s) name and version -- : Edge  Custom field Item 'Proposed Dates'. Set to display in Front End as an option for the user to complete on buying an item. Details displays in front end listing and backend listing. Field is not set to display in 'Product edition form in order' Custom field Item 'Confirmed Start Date'. Set to only display in Front and Back end product listing, plus in 'Product edition form in order'.  When data is updated in 'Product edition form in order', any fields that are not displayed are cleared. So information added by the customer in 'Proposed Dates' is lost.  If the field is not shown to the backend user to complete, shouldn't the data added by the frontend user be retained?  David")*

Great, that has worked.

Thank you
David

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

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