
Custom code in functions.php of a Gravity Form in a Woocommerce Site
- or -
Post a project like this- Posted:
- Proposals: 2
- Remote
- #1277734
- Awarded
Description
I have a Wordpress site using Woocommerce, Gavity Forms, Gravity Forms Product Add-ons, plus other various plugins.
I have a Gravity Forms that’s all complete and using Gravity Forms Product Add-ons to insert it into my Woocommerce Products pages. All of my products use this form. The form is basically a step by step instruction page for the user to fill in their inscription that is to be engraved on planes, trophies etc. There are no costs associated in the form except for 3 items. They are radio buttons that if the user selects to upload a logo/graphic, there is a $45 Graphics Set-up fee. The problem is if I put the $45 in the price of the form and the user wants 10 products, $450 gets added to the cart. Plus, the fee needs to be non-taxable and can’t be added to the overall taxable cost of the product. I just need a $45, non-taxable fee added. So I came up with the idea of making the $45 Set-up fee a non-taxable product that would get added to the cart if the user selects one of the set-up fee radio buttons.
What I need is someone to write the code that would get inserted into my functions.php page, that if the user selects either the One Logo Upload or the Two Logo Upload radio button and gets through the form and clicks the Add to Cart button, this would trigger the $45 Graphics Set-up Fee product to get added to the Cart.
I did alter the Gravity Form Product-Adds by removing the Quantity Remove from the Next Button=>0 and creating a Quantity Hide on Previous Button=>0 because my client wanted the Quantity Input at the front of the form.
Seems like a simple code to write; if radio button value is true, add product ID to cart.
Here is a sample products;
http://onclick-interactive.com/Clients/FinerLine/product/cheerleading/
Here are the steps:
Put in any Quantity and click Purchase
Select either the One Graphic and Text on this item or Two Graphics and Text on this item and click Next
Select Upload a new logo/graphic ($45.00 one time fee)
***This is one of the radio buttons that when selected, and user adds this product to the cart, it would add the Graphics Set-up Fee product (Product ID 1907) to the cart***
Click Next
Enter any text for the Inscription and click Next
Select No proof required then click Next
Click Add to Cart
Then in the cart, You would see your product you ordered and the Graphic Set-up Fee Product
Let me know of time/costs to create the code.
Thanks,
Sean
Sean M.
100% (2)New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-

Hi,
when are you planning to launch this website?
Thanks -

Are you in a rush or flexible on deadline?
-

Sean
Tested, see - http://prntscr.com/cfo02g
on checkout page - i can see only product amount.
Task is
i. To add the $45 one off fee
ii. To make sure the $45 is not taxable
iii. What is your tax rate in USA?
IV. Do you have a timeline
Regards -

Hello Sean,
We are analyzing your project requirements and would like to discuss the project in detail so that we both have the same level of understanding about the project and based on that give you with the best cost and time for this project.
Please open PMB for a brief discussion over the project.
Thanks & Regards,
Sean -

Sean
You cannot use gravity form plugin as an ecommerce plugin.
Woocomerce need to be setup, you open to this?
RegardsSean M.08 Sep 2016Woo commerce is set up.