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

#   Custom Item fields not saving when restricted to a single product

##

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

Less More

- Posts: 15
- Thank you received: 0
-
-

9 years 4 months ago [\#272264](#272264) by [sashau](/forum/user/26276-sashau "View sashau's Profile")  *[Custom Item fields not saving when restricted to a single product](/forum/3-bug-report/890788-custom-item-fields-not-saving-when-restricted-to-a-single-product#272264 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.2 -- PHP version -- : 7.1.5  I have a custom item field that is set up, and under Restrictions &gt; Products a particular product is chosen. When someone goes through the checkout process and makes an order the value in the &#95;&#95;hikashop&#95;order&#95;product table for the item is always NULL - even if the customer fills in a value. If I remove the product specified from Restrictions &gt; Products and leave it blank, then the item is saved correctly.  This used to work on the site before I updated it to 3.1.0 (the issue still exists in 3.1.1.) If I revert the changes that were made to the /administrator/components/com&#95;hikashop/classes/order&#95;product.php file (in Hikashop 3.1.0) then the item values save properly again, so I think the issue stems from this change.  Can you please look into this? Thanks.")* was created by *[sashau](/forum/user/26276-sashau "View sashau's Profile")*

-- HikaShop version -- : 3.1.1
-- Joomla version -- : 3.7.2
-- PHP version -- : 7.1.5

I have a custom item field that is set up, and under Restrictions &gt; Products a particular product is chosen. When someone goes through the checkout process and makes an order the value in the __hikashop_order_product table for the item is always NULL - even if the customer fills in a value. If I remove the product specified from Restrictions &gt; Products and leave it blank, then the item is saved correctly.

This used to work on the site before I updated it to 3.1.0 (the issue still exists in 3.1.1.) If I revert the changes that were made to the /administrator/components/com_hikashop/classes/order_product.php file (in Hikashop 3.1.0) then the item values save properly again, so I think the issue stems from this change.

Can you please look into this? Thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84OTA3ODgtY3VzdG9tLWl0ZW0tZmllbGRzLW5vdC1zYXZpbmctd2hlbi1yZXN0cmljdGVkLXRvLWEtc2luZ2xlLXByb2R1Y3Q/dG1wbD1tYXJrZG93bg==) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86315
- Thank you received: 14276
-
-

