Checkout Fees For Woocommerce Shortcodes

Below, you’ll find a detailed guide on how to add the Checkout Fees For Woocommerce Shortcodes to your WordPress website, including their parameters, examples, and PHP function code. Additionally, we’ll assist you with common issues that might cause the Checkout Fees For Woocommerce Plugin shortcodes not to show or not to work correctly.

Before starting, here is an overview of the Checkout Fees For Woocommerce Plugin and the shortcodes it provides:

Plugin Icon
Payment Gateway Based Fees and Discounts for WooCommerce

"Payment Gateway Based Fees and Discounts for WooCommerce is a versatile plugin that lets you apply additional fees or discounts during checkout based on the chosen payment method. Ideal for WooCommerce stores."

★★★★☆ (51) Active Installs: 20000+ Tested with: 6.2.3 PHP Version: 7.3
Included Shortcodes:
  • [alg_show_checkout_fees_full_info]
  • [alg_show_checkout_fees_lowest_price_info]

Checkout Fees For Woocommerce [alg_show_checkout_fees_full_info] Shortcode

The ‘alg_show_checkout_fees_full_info’ shortcode is a part of the Checkout Fees for WooCommerce plugin. This shortcode is used to display full information about the checkout fees. The related PHP function ‘get_checkout_fees_full_info’ retrieves this information. It returns all the detailed checkout fees data for further use or display on the website.

Shortcode: [alg_show_checkout_fees_full_info]

Examples and Usage

Basic example – Displays full information about checkout fees.

[alg_show_checkout_fees_full_info]

PHP Function Code

In case you have difficulties debugging what causing issues with [alg_show_checkout_fees_full_info] shortcode, check below the related PHP functions code.

Shortcode line:

add_shortcode( 'alg_show_checkout_fees_full_info', array( $this, 'get_checkout_fees_full_info' ) );

Shortcode PHP function:

function get_checkout_fees_full_info() {
			return $this->get_checkout_fees_info( false );
		}

Code file location:

checkout-fees-for-woocommerce/checkout-fees-for-woocommerce/includes/class-alg-wc-checkout-fees-info.php

Checkout Fees For Woocommerce [alg_show_checkout_fees_lowest_price_info] Shortcode

The Checkout Fees for WooCommerce plugin shortcode ‘alg_show_checkout_fees_lowest_price_info’ retrieves the lowest checkout fees information. This shortcode is designed to streamline the checkout process and provide users with the most affordable fees available.

Shortcode: [alg_show_checkout_fees_lowest_price_info]

Examples and Usage

Basic example – Display the lowest checkout fee information on your WooCommerce site.

[alg_show_checkout_fees_lowest_price_info]

PHP Function Code

In case you have difficulties debugging what causing issues with [alg_show_checkout_fees_lowest_price_info] shortcode, check below the related PHP functions code.

Shortcode line:

add_shortcode( 'alg_show_checkout_fees_lowest_price_info', array( $this, 'get_checkout_fees_lowest_price_info' ) );

Shortcode PHP function:

function get_checkout_fees_lowest_price_info() {
			return $this->get_checkout_fees_info( true );
		}

Code file location:

checkout-fees-for-woocommerce/checkout-fees-for-woocommerce/includes/class-alg-wc-checkout-fees-info.php

Conclusion

Now that you’ve learned how to embed the Checkout Fees For Woocommerce Plugin shortcodes, understood the parameters, and seen code examples, it’s easy to use and debug any issue that might cause it to ‘not work’. If you still have difficulties with it, don’t hesitate to leave a comment below.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *