| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Extra Fields... drop down box, not text field | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Extra Fields... drop down box, not text field
Is there a way to make the extra fields option into a drop down box where I could choose from 3 different options when I add the product?
I sell items that are in retail package, OEM package, and bulk package. I would like to add the info to the extra field, but I want to choose the options rather than typing them in.
__________________
4.1.7 X-Cart Gold Product Configurator Module Advanced Order Management Module RMA Module Feature Compare Module Blue Dream theme by 7Dana.com |
|||||||
#2
|
|||||||
|
|||||||
Anyone?
__________________
4.1.7 X-Cart Gold Product Configurator Module Advanced Order Management Module RMA Module Feature Compare Module Blue Dream theme by 7Dana.com |
|||||||
#3
|
|||||||
|
|||||||
I'M STILL LOOKING FOR A WAY TO DO THIS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
__________________
4.1.7 X-Cart Gold Product Configurator Module Advanced Order Management Module RMA Module Feature Compare Module Blue Dream theme by 7Dana.com |
|||||||
#4
|
|||||||
|
|||||||
*BUMP*
I would also like an option to be able to generate the extra field content either via a drop down, checkboxes, or whatever. Basically, I need all my providers to have a fixed set of choices for one of my extra fields. Thanks.
__________________
X-Cart 4.0.13 Add-ons: X-Affiliate, X-RMA, X-FeatureComparison, X-AOM, X-FancyCategories Skin: Fashion Mosaic Green |
|||||||
#5
|
|||||||
|
|||||||
Actually I need to.
Anybody knows, how can we do?
__________________
X Cart Gold Ver. 4.1.6 |
|||||||
#6
|
|||||||||
|
|||||||||
you would have to hard code a select drop down into the extra fields template
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. EWD Hosting Hands On Hosting |
|||||||||
#7
|
|||||||
|
|||||||
Re: Extra Fields... drop down box, not text field
Old post, so I don't know if this has already been solved elsewhere, but...
I wanted to accomplish the same thing and was searching the forums, couldn't find an answer but this thread helped me figure it out. /modules/Extra_Fields/product_modify.tpl contains the code for what the Extra Fields area looks like when you're adding/modify one of your products. It basically codes a row with the 1st column being the extra field's name and the 2nd column being the input textbox for the extra field's value. This row loops for each of your Extra Fields. I added an if-statement that coded a different kind of 2nd column (with a drop-down instead) if the Extra Field met one of my criterias. Here's my new code: Code:
After the {else} is the regular code for the input textbox. Make sure to add an {/if} before the {/section} to close this new statement. Replace "Banana" with the actual name of the Extra Field you previously created and Option1, Option2, etc with your actual options. I tested in 4.0.18 and it works for me. Hope this helps someone. I know how frustrating it can be to search and search!
__________________
X-Cart Gold 4.3.1 Military Support Shop :: Army Wife Clothing, Military Support T-Shirts |
|||||||
#8
|
|||||||
|
|||||||
Re: Extra Fields... drop down box, not text field
Hi there,
The code you gave in the post works really well. However I have a problem with dropdown with multiple choices : only the last choice will be implemented in the data base. Is there a way of changing this? Where should I change this features? Thank you for your help and very nice code! Cheers!
__________________
x-cart gold version 4.3.1 Modules: lib Curl 7.21.6 |
|||||||
#9
|
|||||||
|
|||||||
Re: Extra Fields... drop down box, not text field
Quote:
__________________
X-cart Platinum 4.6.0 |
|||||||
|
|||
X-Cart forums © 2001-2020
|