Is it possible to field map wpforms data to woocommerce products and add the items to cart? - wordpress

I am using wpforms elite (with webhooks) in hopes to simplify the order process for woocommerce customers.
When a user submits the form at this url, http://implantlogic.wpengine.com/device-selection/ I hope to have products added to the cart based on users selections.
For example, if the user selects tooth one on the tooth selection page of the form, this product will need to be added to the cart with all fields populated http://implantlogic.wpengine.com/product/tooth-1/ and this applies to other things the user selects on the form as well which would trigger simple field mapping or the addition of simple products to the cart.
Right now I just need to know if this is possible or if I should seek other methods to solve this issue and create the same experience.

Related

How to add front product page image upload and note textarea box in shopify

I need same like this website https://gopupsocks.com/product/custom-breast-cancer-fighter-socks/
How can I do it product page and cart page?
You can Google Shopify Documentation for two easy recipes to follow:
Line Item Properties (for the product pages)
Cart Notes and Attributes (for cart page and/or other places)
In both cases, you can use those to store any extra information you may want
Note that due to a quirk in Shopify, you won't have a cart to work with until the customer plays with the cart, or you use code to add/delete and item in the cart without them knowing. So be careful when trying the cart attributes out on the front page.

Creating a form with will fill up checkout and cart details on woocommerce

i would like to create a form in which after a client fills in the form and mentions how many units of a product (for example soft toys) he would like, then we could proceed into checkout where he can make the payment.
its basically going to be a random selection page, given that all toys are the same price. If someone goes into the page and fills the form he can select how many he wants and put in his or her details then we will proceed to payment.
I am using wordpress and woocommerce.

BIGCOMMERCE - Add required field based on quantity

I am designing a T-shirt store for a client and need to be able to add custom fields to a BigCommerce product based on the user requesting more than one product (tshirt)
So - if the user has 2 products - they would be asked to complete fields for reverse name and size. Is this possible?
There aren't conditional options out of the box in Bigcommerce. You'd have to have unrequired fields that were hidden unless multiple quantities were selected (using javascript to accomplish the hide/show).
Alternatively, you can limit the item so only one can be added to the cart at a time. This could be a negative customer experience though.

WooCommerce: Override product info before adding to cart

I've found the following example (WooCommerce: Add product to cart with price override?) which lets the user add a product to the cart. However, it hard codes the prices directly on the cart itself.
Is there a way to make adjustments to a product instance i.e. costs, append additional user input, etc. and then add the product to the cart?
Thank you very much for everyones help.
Edit:
Having another crack at explaining, as doublesharp has pointed out it's not quite clear.
Joe clicks on a product, he then chooses various options on the product form which then calculates a custom cost after the 'add to cart' button is clicked but before it is added to the cart.
These options need to be completely custom as the calculations involved are outside of scope of a woocommerce 'variable product'. What I'm trying to achieve is the customer being able to add multiple instances of the same product with various costs and info associated with it.
With regards to the first part of your question where you want to add multiple instances of a product with various costs, you can have a look at the following plugins to achieve that objective
Dynamic Pricing
Pricing Deals for WooCommerce
As for the second part of your question where you want to append additional user input to the cart. This can be done using the following steps
Create a custom session and add the custom data to this session.
Add the data from the custom session to the WooCommerce session.
Extract custom data from WooCommerce session and insert it into cart
object.
Display custom data in Cart and Checkout page.
Add custom data as metadata to the order items.
Remove the associated custom data if an item is removed from the
cart.
For a more detailed on the above steps you have a look at the following link,
How to Add Custom Data to WooCommerce Order

Use extra fields in ubercart add to cart form

I am trying to implement hotel booking functionality in a Drupal 7.26 website. Customers will choose hotels from a listing page and then they will select rooms within the hotel.
I decided to use UberCart 3 for my booking mechanism.
First I implemented 'Hotel' as a Ubercart product. But a hotel is connected to rooms, each type of room has a different price. Using product attributes, I designed room type as an attribute, with each room type having a different price. So far so good, but I could not select multiple instances of any single product attribute, so I abandoned using Product Attributes.
Then I decided on this different approach. I decided to keep the room type information inside the hotel product type, using field groups.
Here's how it looks in the add content page:
Using some view templating, I managed this look in my booking page. This look is exactly how my clients want (apart from the css anyway). I am getting to book multiple instances of a room.
However, when I click on any 'Add to cart' button, Drupal does not detect that which room type was selected. I modified the rendered markup of the Add to cart form (using tpl files), and added a hidden field called roomtype for each add to cart button. So for the first button, roomtype = 'double', and for the second button, roomtype = 'single'.
My idea was to
use hook_uc_add_to_cart,
then process this roomtype value, and
then compute the price of that roomtype,
then update the price of the cart item,
and then redirect to cart page.
But hook_uc_add_to_cart provides only quantity, node id and a data variable. None of these gives me the value of the roomtype hidden field.
How do I use my hidden fields in my uc_add_to_cart hook?
Try this:
http://drupaldeveloper.in/codelet/drupal-add-product-field-cart-ubercart
This code has similar solution.
Regards.

Resources