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:

27/03/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 Add Custom Content To The Bottom Of The Order Received Thank You Page

Added: 10 months ago

Last Updated: 10 months 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

WooCommerce Show Custom Text On Empty Cart Page

Added: 10 months ago

Last Updated: 10 months ago

If the user navigates to the cart page when there is nothing in their cart, they will see a cart notification, “Your cart is currently empty.” To change that particular cart notification, check out ou...

WooCommerce

AI Verified

0

Remove the Quantity Field

Added: 9 months ago

Last Updated: 4 months ago

Other Snippets in this Codevault

These are some popular snippets from this users codevault..

General

AI Verified

WooCommerce

Unverified

General

AI Verified