Unverified

Name

WooCommerce Direct Checkout Pro: Enhance "Add Cart to Checkout" Functionality

Language

Javascript

Rating

Voted: 0 by 0 user(s)

Codevault

Abundant-Designs

Scroll down to see more snippets from this codevault.

Wordpress Compatability

The author has indicated that this snippet is compatable up to wordpress version: 6.1

Code Snippet Plugin Sync

Free & Pro

Download this snippet by clicking the download button, then head over to the Code Snippet Plugin settings in your wordpress admin dashboard, select the import menu then upload this file to import into your wordpress site.

Pro Only (Coming Soon)

You will be able to click a button and sync this snippet to your wordpress site automatically and from your dashboard manage all code snippets across all your wordpress sites that have the Code Snippets Pro plugin installed.

Website/ Profile URL:

https://www.abundantdesigns.com

History

Last modified:

30/11/2023

Important Note

This snippet has the following status:

Unverified

This snippet has not been verified, use with caution and at your own risk. See details provided by author in sidebar and click below to find out more.

WooCommerce Direct Checkout Pro: Enhance "Add Cart to Checkout" Functionality

 
                    
1(function($){
2 $(window).on('load', function() {
3 var _enhanceDirectCheckoutCart = function() {
4 
5 /* Remove "X" if Only One Item in Cart */
6 if ( $( "#order_review .cart tbody" ).find('tr').length < 2 ) {
7 $( "#order_review .cart .product-remove" ).hide();
8 }
9 
10 /* Increase Width of "Recurring Total" Row in Cart */
11 $( "#order_review .recurring-total th" ).attr("colspan", "2");
12 
13 }
14 _enhanceDirectCheckoutCart();
15 
16 /* Re-check for one item in cart when cart is updated */
17 $( 'body' ).on( 'updated_checkout', function( event ) {
18 _enhanceDirectCheckoutCart();
19 });
20 $( 'body' ).on( 'update_checkout', function( event ) {
21 _enhanceDirectCheckoutCart();
22 });
23 });
24})(jQuery);

0

Related Snippets

Please see some snippets below related to this snippet..

WooCommerce

AI Verified

0

Subscription starts @ 25. of the month

Added: 1 year ago

Last Updated: 1 year ago

WooCommerce

AI Verified

0

WooCommerce Add Custom Content To The Bottom Of The Order Received Thank You Page

Added: 1 year ago

Last Updated: 1 year ago

Adding custom content at the bottom of the the WooCommerce Order Received Thank You page is a great way to sell upsell products, ask users to rate your store, capture permission for email subscription...

WooCommerce

AI Verified

0

Change COD default order status to On-hold

Added: 1 year ago

Last Updated: 1 year ago

Makes On-hold the orders using COD and BACS

Other Snippets in this Codevault

These are some popular snippets from this users codevault..

General

AI Verified

WooCommerce

Unverified

General

AI Verified

0

Don't Set Rank Math OpenGraph Thumbnail from Content

Added: 3 months ago

Last Updated: 3 months ago

<p>https://wordpress.org/support/topic/posts-pages-without-opengraph-thumbnail-defined-grab-random-images-from-the-page/#post-17182639</p>