- Posts: 26
- Thank you received: 0
custom field image display
-- Joomla version -- : 3.3.6
-- PHP version -- : 4.39-0+deb7u2
-- Browser(s) name and version -- : Chrome 42.0.2311.135 m
Hi Guys
On the front end I have 7 custom fields under the product specifications which i would like to display with an custom image rather than how it is currently set to display as a single drop down. Is this possible?
Thanks
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
What do you exactly mean by "custom image", can you give me more information about what do you exactly want to do through some screenshots ?
Also checking that documentation will probably help you : www.hikashop.com/support/documentation/1...-display.html#layout
Please Log in or Create an account to join the conversation.
Thanks for your response.
If you view the link here . Now at the bottom in the specifications you will see 7 drop downs each labelled and has a number assigned to it. We would like to use images which display the different pressures rather than numbers.
Thanks
Please Log in or Create an account to join the conversation.
Could you do a screenshot of the settings page of one of the custom fields on use so that we can see how you have it configured at the moment ?
Please Log in or Create an account to join the conversation.
Please find attached the screengrab.
Thanks
Please Log in or Create an account to join the conversation.
So in the "Title" column of your values, instead of 0, 1, 2, etc enter translation keys like that:
POLLPRESSURE_0
POLLPRESSURE_1
POLLPRESSURE_2
...etc...
Then, edit your language file via the Languages tab of the HikaShop configuration and enter such translation override:
Then, you'll see on your frontend that the numbers will be replaced by the images.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
There seems to be an issue with the fix you suggested. When i am in the back end editing a product i cannot configure the drop downs so it displays the correct image. The dropdowns are grey-ed out, please see image attached.
Many Thanks
Please Log in or Create an account to join the conversation.
Please edit the file "administrator/components/com_hikashop/classes/field.php" and replace the functions "trans()" by:
Please Log in or Create an account to join the conversation.
Such awesome support ... Keep it up lads
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Can you provide a screenshot of the settings of your filter and a link to that page with the filters so that we can reproduce the issue ?
Please Log in or Create an account to join the conversation.
scroos.if-icould.com/index.php/buy-screw...ilter_ScrewType_2=24
Please Log in or Create an account to join the conversation.
The issue seems to come from the settings of the custom field, not the translation of the values.
Could you provide a screenshot of all the settings of your custom field ?
Please Log in or Create an account to join the conversation.
- Posts: 5
- Thank you received: 0
I am having this problem as well. I can see the image if I set the custom field to Radio Button but when I change it to Single Dropdown, I can only see a grey box on the front end.
Can you please help me figure out how to make this update?
Thank you!
Amanda
Please Log in or Create an account to join the conversation.
That's normal. Dropdowns can't have HTML in their options, and that includes img tags of images.
Not much we can do to avoid that I'm afraid.
Please Log in or Create an account to join the conversation.