Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo
  • Hook Reference
  • Docs Home

Packages

  • Abandoned-Cart-Pro-for-WooCommerce
    • Admin
      • Action
      • Activate-plugin
      • Component
      • I18N
      • Import-Pro
      • License
      • Menu
      • Notices
      • Popup-Modal
        • Cart-Detail
      • Recover
      • Report
      • Setting
      • Settings
      • SMS
      • Tab
      • Template
    • Ajax-Functions
    • Classes
    • Common-Functions
    • Database-Layer
    • Encrypt-Decrypt-Data
    • Frontend
      • Cart-Capture
      • Cart-Populate
      • Coupon
      • Place-Order
    • Setting
    • Update
  • None

Classes

  • Wcap_Coupon

Class Wcap_Coupon

It will capture the coupon codes and apply the coupon code directly when ac reminder emails have the coupon

Package: Abandoned-Cart-Pro-for-WooCommerce\Frontend\Coupon
Author: Tyche Softwares
Located at includes/frontend/wcap_coupon_code.php

Methods summary

public static string
# wcap_capture_applied_coupon( string $valid )

It will captures the coupon code used by the customers. It will store the coupon code for the specific abandoned cart.

It will captures the coupon code used by the customers. It will store the coupon code for the specific abandoned cart.

Parameters

$valid
Coupon code

Returns

string
$valid Coupon code

Since

2.4.3

Globals

mixed $wpdb

Hook

woocommerce_applied_coupon
public static string
# wcap_capture_coupon_error( string $valid, string $new )

It will captures the coupon code errors specific to the abandoned carts.

It will captures the coupon code errors specific to the abandoned carts.

Parameters

$valid
Error
$new
Error code

Returns

string
$valid Error

Since

2.4.3

Globals

mixed $wpdb

Hook

woocommerce_coupon_error
public static
# wcap_apply_direct_coupon_code( string $coupon_code )

It will directly apply the coupon code if the coupon code present in the abandoned cart reminder email link. It will apply direct coupon on cart and checkout page.

It will directly apply the coupon code if the coupon code present in the abandoned cart reminder email link. It will apply direct coupon on cart and checkout page.

Parameters

$coupon_code
Name of coupon

Since

2.4.3

Hook

woocommerce_before_cart_table
woocommerce_before_checkout_form
API documentation generated by ApiGen