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

#   Display limit to, not working

##

- **[fullfusion](/forum/user/2962-fullfusion "View fullfusion's Profile")**
- [![fullfusion's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar2962.png)](/forum/user/2962-fullfusion "View fullfusion's Profile") Topic Author
- [ Offline](/forum/user/2962-fullfusion)

Less More

- Posts: 109
- Thank you received: 2
-
-

11 years 5 months ago [\#204634](#204634) by [fullfusion](/forum/user/2962-fullfusion "View fullfusion's Profile")  *[Display limit to, not working](/forum/27-checkout/877494-display-limit-to-not-working#204634 "-- url of the page with the problem -- :   nielsandersen.com/sculptures/bodybuilding/male/overall  -- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.41  I have custom field created in the table of &quot;order&quot;. I am trying to make a file upload field conditioned on the &quot;yes&quot; answer of a radio button field. Even though they are both published in the same table (which is &quot;order&quot;) I still get the &quot;You need to publish at least one other field of the same table first&quot; message at the &quot;Display limited to&quot; field. It works for fields in the &quot;address&quot; table. Please advise.")* was created by *[fullfusion](/forum/user/2962-fullfusion "View fullfusion's Profile")*

-- url of the page with the problem -- : [ nielsandersen.com/sculptures/bodybuilding/male/overall](http://nielsandersen.com/sculptures/bodybuilding/male/overall)
-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4.1
-- PHP version -- : 5.4.41

I have custom field created in the table of "order". I am trying to make a file upload field conditioned on the "yes" answer of a radio button field. Even though they are both published in the same table (which is "order") I still get the "You need to publish at least one other field of the same table first" message at the "Display limited to" field. It works for fields in the "address" table. Please advise.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3NzQ5NC1kaXNwbGF5LWxpbWl0LXRvLW5vdC13b3JraW5nP3RtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

11 years 5 months ago [\#204666](#204666) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Display limit to, not working](/forum/27-checkout/877494-display-limit-to-not-working#204666 "-- url of the page with the problem -- :   nielsandersen.com/sculptures/bodybuilding/male/overall  -- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.41  I have custom field created in the table of &quot;order&quot;. I am trying to make a file upload field conditioned on the &quot;yes&quot; answer of a radio button field. Even though they are both published in the same table (which is &quot;order&quot;) I still get the &quot;You need to publish at least one other field of the same table first&quot; message at the &quot;Display limited to&quot; field. It works for fields in the &quot;address&quot; table. Please advise.")*

Hi,

It works fine for us.
Can you provide a screenshot of the settings of both of your fields ?

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

- **[fullfusion](/forum/user/2962-fullfusion "View fullfusion's Profile")**
- [![fullfusion's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar2962.png)](/forum/user/2962-fullfusion "View fullfusion's Profile") Topic Author
- [ Offline](/forum/user/2962-fullfusion)

Less More

- Posts: 109
- Thank you received: 2
-
-

11 years 5 months ago [\#204722](#204722) by [fullfusion](/forum/user/2962-fullfusion "View fullfusion's Profile")  Replied by *[fullfusion](/forum/user/2962-fullfusion "View fullfusion's Profile")* on topic *[Display limit to, not working](/forum/27-checkout/877494-display-limit-to-not-working#204722 "-- url of the page with the problem -- :   nielsandersen.com/sculptures/bodybuilding/male/overall  -- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.41  I have custom field created in the table of &quot;order&quot;. I am trying to make a file upload field conditioned on the &quot;yes&quot; answer of a radio button field. Even though they are both published in the same table (which is &quot;order&quot;) I still get the &quot;You need to publish at least one other field of the same table first&quot; message at the &quot;Display limited to&quot; field. It works for fields in the &quot;address&quot; table. Please advise.")*

Yes. See attachments.

- [ ![field1.jpg](/forum/attachment/24885) ](/forum/attachment/24885 "field1.jpg") [ ](/forum/attachment/24885?download=1 "field1.jpg")
- [ ![field2.jpg](/forum/attachment/24886) ](/forum/attachment/24886 "field2.jpg") [ ](/forum/attachment/24886?download=1 "field2.jpg")
- [ ![fields.jpg](/forum/attachment/24887) ](/forum/attachment/24887 "fields.jpg") [ ](/forum/attachment/24887?download=1 "fields.jpg")

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

11 years 5 months ago [\#204998](#204998) 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 *[Display limit to, not working](/forum/27-checkout/877494-display-limit-to-not-working#204998 "-- url of the page with the problem -- :   nielsandersen.com/sculptures/bodybuilding/male/overall  -- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.41  I have custom field created in the table of &quot;order&quot;. I am trying to make a file upload field conditioned on the &quot;yes&quot; answer of a radio button field. Even though they are both published in the same table (which is &quot;order&quot;) I still get the &quot;You need to publish at least one other field of the same table first&quot; message at the &quot;Display limited to&quot; field. It works for fields in the &quot;address&quot; table. Please advise.")*

Hello,
Your issue is coming from the fact that you have set some custom access level on your custom fields, you should test it without it.

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

- **[fullfusion](/forum/user/2962-fullfusion "View fullfusion's Profile")**
- [![fullfusion's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar2962.png)](/forum/user/2962-fullfusion "View fullfusion's Profile") Topic Author
- [ Offline](/forum/user/2962-fullfusion)

Less More

- Posts: 109
- Thank you received: 2
-
-

11 years 5 months ago [\#205067](#205067) by [fullfusion](/forum/user/2962-fullfusion "View fullfusion's Profile")  Replied by *[fullfusion](/forum/user/2962-fullfusion "View fullfusion's Profile")* on topic *[Display limit to, not working](/forum/27-checkout/877494-display-limit-to-not-working#205067 "-- url of the page with the problem -- :   nielsandersen.com/sculptures/bodybuilding/male/overall  -- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.41  I have custom field created in the table of &quot;order&quot;. I am trying to make a file upload field conditioned on the &quot;yes&quot; answer of a radio button field. Even though they are both published in the same table (which is &quot;order&quot;) I still get the &quot;You need to publish at least one other field of the same table first&quot; message at the &quot;Display limited to&quot; field. It works for fields in the &quot;address&quot; table. Please advise.")*

Ok. Yes it works when I don't set them with custom access. So is there a way to have those work for custom access. We have two different customer groups. How would we have unique custom fields show for each group?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3NzQ5NC1kaXNwbGF5LWxpbWl0LXRvLW5vdC13b3JraW5nP3RtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

11 years 5 months ago [\#205086](#205086) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Display limit to, not working](/forum/27-checkout/877494-display-limit-to-not-working#205086 "-- url of the page with the problem -- :   nielsandersen.com/sculptures/bodybuilding/male/overall  -- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.41  I have custom field created in the table of &quot;order&quot;. I am trying to make a file upload field conditioned on the &quot;yes&quot; answer of a radio button field. Even though they are both published in the same table (which is &quot;order&quot;) I still get the &quot;You need to publish at least one other field of the same table first&quot; message at the &quot;Display limited to&quot; field. It works for fields in the &quot;address&quot; table. Please advise.")*

Hi,

Try to change the code: Code:

$fieldClass = hikashop_get('class.field'); $fields = $fieldClass-&gt;getData('',$type);

to: Code:

$db = JFactory::getDBO(); $db-&gt;setQuery('SELECT * FROM #__hikashop_field WHERE field_table='.$db-&gt;Quote($type)); $fields = $db-&gt;loadObjectList();

in the file administrator/components/com_hikashop/types/limitparent.php and that should allow you to do that.

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

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