WordPress Plugin Update for Gravity Forms & Cart66
$30-250 USD
In Progress
Posted over 12 years ago
$30-250 USD
Paid on delivery
THE PROBLEM:-
Pass the value from a calculated field in a WP Gravity Forms form, to the basket of Cart 66 WP plugin. We have created the GF Form with the calculated price, but cannot pass the value over to Cart66.
____________________________________________
THE BACKGROUND:-
1 - We have created the following Form using Gravity Forms plugin for wordpress:- [login to view URL]
2 - There are other Gravity Forms used in the site, but for the above form [jk-leaving-cert-revision-christmas-2011] (and any copies of the form we make), we have amended the form to allow a dynamic calculation of the final total cost based on the number of subjects selected eg:
• 1 subject costs €195
• 2 subject costs €325
• 3 subject costs €415
• 4 subject costs €465
• 5 subject costs €495
• And with additional code amendment that allows for Special Offers eg: 5 subjects for the price of 3 for instance
3 - We have customised the form to do the Special Offer pricing using the function gformCalculateTotalPrice in /www/wp-content/plugins/gravityforms/js/[login to view URL]
4 - We edited the function gformCalculateTotalPrice in /public_html/wp-content/plugins/gravityforms/js/[login to view URL] to calculate the price (we based this decision on information provided here: [login to view URL] )
5 - There is a specific GF function that will pass the calculated total from Gravity Forms to Cart66 – which is what we want. This second function will pass the calculated total to Cart 66. Look at the site [login to view URL] for the detail
___________________________________________
WHAT WE WANT:-
6 - The calculated total from the form (jk - leaving...) above needs to be passed into Cart66 for payment - (if you look at other forms in the site eg: [login to view URL] you will see how the values are passed into the Cart66 cart)
NB: We do not want to break how other forms work, we only want to edit the above form, jk-leaving-cert.... and be able to make copies of the form
7 - We need to remove the €1 cost from displaying in the shopping cart details – (test the form and see the details in the shopping cart) . When we edited the code described in 3 & 4 above, we used a value of €1 euro to work out the subject calculations - thats why this problem has occurred.
8 - We also need to remove the €1 cost from displaying in the confirmation email sent to the customer – (similar to the shopping cart view)