Tags/topics: 
5
Answers
Vote up!
0
Vote down!

How to display an image between customized type fields

Hello,

I can't find a way of just displaying an image between custom line item fields I created.

I don't want this image as a field to be filled by the custommer but rather I'd like to display one as a visual help for the custommer when he fills up the form.

To be more explicit, in this case it is about displaying a list of color pictures associated with a special code, this code being available to be selected into a list vals just below the picture.

Thank you for any help on this.

Clasie

Asked by: clasie
on February 22, 2013

5 Answers

Vote up!
0
Vote down!

Thank you for your reply, I'll read if this can solve my problem and report on this here.

Best regards.
Clasie

Answer by: clasie
Posted: Feb 22, 2013
Vote up!
0
Vote down!

Hi realskorpion,

After having installed and tried the Display Suite I haven't been able to reach my purpose here. So perhaps it's not the right tool for me or I haven't been able to use it correctly.

---------------

Let me try to describe more explicitely my goal if you please.

The context is a drupal 7 commerce 7.x-1.4. I created a bunch of fields inside various custom line items I made to reach the very customized necessities of my commerce (stuffs for horses).

To fix the ideas, I have a line item with a machine name 'sc_tapis_de_selle_dressage'

Inside this 'sc_tapis_de_selle_dressage' line item I put 3 fields...

1- Sizes
2- Colors
3- Galons (types of short decorative ropes)

... which are select lists containing values for each of them.

My topic is here, I'd like to be able to insert between the first field (Sizes) and the second fields (Colors) a displaying picture (not an image input field).

The aim of this picture beign a help for the custommer to determine the exact name of the color he will have to choose in the below select list of colors (the second field).

This additional fied is then a display type and not an input type inside this shopping cart form.

---------------

I tried the Display suite on a drupal 7 commerce (commerce 7.x-1.4) as follow:

CREATION of the field

-1 I installed and activate the Display Suite module 7.x-2.2
-2 I crated a custom field:
a- admin-> struct->fields->Add a code field (my machine name: custom_disp_field)
b- I selected all the entities (for the test)
c- In 'Field code' I entered 'This is some text'
-3 I saved.

USAGE of it in custom line item

1- I went to admin->shop->config->line item type->'sc_tapis_de_selle_dressage'->manage fields

2- But there I can't catch my 'custom_disp_field' anywhere, neither from the 'add a fields type fields' nor from 'add an existing field'.

---------------

Sorry for the length of this but I tried to be more explicit this time.

I'd apreciate any help on this.

Regards
Clasie

Answer by: clasie
Posted: Feb 24, 2013
Vote up!
0
Vote down!

...realskorpion you said there could be other ways of doing this, could you advise me some?

Regards
Clasie

Answer by: clasie
Posted: Feb 24, 2013