This could be useful if you have things like clothing sizes or shoe sizes that pertain only to certain categories.
Is there a way to have show hide function for certain fields in your sell form or item page based on the category breadcrumb?
This would be a useful mod for forms.
Results 1 to 7 of 7
11-03-2012, 04:31 AM #1
- Join Date
- Jun 2011
Custom Show and Hide for Fields Dependent on Category
11-03-2012, 01:28 PM #2
the idea is very easy with if statements but you would have to work on the additional fields. Problem is where do you stop as each category and each subcategories could has its own fields, pc's, tv's,etc.
So many things to try and cover.
if you just want for 1 category and its children should be straight forward.
11-03-2012, 06:25 PM #3
- Join Date
- Jun 2011
11-03-2012, 09:13 PM #4
Right lets say for shoes you are going to want possibly 2 fields.
One for size and one for color.
The more I think about it it would be more practical for each auction to add its own fields.
In the same category you could have sellers with different values on these fields where if you base it on category name they would be forced to all have the one field we have made up for them. not good.
That is why I am thinking it would work better for making these fields on the sell page when you enter the auction data.
This is how I imagine it:
In sell.php while entering the auction data an option to add a field (Yes/ No), if yes: name the field (eg. select your size),
and then build your size options (option 1: size 10, add another option->option 2: size 11, etc)
Once all done then we save in the database the field and its options for that auction.
In item.php we could look to see if this auction has additional fields and if it has we show them.
Then as they buy the item they should have selected an option before allowed to proceed.
The additional options then should be passes along with the auction name.
Of course we are talking about buy now items, as if its a normal auction it will get messy as every bidder will want different sizes.
Not a coder myself but like challenges.
12-03-2012, 12:27 PM #5
19-03-2012, 10:39 AM #6
this should be done and I am ready to develop this with someone who help me in writing additional files needed to this.
How should this work? new table in database containing fields added in admin section ( like categories for ex. )
in categories section in admin should be an option to check if additional fields is connected to this category and if yes choose which one. on sell page if in category is additional field it should be shown . thats it. I don't know sql very good , so there is a problem for me to write the code because we should work here with "join" commands in sql .If you found my posts helpful, feel free to thumb it upFORCE ME TO WORK HARDER ----> DONATE recived (147 $) THANKS ALL
02-04-2012, 09:26 AM #7
I would like to add one field to one category
the field I would like to add is
Location, with a drop down menu.. how would I do this?