V
V
Vlastev2015-03-13 16:11:16
Electronic commerce
Vlastev, 2015-03-13 16:11:16

How to implement a form for adding goods to the cart in Wordpress using plugins!?

I 'm interested in the possibility of adding goods to the Wordpress cart by filling out the Ajax purchase form, as on this site: veschichka.com/help/how-to-order/ . It is possible and not Ajax, but with the help of Contact Form 7 or WooCommerce, the main thing is that it works.
More specifically: adding a product to the cart is done by filling out a special form in which you indicate the price of the product from the taobao website, a link to it and return data (All this is easily done using Contact Form 7). After filling out the form, the product appears in the basket !!! At what the price is the one that you indicated in this very form.
How can I implement the same opportunity as on the site, according to the link above!?
It is necessary that the data from this form go to the basket, in which the order prices will be summed up and subsequently sent in the form of a letter to the customer's mail for payment. It's even better if the payment form is screwed in this very basket.
I hope that quite experienced and sympathetic people live on this blog. I will be very grateful for the answer. I follow the comments...

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vlastev, 2015-03-14
@Vlastev

I explain on my fingers what I can’t do:
You need to create a tao-bao intermediary site with the following functionality:
1. 68d10cb5d10144019481b35992177768.jpg
It is necessary that there is a button above the side menu or in any other place on the site, "add to cart" in the screenshot.
2. By clicking on it, an Ajax form appears for filling out (you can also not ajax, but a simple relink to a page with the same form).
The form is filled out MANUALLY!
In the link column, you can specify a link only from the Tao-Bao website, the price is only numbers.
In case of incorrect filling, the following errors pop up in the form:
Upon completion of the correct filling and pressing the "send" button, the product jumps to the basket, and the following message appears in front of us:
Everything is clear here, I will not explain.
3. Now about the basket itself.
As I wrote above, when filling out the form from paragraph 2 and pressing the "send" button, the product goes into the basket.
Now, when you click on this basket, a separate page is loaded with the following information:
The information in the basket should be the same! Everything is simple, clear and accessible!
When placing an order, the following functions are available to us: 4. Further, the completed form can be sent to the mail of the Tao intermediary, or you can connect the payment form with the choice of payment: Internet wallets, online payment from bank cards or payment to a bank account through the terminal. Payment options , I think it’s better to send it in a letter to the client who made the order. Or you can make all online payments immediately and only after that send the form with the paid order to the mail to the Tao intermediary, and if the user wants to pay for the goods in the terminal, display for him payment data, and to the Tao intermediary, send a letter about the pre-order of the goods.
Delete a product, a link to the product (link from the form from point 2), the quantity of the product with a changing price for the product at the bottom and the "checkout" button.
Let's say everything is correct with the quantity and the product, click "checkout". The following form appears:
Here the user can fill in the return data and click on the "checkout" button.
Something like this.

A
Alexey Nikolaev, 2015-03-13
@Heian

The general algorithm is as follows:
- take the IM plugin (the same woocommerce, if you like it)
- if the plugin you have chosen does not have such functionality, and there are no solutions for it, go to step 3
- write a small plugin , register ajax in it - request , which in turn uses the actions \api of the plugin to add an item to the cart. You can get a list of actions and API functions in the developer's documentation, or by looking at the source code if the developer has not compiled the docks.
In general - nothing complicated. I would throw off a specific code, but I don’t have it ready.
PS Also, judging by your question, you need an IM, which means that you are unlikely to need to use plugins like Contact Form to implement the basket, and it will not be easy to implement (normal solutions of online stores have a basket in the kit).
PPS By the way, have you searched Google for solutions? In five seconds, I found a plugin for WooCommerce that allows me to implement the necessary

E
Elena, 2015-03-13
@Nidora

For your purposes, woocommerce is well suited, there are all the settings you need.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question