Jump to content

Module Setting Option to Custom Field


CobbyJ

Recommended Posts

Hello,

I know i have done this before but i can remember how.

I have a module with a few options in it and i want to be able to change one of the options in a drop down menu in a custom field.

What would the name convension be in the custom field for it?

Module Settings code

 

<td class="fieldlabel" width="20%">Product ID</td>

<input type="text" name="packageconfigoption[6]" class="form-control input-inline input-300" value="100">

 

So what i want is to be able to change the value which is current set to 100 to whatever i want.

 

Would i just do "Product ID|Location" as the Field Name?

Link to comment
Share on other sites

Well, lets step back for a second. 

There are two potential custom items for services:

  • custom fields that are setup under the product -> custom fields
  • configurable options that are setup under products / services -> configurable options

The one you provided is the configurable options item.  So, which one do you want to modify? 

  • If you want to modify the custom fields, then IIRC you need to do so via a module's action function or like within _clientarea on a post. 
  • If you want to change the configurable options, then that should be possible via the service page in the client area -> Upgrade/downgrade options as long as you have a configurable options group selected in the product -> configurable options tab.
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