- Posts: 109
- Thank you received: 2
Display limit to, not working
- fullfusion
-
Topic Author
- Offline
Less
More
11 years 5 months ago #204634
by fullfusion
Display limit to, not working was created by fullfusion
-- 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 "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.
-- 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 or Create an account to join the conversation.
11 years 5 months ago #204666
by nicolas
Replied by nicolas on topic Display limit to, not working
Hi,
It works fine for us.
Can you provide a screenshot of the settings of both of your fields ?
It works fine for us.
Can you provide a screenshot of the settings of both of your fields ?
Please Log in or Create an account to join the conversation.
- fullfusion
-
Topic Author
- Offline
Less
More
- Posts: 109
- Thank you received: 2
11 years 5 months ago #204722
by fullfusion
Replied by fullfusion on topic Display limit to, not working
Yes. See attachments.
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 12953
- Thank you received: 1778
11 years 5 months ago #204998
by Mohamed Thelji
Replied by Mohamed Thelji on topic Display limit to, not working
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.
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 or Create an account to join the conversation.
- fullfusion
-
Topic Author
- Offline
Less
More
- Posts: 109
- Thank you received: 2
11 years 5 months ago #205067
by fullfusion
Replied by fullfusion on topic Display limit to, not working
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 or Create an account to join the conversation.
11 years 5 months ago #205086
by nicolas
Replied by nicolas on topic Display limit to, not working
Hi,
Try to change the code:
to:
in the file administrator/components/com_hikashop/types/limitparent.php and that should allow you to do that.
Try to change the code:
Code:
$fieldClass = hikashop_get('class.field');
$fields = $fieldClass->getData('',$type);
Code:
$db = JFactory::getDBO();
$db->setQuery('SELECT * FROM #__hikashop_field WHERE field_table='.$db->Quote($type));
$fields = $db->loadObjectList();
Please Log in or Create an account to join the conversation.
Time to create page: 0.064 seconds