9 years 4 months ago [\#272310](#272310) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Custom Item fields not saving when restricted to a single product](/forum/3-bug-report/890788-custom-item-fields-not-saving-when-restricted-to-a-single-product#272310 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.2 -- PHP version -- : 7.1.5  I have a custom item field that is set up, and under Restrictions &gt; Products a particular product is chosen. When someone goes through the checkout process and makes an order the value in the &#95;&#95;hikashop&#95;order&#95;product table for the item is always NULL - even if the customer fills in a value. If I remove the product specified from Restrictions &gt; Products and leave it blank, then the item is saved correctly.  This used to work on the site before I updated it to 3.1.0 (the issue still exists in 3.1.1.) If I revert the changes that were made to the /administrator/components/com&#95;hikashop/classes/order&#95;product.php file (in Hikashop 3.1.0) then the item values save properly again, so I think the issue stems from this change.  Can you please look into this? Thanks.")*

Hi,

We've actually added a patch for that on the 14th of June in the 3.1.1. And I can't reproduce the problem on my end. So download again the install package from our website and install it on yours in order to get all the latest patches and it should then work fine for you too.

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

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

Less More

- Posts: 15
- Thank you received: 0
-
-

9 years 4 months ago [\#272366](#272366) by [sashau](/forum/user/26276-sashau "View sashau's Profile")  Replied by *[sashau](/forum/user/26276-sashau "View sashau's Profile")* on topic *[Custom Item fields not saving when restricted to a single product](/forum/3-bug-report/890788-custom-item-fields-not-saving-when-restricted-to-a-single-product#272366 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.2 -- PHP version -- : 7.1.5  I have a custom item field that is set up, and under Restrictions &gt; Products a particular product is chosen. When someone goes through the checkout process and makes an order the value in the &#95;&#95;hikashop&#95;order&#95;product table for the item is always NULL - even if the customer fills in a value. If I remove the product specified from Restrictions &gt; Products and leave it blank, then the item is saved correctly.  This used to work on the site before I updated it to 3.1.0 (the issue still exists in 3.1.1.) If I revert the changes that were made to the /administrator/components/com&#95;hikashop/classes/order&#95;product.php file (in Hikashop 3.1.0) then the item values save properly again, so I think the issue stems from this change.  Can you please look into this? Thanks.")*

Thanks for looking into it. I have downloaded the install package and reinstalled it and still have the issue. I have sent a message through your Contact Us page with log in details for a site and instructions for recreating the issue. Thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84OTA3ODgtY3VzdG9tLWl0ZW0tZmllbGRzLW5vdC1zYXZpbmctd2hlbi1yZXN0cmljdGVkLXRvLWEtc2luZ2xlLXByb2R1Y3Q/dG1wbD1tYXJrZG93bg==) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86315
- Thank you received: 14276
-
-

9 years 4 months ago [\#272400](#272400) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Custom Item fields not saving when restricted to a single product](/forum/3-bug-report/890788-custom-item-fields-not-saving-when-restricted-to-a-single-product#272400 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.2 -- PHP version -- : 7.1.5  I have a custom item field that is set up, and under Restrictions &gt; Products a particular product is chosen. When someone goes through the checkout process and makes an order the value in the &#95;&#95;hikashop&#95;order&#95;product table for the item is always NULL - even if the customer fills in a value. If I remove the product specified from Restrictions &gt; Products and leave it blank, then the item is saved correctly.  This used to work on the site before I updated it to 3.1.0 (the issue still exists in 3.1.1.) If I revert the changes that were made to the /administrator/components/com&#95;hikashop/classes/order&#95;product.php file (in Hikashop 3.1.0) then the item values save properly again, so I think the issue stems from this change.  Can you please look into this? Thanks.")*

Hi,

We got the credentials and the instructions, however, I'm not able to log in your backend with them. Could you double check them please ?

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

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

Less More

- Posts: 15
- Thank you received: 0
-
-

9 years 4 months ago [\#272439](#272439) by [sashau](/forum/user/26276-sashau "View sashau's Profile")  Replied by *[sashau](/forum/user/26276-sashau "View sashau's Profile")* on topic *[Custom Item fields not saving when restricted to a single product](/forum/3-bug-report/890788-custom-item-fields-not-saving-when-restricted-to-a-single-product#272439 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.2 -- PHP version -- : 7.1.5  I have a custom item field that is set up, and under Restrictions &gt; Products a particular product is chosen. When someone goes through the checkout process and makes an order the value in the &#95;&#95;hikashop&#95;order&#95;product table for the item is always NULL - even if the customer fills in a value. If I remove the product specified from Restrictions &gt; Products and leave it blank, then the item is saved correctly.  This used to work on the site before I updated it to 3.1.0 (the issue still exists in 3.1.1.) If I revert the changes that were made to the /administrator/components/com&#95;hikashop/classes/order&#95;product.php file (in Hikashop 3.1.0) then the item values save properly again, so I think the issue stems from this change.  Can you please look into this? Thanks.")*

Sorry, can you try again now with the same login details.

Thanks

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

9 years 4 months ago [\#272531](#272531) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Custom Item fields not saving when restricted to a single product](/forum/3-bug-report/890788-custom-item-fields-not-saving-when-restricted-to-a-single-product#272531 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.2 -- PHP version -- : 7.1.5  I have a custom item field that is set up, and under Restrictions &gt; Products a particular product is chosen. When someone goes through the checkout process and makes an order the value in the &#95;&#95;hikashop&#95;order&#95;product table for the item is always NULL - even if the customer fills in a value. If I remove the product specified from Restrictions &gt; Products and leave it blank, then the item is saved correctly.  This used to work on the site before I updated it to 3.1.0 (the issue still exists in 3.1.1.) If I revert the changes that were made to the /administrator/components/com&#95;hikashop/classes/order&#95;product.php file (in Hikashop 3.1.0) then the item values save properly again, so I think the issue stems from this change.  Can you please look into this? Thanks.")*

Hello,

Thank you for your temporary back-end access, we just tested on your website and tried to reproduce it on our website the last Hikashop version using the same configuration, but we were not able to reproduce your issue.

In fact we actually have added some fix through the last Hikashop version so you should probably download it through our website, install it and test it again.

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

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

Less More

- Posts: 15
- Thank you received: 0
-
-

9 years 4 months ago [\#272564](#272564) by [sashau](/forum/user/26276-sashau "View sashau's Profile")  Replied by *[sashau](/forum/user/26276-sashau "View sashau's Profile")* on topic *[Custom Item fields not saving when restricted to a single product](/forum/3-bug-report/890788-custom-item-fields-not-saving-when-restricted-to-a-single-product#272564 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.2 -- PHP version -- : 7.1.5  I have a custom item field that is set up, and under Restrictions &gt; Products a particular product is chosen. When someone goes through the checkout process and makes an order the value in the &#95;&#95;hikashop&#95;order&#95;product table for the item is always NULL - even if the customer fills in a value. If I remove the product specified from Restrictions &gt; Products and leave it blank, then the item is saved correctly.  This used to work on the site before I updated it to 3.1.0 (the issue still exists in 3.1.1.) If I revert the changes that were made to the /administrator/components/com&#95;hikashop/classes/order&#95;product.php file (in Hikashop 3.1.0) then the item values save properly again, so I think the issue stems from this change.  Can you please look into this? Thanks.")*

Thanks for your time looking into this. I've downloaded and installed the latest version again and still see the problem on 2 different sites so I decided to set up a bare Joomla set up and was able to recreate the steps to highlight the issue. The problem seems to only occur with a product that has variants - so I think it's only an issue for a very specific set up.

To see the problem set up a product with one variant and add 2 Item custom fields. Item One has no restrictions and shows on all products. Item Two is restricted to only show on the one product I set up.  [ ![h1.png](/forum/attachment/38866) ](/forum/attachment/38866 "h1.png")

[ ![h2.png](/forum/attachment/38863) ](/forum/attachment/38863 "h2.png")

On the front-end after filling in the custom fields, adding the item to the cart and going through the checkout process, you can see in the __hikashop_order_product table that the value for Item Two isn't saved (NULL.)

[ ![h3.png](/forum/attachment/38865) ](/forum/attachment/38865 "h3.png")

[ ![h4.png](/forum/attachment/38864) ](/forum/attachment/38864 "h4.png")

Like I said before this was working fine before I updated the sites to 3.1.0 (and the latest 3.1.1 hasn't fixed it.) I've put my bare Joomla test site up at the same location I sent you previously if you want to take a look at that as it just shows a very scaled down version of the problem (the same log in details I sent previously.)

Thanks for your help. I hope you can get to the bottom of it.

- [ ![h2.png](/forum/attachment/38863) ](/forum/attachment/38863 "h2.png") [ ](/forum/attachment/38863?download=1 "h2.png")
- [ ![h4.png](/forum/attachment/38864) ](/forum/attachment/38864 "h4.png") [ ](/forum/attachment/38864?download=1 "h4.png")
- [ ![h3.png](/forum/attachment/38865) ](/forum/attachment/38865 "h3.png") [ ](/forum/attachment/38865?download=1 "h3.png")
- [ ![h1.png](/forum/attachment/38866) ](/forum/attachment/38866 "h1.png") [ ](/forum/attachment/38866?download=1 "h1.png")

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

9 years 4 months ago [\#272605](#272605) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Custom Item fields not saving when restricted to a single product](/forum/3-bug-report/890788-custom-item-fields-not-saving-when-restricted-to-a-single-product#272605 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.2 -- PHP version -- : 7.1.5  I have a custom item field that is set up, and under Restrictions &gt; Products a particular product is chosen. When someone goes through the checkout process and makes an order the value in the &#95;&#95;hikashop&#95;order&#95;product table for the item is always NULL - even if the customer fills in a value. If I remove the product specified from Restrictions &gt; Products and leave it blank, then the item is saved correctly.  This used to work on the site before I updated it to 3.1.0 (the issue still exists in 3.1.1.) If I revert the changes that were made to the /administrator/components/com&#95;hikashop/classes/order&#95;product.php file (in Hikashop 3.1.0) then the item values save properly again, so I think the issue stems from this change.  Can you please look into this? Thanks.")*

Hello,

> The problem seems to only occur with a product that has variants - so I think it's only an issue for a very specific set up.

Thanks to your feedback, we succeed to reproduce your issue and we have added a fix about it through the last Hikashop version that you can download again through our website, so you'll just have to install it to check if it fixed your issue.

The following user(s) said Thank You: [sashau](/forum/user/26276-sashau "View sashau's Profile")

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

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

Less More

- Posts: 15
- Thank you received: 0
-
-

9 years 4 months ago [\#272845](#272845) by [sashau](/forum/user/26276-sashau "View sashau's Profile")  Replied by *[sashau](/forum/user/26276-sashau "View sashau's Profile")* on topic *[Custom Item fields not saving when restricted to a single product](/forum/3-bug-report/890788-custom-item-fields-not-saving-when-restricted-to-a-single-product#272845 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.2 -- PHP version -- : 7.1.5  I have a custom item field that is set up, and under Restrictions &gt; Products a particular product is chosen. When someone goes through the checkout process and makes an order the value in the &#95;&#95;hikashop&#95;order&#95;product table for the item is always NULL - even if the customer fills in a value. If I remove the product specified from Restrictions &gt; Products and leave it blank, then the item is saved correctly.  This used to work on the site before I updated it to 3.1.0 (the issue still exists in 3.1.1.) If I revert the changes that were made to the /administrator/components/com&#95;hikashop/classes/order&#95;product.php file (in Hikashop 3.1.0) then the item values save properly again, so I think the issue stems from this change.  Can you please look into this? Thanks.")*

Thank you, installing the latest update has fixed the issue for me.

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

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

[](#top)
