Woo Refund And Exchange Lite Shortcodes

Below, you’ll find a detailed guide on how to add the Woo Refund And Exchange Lite 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 Woo Refund And Exchange Lite Plugin shortcodes not to show or not to work correctly.

Before starting, here is an overview of the Woo Refund And Exchange Lite Plugin and the shortcodes it provides:

Plugin Icon
Return Refund and Exchange For WooCommerce – Return Management System, RMA Exchange, Wallet And Cancel Order Features

"Return Refund and Exchange For WooCommerce is a comprehensive return management system. Enjoy features like RMA Exchange, Wallet, and Cancel Order, all designed to streamline your WooCommerce operations."

★★★★☆ (102) Active Installs: 4000+ Tested with: 6.3.2 PHP Version: false
Included Shortcodes:
  • [wps_rma_refund_form]
  • [wps_rma_order_msg]

Woo Refund And Exchange Lite [wps_rma_refund_form] Shortcode

The WPS RMA Refund Form shortcode is a part of the Woo Refund and Exchange Lite plugin. It displays the refund request form on any page.

Shortcode: [wps_rma_refund_form]

Examples and Usage

Basic example – A straightforward usage of the shortcode to display the refund form on a page or post.

[wps_rma_refund_form /]

PHP Function Code

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

Shortcode line:

add_shortcode( 'wps_rma_refund_form', array( 'Wps_Rma_Vc_Widgets', 'wps_rma_refund_form_shortcode' ) );

Shortcode PHP function:

function wps_rma_refund_form_shortcode( $atts, $content = null ) {
			return include_once WOO_REFUND_AND_EXCHANGE_LITE_DIR_PATH . 'public/partials/wps-rma-refund-request-form.php';

		}

Code file location:

woo-refund-and-exchange-lite/woo-refund-and-exchange-lite/wp-bakery-widgets/class-wps-rma-vc-widgets.php

Woo Refund And Exchange Lite [wps_rma_order_msg] Shortcode

The Woo Refund and Exchange Lite plugin shortcode, ‘wps_rma_order_msg’, displays refund and exchange messages related to orders. This shortcode utilizes the ‘wps-rma-view-order-msg.php’ template to generate these messages. It provides a seamless communication channel for customers to stay updated about their refund or exchange status.

Shortcode: [wps_rma_order_msg]

Examples and Usage

Basic example – The shortcode ‘wps_rma_order_msg’ is used to display the order message in the RMA process. This shortcode doesn’t require any parameters, and it can be used as it is.

[wps_rma_order_msg /]

Advanced examples

Even though the ‘wps_rma_order_msg’ shortcode doesn’t require any parameters, you can still pass additional attributes to it. These attributes can be used inside the ‘wps-rma-view-order-msg.php’ template to customize its output. For instance, you can pass a ‘color’ attribute to change the text color of the order message.

[wps_rma_order_msg color="red" /]

Another advanced example could be passing a ‘size’ attribute to change the size of the order message text.

[wps_rma_order_msg size="20px" /]

Please note that these additional attributes will only work if they are properly handled in the ‘wps-rma-view-order-msg.php’ template. Otherwise, they will have no effect on the output of the shortcode.

PHP Function Code

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

Shortcode line:

add_shortcode( 'wps_rma_order_msg', array( 'Wps_Rma_Vc_Widgets', 'wps_rma_order_msg_shortcode' ) );

Shortcode PHP function:

function wps_rma_order_msg_shortcode( $atts, $content = null ) {
			$template = include_once WOO_REFUND_AND_EXCHANGE_LITE_DIR_PATH . 'public/partials/wps-rma-view-order-msg.php';
			return $template;

		}

Code file location:

woo-refund-and-exchange-lite/woo-refund-and-exchange-lite/wp-bakery-widgets/class-wps-rma-vc-widgets.php

Conclusion

Now that you’ve learned how to embed the Woo Refund And Exchange Lite 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 *