F
F
fillpower2018-06-08 20:53:44
WordPress
fillpower, 2018-06-08 20:53:44

How to make an order button wordpress product?

Good afternoon, there is a small site with about 10 products. It is necessary that when ordering a product it is selected automatically, that is, when the user clicks on the order button, the name of this product should be automatically entered in the text field. Are there any plugins for this? If I didn't explain well, look at the screenshots below.5b1ac1f4e25dc811162368.jpeg5b1ac1f965350462623269.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Orkhan Hasanli, 2018-06-09
@azerphoenix

Hello!
This can be done using JS on the client side. The value from a certain field (for example, a title tag) is passed to the contact form, but you can go even simpler...
If you use the CF7 plugin for the contact form, then it has the ability to pass the url and title of the page when submitting the form, with to which the message was sent. Those. physically the text will not be inserted into the form, but upon receipt of the letter, you will see the necessary information...
https://ru.wordpress.org/plugins/contact-form-7/
Spec. tags to insert - https://contactform7.com/special-mail-tags/
[_url] - url of the current page
[_post_title] - title of the current post

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question