Plugin is WP Configurator Pro i want that the ajax add to cart button redirect to cart page. Tried this and many other examples but did not work
add_action( 'wp_footer', 'trigger_for_ajax_add_to_cart' ); function trigger_for_ajax_add_to_cart() { ?> <script type="text/javascript"> (function($){ $( ".js-wpc-submit-cart-form" ).trigger( "click" ); window.location = "cart link"; })(jQuery); </script> <?php }
How to stop Ajax cart button functionality from add to cart button
142 Views Asked by Pptinyint At
1
There are 1 best solutions below
Related Questions in AJAX
- window.location.href redirects but is causing problems on the webpage
- Js variable to php using ajax
- TypeError: Failed to execute 'arrayBuffer' on 'Blob': Illegal invocation - Insert blob into database
- how do I change a URL with form to include additional selection
- why i have to put extra space in before write option selected because it show error if i don't ' option:selected'
- Opening modal through Update button with specified ID using ajax
- Events disappear randomly for full calendar module
- Ajax call reloads page in FrontAccounting, a PHP ERP solution
- Add newly added record to select2 element
- AJAX query cascading dropdown in django
- Failed to load resource: the server responded with a status of 403 () - SCRIPT - WordPress
- Maintaining search and sort state across paginated results in web application
- Getting POST 500 Internal server error while sending request via ajax call
- Wordpress server side datatable filtering
- Having a problem in datatables and fullcalendar scripts
Related Questions in WORDPRESS
- How to add the dynamic new rows from my registration form in my database?
- Wordpress Site - pages have low text-HTML ratio
- wordpress delete unwanted location
- How to create a facet for WP gridbuilder that displays both parent and child custom fields?
- How to change woocomerce or full wordpress currency with value from USD to AUD
- error 500 on IIS FastCGI but no clue despite multiple error loggings activated
- Caching private wordpress rest endpoints
- How do i get my close button to work on a popup?
- SQL query to get student enrolled in this month in a course - Moodle
- What wordpress plugin prevent sharing of contact information amongst users?
- Password protected or private URL one-time viewable video access
- Download button not working in wordpress website. How can solve it?
- WP toolkit problem after deleting wordpress site manually
- TypeError: Failed to execute 'arrayBuffer' on 'Blob': Illegal invocation - Insert blob into database
- New Order Email Details Missing // Woocommerce / Woocommerce Bookings
Related Questions in WOOCOMMERCE
- How to change woocomerce or full wordpress currency with value from USD to AUD
- SQL query to get student enrolled in this month in a course - Moodle
- New Order Email Details Missing // Woocommerce / Woocommerce Bookings
- Auto Tagging WooCommerce Products according to the Price
- Put an image behind the title in a WP, WooCommerce "shop" page
- How to get course_id of a woocommerce product page?
- Display Shipping Costs as Amount Saved When Free Shipping Applies in Woocommerce Cart and Checkout
- Remove html tags from cart item name in WooCommerce cart and checkout
- Execute some code only once for bank wire confirmed payment in WooCommerce
- How change product price in cart on woocommerce?
- How hide a specific shipping method for all user groups except one in woocommerce
- Woocommerce: add an extra option for the backend (like extra SKU or so)
- Not receiving emails after delay in WooCommerce checkout
- Remove Product SKU from order details in WooCommerce email notifications
- How to Add New Fields in Dokan Product Form to Specify New and Used product, and Can Filter the Products by Used and New One
Related Questions in CART
- How change product price in cart on woocommerce?
- Woocommerce - Cart form is being duplicated after adjusting the input quantity
- Add the delivery time to WooCommerce displayed shipping methods based on cart items stock status
- Increase WooCommerce Cart Total Weight Based On Specific Shipping Class
- cart icon on top bar not showing added products in my WordPress site
- How can I change the label 'add to cart' to 'pre-order' when a product variant (size) is selected?
- Sort WooCommerce items by sku in cart, mini cart and orders
- Add to cart functionality using Django and HTMX
- Cart Webhooks / Flow Builder
- Empty cart problem in php. When I try to Add product into cart it does not work
- Allow only one downloadable product in WooCommerce cart
- Add a Shipping Class to WooCommerce product created dynamically on add to cart
- I am trying to increase the cart size using variable "Csize" in Reactjs useEffect and useState
- Cart ui not loading data after reload although data are in local storage
- Set Free Shipping as Default and Cart Total Should Not Include The Shipping Fee in WooCommerce
Related Questions in PLUG
- How to use Application and Plug.Router to listen on port with Elixir
- How to stop Ajax cart button functionality from add to cart button
- no function clause matching in Plug controller
- Cowboy 2.9.0 reverse proxy websockets
- How to stop further routing in a plug?
- wordpress access management articles
- Creating a minimal Plug based http server in an exs file
- How to represent C2D message in IoT Plug & Play DTDL definition
- Plug.Conn, all plugs must receive a connection (conn) and return a connection
- Phoenix custom error view doesn't send in assigns?
- "Phoenix.Router.NoRouteError" when attempting to access uploaded image file in sub directory of Phoenix application
- Malicious request (via invalid URI) causes exception to be thrown in Elixir Phoenix/Plug
- No function clause matching in Access.get/3
- How to create a keep-alive API endpoint with Cowboy in Elixir?
- How would I allow CORS with plug_cowboy in Elixir?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I have solved this to my own here are the steps so first I had to Disabled Ajax Call from WooCommerce
and after that I write this redirection code