How can I remove the price and price per unit from my form? My form is basically an order form. I have 4 products that are feel and there is no need for a price. also is there a way to load the product list from a custom post type?
How can I remove the price and price per unit from my form? My form is basically an order form. I have 4 products that are feel and there is no need for a price. also is there a way to load the product list from a custom post type?
Please provide a link to your form and we will help you hide those elements.
To populate any field, you can use the gform_pre_render filter, to change the data before the form is displayed: http://www.gravityhelp.com/documentation/page/Gform_pre_render
My test form is here... http://rfgfoodservice.com/?page_id=48.
I would also like to display an image next to the title. Can I do that from the html field?
You can hide the product label and value with this CSS. Add this to your theme's stylesheet:
[css]
body .gform_wrapper span.ginput_product_price,
body .gform_wrapper span.ginput_product_price_label {
display: none;
}
body .gform_wrapper span.ginput_quantity_label {
margin-left: 0px;
}
I used the last 3 lines to override the left margin on the "Quantity" label after removing those 2 options above.
If that fixes the display issue, please go ahead with your next question. We'll work on one problem at a time. Thank you.
That does fix the display issue on the front end. Any way to remove unit price and total price from the entries screen? I dont see a class assigned on the entries screen for those cols,
Is there away to see the order entries any other place outside of the admin control panel. I would like the users to be able to see their order history.
Can anyone help me with this issue?
@epicwebsolutions, you've asked several unrelated questions here. How do you want to display the orders? You can always retrieve the data direct from the database, but then displaying it is up to you. In the past, I have written a shortcode function to pull specific entries from the database for display on the front end. Here is one example of how to do it http://pastebin.com/kHpaHQvi
That was a very specific use shortcode. You can use that as an example and modify it for your needs.