ltiger Posted December 13, 2011 Share Posted December 13, 2011 Can anyone tell me how to display a specific custom field and not the whole custom field list? Lets say I just want to display Custom field 10 on one specific page. Original Custom field code to display all custom fields on order: {foreach key=num item=customfield from=$customfields} <tr><td class="fieldlabel">{$customfield.name}:</td><td class="fieldarea">{$customfield.input} {$customfield.description}</td></tr> 0 Quote Link to comment Share on other sites More sharing options...
Payton Designs Posted December 13, 2011 Share Posted December 13, 2011 You can specify what configurable option groups will be displayed on a per product basis. Will this work for you? I understand they aren't client fields, but they do serve a purpose of acquiring additional information. 0 Quote Link to comment Share on other sites More sharing options...
ltiger Posted December 13, 2011 Author Share Posted December 13, 2011 Thanks for the reply. I am aware of the custom fields per profuct page, but I am trying to modify my template to display a single desired field only via PHP such as custom field #x 0 Quote Link to comment Share on other sites More sharing options...
Payton Designs Posted December 13, 2011 Share Posted December 13, 2011 So you want a certain custom field displayed depending on what product is selected? 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted December 13, 2011 Share Posted December 13, 2011 $customfields[10].name $customfields[10].description etc. 0 Quote Link to comment Share on other sites More sharing options...
ltiger Posted December 13, 2011 Author Share Posted December 13, 2011 Yes I also need to know how to call a field to display. Say field "83" which is country location pulldown on the product field list. How do I display that field 83 key only without displaying my whole custom field list for that product? Thank! 0 Quote Link to comment Share on other sites More sharing options...
ltiger Posted December 13, 2011 Author Share Posted December 13, 2011 Basically what I am trying to do is let the user select which country product is from, I have jquery show a different div box if USA or Canada is selected. See Canada has a Zip Code, and the US has a postal code. Obviously if the user selects Canada the US custom fields disappear. I have custom fields for both U.S postal code and Canada zip code, but the custom field list has no way of not displaying fields that don't apply. The current custom fields display every field for that product. I have edited the orderform PHP to display HTML fields rather than the whole dynamic product field list. 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted December 13, 2011 Share Posted December 13, 2011 Why not just change the label of the field based on their selection? This is fairly easy to do with jquery. 0 Quote Link to comment Share on other sites More sharing options...
ltiger Posted December 14, 2011 Author Share Posted December 14, 2011 Yes I have accomplished this, but fortunately my issue now is that code is display on on all of the products. Is there a way to display a different customized field set on each product order form? See my site sells website for real estate and rentals, and the default custom field output is not customizable enough. Why not just change the label of the field based on their selection? This is fairly easy to do with jquery. 0 Quote Link to comment Share on other sites More sharing options...
ltiger Posted December 14, 2011 Author Share Posted December 14, 2011 Again thanks for all the help guys. Any coders want to tell me how a customization would cost. Features required: User uploaded images from within product order page. User can add a description to each image. When logged in user can modify image from control panel (delete, reorder images, modify captions, reupload image, add new.) These modifications will display within the default domain custom field display when user is logged in. any image modifications would alert a selected support team. 0 Quote Link to comment Share on other sites More sharing options...
ltiger Posted December 14, 2011 Author Share Posted December 14, 2011 Hi guys one more questions. I am currently using this, which works: <tr><td class="fieldlabel">{$customfields[10].name}:</td><td class="fieldarea">{$customfields[10].input} {$customfields[10].description}</td></tr> Obviously that code will display regardless of which product order form they are on. Does anyone know how to apply this to display only when shown on product one, while also having another custom code show when user is on a different product order page? 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.