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 Percentage Checkout Admin/Handling Fee

Added: 1 year ago

Last Updated: 1 year ago

A little warning, unexpected fees at checkout can put some users off and some payment gateways do not allow custom additional fees. Passing on fees and surcharges may not be legal in your location so...

WooCommerce

AI Verified

0

Display All Products Purchased by User

Added: 1 year ago

Last Updated: 1 year ago

WooCommerce

AI Verified

0

Change the arrangement of fields in the checkout area or delete fields

Added: 1 year ago

Last Updated: 1 year ago

Customize the fields in the checkout. You can change the fields in the checkout area, sort them differently or delete individual fields.

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

Last Updated: 8 months ago

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