Answer the question
In order to leave comments, you need to log in
How to pull product name in Contact Form 7 from Woocommerce product category?
When you click "Order", a popup press form opens to which CF7 is attached, I need to pull up the name of the product above which this button is located.
How can this be implemented? Help me please.
Link to the site: http://tort-el.ru/product-category/popular/for-a-day...
Answer the question
In order to leave comments, you need to log in
The issue is resolved
I assigned an attribute with the title name of the product to the button and displayed it through the function
$('.zakaz').click(function()
{
titleService=$(this).attr('data-title-service');
$('.hide-title').val(titleService);
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question