Jump to content

Product Custom fields (Customisation)


Recommended Posts

Can anyone help me to get this code working? It should be simple. But I am missing something, appreciate your help in advance.

 

I’ll like to be able to select e.g. “motor vehicle” from the drop down menu on the products page and have some text below the drop down menu show something.

 

Then if I select the next item in the drop down e.g.“Truck” the text below the drop down menu show something else.

 

Select “Trailer” something else..etc.

 

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

Field Type – Drop down

Select Options – e.g. Motor Vehicle,Truck,Trailer or caravan,Motorcycle,Boat (Comma Separated List)

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

 

I have tried a couple of difference {if} statements but without success, I know I’m close, it’s frustrating…

 

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

Source code:

<tr><td class="fieldlabel">Select Options</td><td class="fieldarea"><input type="text" name="customfieldoptions[33]" value="Motor Vehicle,Truck,Trailer or caravan,Motorcycle,Boat" size="60"> For Dropdowns Only - Comma Seperated List</td></tr>

 

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

 

3 attempts: configureproduct.tpl code:

{if $customfieldoptions eq "Truck"}display this{/if}

{if $customfield.id eq 33}<option value="Truck"{if $customfieldoptions eq "Truck"} selected="selected"{/if}>display this</option>{/if}

{if $customfield.id eq 33}<option name="customfieldoptions" value="Truck">display this</option>{/if}

 

Thanks again

Kev

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated