Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
1 answer
30 views

Issues Implementing AJAX Autocomplete in WordPress Admin with Select2

I'm trying to implement an autocomplete feature in my WordPress admin area using Select2 and AJAX. However, I'm having trouble getting the AJAX requests to work correctly. PHP Code to Handle the AJAX ...
Matteo Didonè's user avatar
-3 votes
0 answers
30 views

how to autofill wordpress checkout page inputs from data from db [closed]

I have a problem with auto filling the inputs , I succussed in get data from db and log it into browser too, but my real problem is that once I change the value of inputs using js or jQuery it just (...
muhammed Amr's user avatar
1 vote
1 answer
32 views

Force State/County field to be required in WooCommerce Shipping Calculator

I am trying to make sure that the Shipping State field is selected in the shipping calculator. Using the solution here works great for the City and Postcode fields like this: jQuery('#...
AJD's user avatar
  • 424
0 votes
0 answers
25 views

Wordpress Select2 Ajax query call data from DB

I'm a beginner coding with JQuery Select2 and Ajax. I'm trying to load dataset from DB into JQuery Select2 dropdown with search option. This is the function for DB query and enqueue scripts in my ...
user23190550's user avatar
-1 votes
0 answers
20 views

function for customizing woocommerce statistics

I'm trying to customize the statistics tab of Woocommerce, in the "promo code" submenu of statistics it displays the codes used, the number of orders concerned and the amount of discounts ...
Sitio's user avatar
  • 1
0 votes
0 answers
14 views

Calling Wordpress PHP route within an IFrame

I want an add to cart functionality within an iFrame that is built on my local drive (localhost3000). There exists a route in the wordpress site that hosts it, but I am not sure how to bypass COORS ...
Arya Bansal's user avatar
1 vote
0 answers
45 views

Filter a wordpress table with JS?

I'm building my own WP theme and I try to avoid JS in Wordpress like the plague because it's hieroglyphics for me... And I still haven't found a resource to learn correctly in a WP environment.... ...
f.soucy's user avatar
  • 23
0 votes
1 answer
53 views

Background-color not changing in sequence

In response to a button click I have the following jQuery code in a code snippet on a WP site jQuery("#cf_course_planner tr").css("background-color", "#f66"); jQuery(&...
Paul Mc's user avatar
0 votes
0 answers
55 views

WordPress AJAX POST Request Not Working: Page Refreshes Instead of Displaying Result in Modal

I've created an AJAX function in WordPress to send a POST request and display the result in a modal upon successful completion, without refreshing the page. However, the AJAX code isn't working. When ...
iyed ghodhbane's user avatar
0 votes
1 answer
55 views

jQuery ajax issue with multiple forms on same page - always picks first form

I've been struggling with this (most likely simple) issue for a few days. Any help would be appreciated. I have a page with multiple form buttons on it for people to sign up for events. The list of ...
David G's user avatar
  • 23
0 votes
1 answer
53 views

Scroll to tab content on menu tab item click in WooCommerce single products

I use the jQuery code embedded in a PHP function to scroll to tab content when a menu tab item is clicked in WooCommerce single products. The product tabs are layout to be underneath each other. The ...
Robert Sietsma's user avatar
3 votes
1 answer
83 views

Add to cart multiple variations via JQuery and Ajax in WooCommerce

I'm using add_to_cart method to add a variation to cart with Ajax, this works but I can't find a way to add multiple variations using the same request. If I send one_data it works, but not with ...
Becker Armata's user avatar
2 votes
1 answer
46 views

Add to cart a product variation via JQuery and Ajax in WooCommerce

I am Unable to add a product variation to cart using jQuery and Ajax. With the code below, the parent variable product is added, but not the variation. For example, I specified one of T-shirt ...
Becker Armata's user avatar
0 votes
1 answer
59 views

Autoplay for multiple video elements on one page

I'm trying to add a featured video to my archive product page in woocommerce. The only issue I'm having is that only one video autoplays and the others are just paused. When I have one video on the ...
Harry M's user avatar
  • 42
0 votes
1 answer
30 views

how can i remove a particular part from media urls in wordpress?

i want to remove https://bikinilite.com/wp-content/uploads/ from all the urls. For example here is a full url https://bikinilite.com/wp-content/uploads/https:/ae01.alicdn.com/kf/...
yeasin miah's user avatar

15 30 50 per page
1
2 3 4 5
999