LLMS_AJAX_Handler::remove_coupon_code( array $request )
Remove a coupon from an order during checkout
Parameters Parameters
- $request
-
(array) (Required) $_POST data.
Return Return
(array)
Source Source
File: includes/class.llms.ajax.handler.php
835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 | ob_start(); llms_get_template( 'checkout/form-coupon.php' ); $coupon_html = ob_get_clean(); ob_start(); llms_get_template( 'checkout/form-gateways.php' , array ( 'coupon' => false, 'gateways' => llms()->payment_gateways()->get_enabled_payment_gateways(), 'selected_gateway' => llms()->payment_gateways()->get_default_gateway(), 'plan' => $plan , ) ); $gateways_html = ob_get_clean(); ob_start(); llms_get_template( 'checkout/form-summary.php' , array ( 'coupon' => false, 'plan' => $plan , 'product' => $plan ->get_product(), ) ); $summary_html = ob_get_clean(); return array ( 'coupon_html' => $coupon_html , 'gateways_html' => $gateways_html , 'summary_html' => $summary_html , ); } /** * Handle Select2 Search boxes for WordPress Posts by Post Type and Post Status. * * @since 3.0.0 |
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |