Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Neighborhood › Hiding some details from a Gravity Form
New Landing › How can we help? › Themeforest Theme Support › Neighborhood › Hiding some details from a Gravity Form
- This topic has 30 replies, 3 voices, and was last updated 10 years by Mohammad – SUPPORT.
-
Posted in: Neighborhood
-
August 13, 2014 at 4:23 am #100516
I realize this may be out of your scope – but wondering if there is anyway to hide two items that are showing up from a Gravity Forms Product Add-on plugin.
We use Gravity Forms to calculate pricing and it shows up “Base Price” and “Discount” at bottom of order page. We would like to hide these two elements and Gravity Forms support is telling us the following:Excerpt from Gravity Forms Support: “If you hide the products on your page, they will no longer be added to the total. Do you need these products to later be added to the total before the form is submitted? If so, you will have to ‘hide’ them with CSS, making the text small and white on white, or positioning it off screen or some other hack like that. They need to be visible (eg you can’t use “display:none;” on the fields) for them to be included in the total for the form submission.”
Is it possible to make this text very small and white and locate it at very bottom of order page?
Any insight would be helpful. thanks.
FrankAttachments:
You must be logged in to view attached files.August 13, 2014 at 7:46 am #100540Hi,
Please use this custom css code:-
.gfield_calculation{display:none !important;}
Thanks 🙂
With Best Regards
MohammadAugust 14, 2014 at 2:54 am #100895thanks Mohammad – but, unfortunately, that did not work. It actually prevented the calculations from computing – all the orders where starting at $0. Is there any custom code that can force just those two items to be shown as white and perhaps very small – so they don’t take up space.
Thanks.
FrankAugust 14, 2014 at 3:18 am #100903Hi,
Please use this custom css code:-.gfield_calculation{font-size:10px !important;} .gfield_calculation label.gfield_label{font-size:10px !important;} .gform_wrapper .gform_footer{margin:0px !important;padding:0px !important;}
Thanks 🙂
With Best Regards
MohammadAugust 14, 2014 at 3:19 am #100904Hi,
Please use this custom css code:-.gfield_calculation{font-size:10px !important;} .gfield_calculation label.gfield_label{font-size:10px !important;} .gform_wrapper .gform_footer{margin:0px !important;padding:0px !important;}
Thanks 🙂
With Best Regards
MohammadAugust 14, 2014 at 4:05 am #100914that made the text smaller – but still visible –
is it possible to make it invisible – by forcing it to be the same color as background.
Also – it would be great to force it all onto one or two lines so it takes up less space.
see this link: https://thikit.com/product/painted-edge-business-cards/
(also attached screen shot).do you guys have a corporate office- i want to send you a gift for all your help with custom css work?
-Frank
Attachments:
You must be logged in to view attached files.August 14, 2014 at 5:11 am #100916Hi,
Please use this custom css code:-
.gfield_calculation .ginput_container{float: right;margin-top: 6px;width: 290px;}
OR
.gfield_calculation{visibility:hidden !important;} .product_totals{visibility:hidden !important;} .single-product .yith-wcwl-add-to-wishlist{margin-top:-90px !important;margin-left:179px !important;}
Thanks 🙂
With Best Regards
MohammadAugust 14, 2014 at 11:35 am #101029First bit of code you sent – helped by moving the text pieces to one line.
Second bit of code you sent made the text disappear but it also made the “Total” and “Add to Shopping Bag” button disappear. If there is a way to force the color of the two bits of text (Base Price and Discount) to white so it blends with the background – that would be great.
see screen shots for visual explanation.
-FrankAttachments:
You must be logged in to view attached files.August 14, 2014 at 11:59 am #101040Hi,
Please use this custom css code:-.single-product .yith-wcwl-add-to-wishlist{margin-top:-90px !important;margin-left:179px !important;} single-product button#gform_submit_button_100{margin-top:-90px !important;} .ginput_product_price_label{color:#fff !important;} .ginput_product_price{color:#fff !important;} .gfield_calculation label.gfield_label{color:#fff !important;}
Thanks
August 14, 2014 at 3:02 pm #101161Thanks Mohammad- it is getting very close. See screen shot.
The Add to wishlist button is sitting above the Add to Shopping Bag – in line with Total.
Can we get it to line up with Add to Shopping Bag?Here is all the custom CSS that i have in there for this item:
.gfield_calculation{font-size:10px !important;}
.gfield_calculation label.gfield_label{font-size:10px !important;}
.gform_wrapper .gform_footer{margin:0px !important;padding:0px !important;}.gfield_calculation .ginput_container{float: right;margin-top: 6px;width: 290px;}
.single-product .yith-wcwl-add-to-wishlist{margin-top:-90px !important;margin-left:179px !important;}
single-product button#gform_submit_button_100{margin-top:-90px !important;}
.ginput_product_price_label{color:#fff !important;}
.ginput_product_price{color:#fff !important;}
.gfield_calculation label.gfield_label{color:#fff !important;}Attachments:
You must be logged in to view attached files.August 14, 2014 at 4:38 pm #101191Hi,
Please remove this code:.single-product .yith-wcwl-add-to-wishlist{margin-top:-90px !important;margin-left:179px !important;} single-product button#gform_submit_button_100{margin-top:-90px !important;}
Thanks 🙂
With Best Regards
MohammadAugust 14, 2014 at 7:52 pm #101229thanks so much Mohammad – it worked.
Can i ask you one last question on this topic -is it possible to change “Add to Shopping Bag” to “Add to Cart”? We are a print company and add to shopping bag doesn’t make a lot of sense given the nature of our business. Thanks very much for all your great help.
-FrankAugust 15, 2014 at 5:36 am #101315Hi,
Add the following to your functions.php file of your theme.add_filter( 'add_to_cart_text', 'woo_custom_cart_button_text' ); // < 2.1 add_filter( 'woocommerce_product_single_add_to_cart_text', 'woo_custom_cart_button_text' ); // 2.1 + function woo_custom_cart_button_text() { return __( 'Add to Cart', 'woocommerce' ); }
Thanks 🙂
With Best Regards
MohammadAugust 18, 2014 at 2:55 am #101749Mohammad – to change “Add to Shopping Bag” to “Add to Cart” you sent me this CSS to put in functions.php – but i don’t know where i should put it in the code. I tried a few places, but it did not work.
Thanks.
-FrankAugust 18, 2014 at 3:07 am #101750Hi,
That is php code not a css code. YOu should insert at end of functions.php file just before php closing tag ?>.Thanks
-
Posted in: Neighborhood
You must be logged in and have valid license to reply to this topic.