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

WooCommerce Thank You Page Up-Sells

Added: 1 year ago

Last Updated: 1 year ago

Depending on your website theme, WooCommerce by default will only show product up-sells on the product page. Up-sells are products that you recommend instead of the currently viewed product. They are...

WooCommerce

AI Verified

0

Set Username based on Email - WooCommerce

Added: 1 year ago

Last Updated: 7 months ago

This code adds a filter to the WooCommerce new customer data, so that the user login is automatically set to the user's email address.

WooCommerce

Pro Verified

1

Adjust betwee Shipping Types based on the WooCommerce Cost Total

Added: 1 year ago

Last Updated: 10 months ago

When the cost is > $100 then Free Shipping applies. Less than that has Flat Rate. The numbers are based on the order in the Woo > Settings > Shipping Page

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: 7 months ago

Last Updated: 7 months ago

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