# Reloadify Plugin Guidelines

## Introduction

Reloadify is a WordPress plugin that seamlessly synchronizes data from your WooCommerce webshop with the Reloadify software by extending the WooCommerce REST API. The plugin operates in real-time, capturing abandoned carts and providing tools for cart recovery and customer engagement.

### Key Features

- Abandoned cart tracking and recovery
- WooCommerce REST API extension
- Admin recovery tools
- Support for WooCommerce HPOS (High-Performance Order Storage)
- Multilingual support (including WPML and Polylang)

## Requirements

- WordPress 5.9 or higher
- PHP 7.4 or higher
- WooCommerce (latest version recommended)

## Installation

1. Download the Reloadify plugin from the WordPress plugin repository or from your Reloadify account.
2. Upload the plugin files to the `/wp-content/plugins/reloadify` directory, or install the plugin through the WordPress plugins screen.
3. Activate the plugin through the 'Plugins' screen in WordPress.
4. Ensure WooCommerce is installed and activated, as Reloadify depends on it to function.

## Configuration

### Basic Setup

1. After activation, go to WooCommerce > Settings > Reloadify.
2. Configure the plugin settings according to your needs.
3. Set up the consent checkbox text if you want to display a consent checkbox in the cart/checkout.

### Advanced Configuration

The plugin includes several filters that allow developers to customize its behavior:

- `tsd_reloadify_database_prefix`: Customize the database table prefix
- `tsd_reloadify_database_charset`: Customize the database charset
- `tsd_reloadify_database_collation`: Customize the database collation

## Usage

### Abandoned Cart Recovery

The plugin automatically tracks abandoned carts in your WooCommerce store. When a customer adds items to their cart but doesn't complete the checkout process, Reloadify captures this information.

### Admin Recovery Tools

Administrators can access recovery tools through the WordPress admin bar. These tools allow you to:

1. View abandoned cart information
2. Recover carts manually
3. Send recovery emails (through the Reloadify software)

### Integration with Reloadify Software

To fully utilize the plugin's capabilities, you need to connect it with the Reloadify software:

1. Sign up for a Reloadify account at [reloadify.com](https://www.reloadify.com)
2. Follow the integration instructions provided in your Reloadify dashboard
3. Use the Reloadify software to create automated email campaigns for cart recovery

## Troubleshooting

### Common Issues

1. **Plugin Deactivation**: If the plugin automatically deactivates, check if WooCommerce is active. Reloadify requires WooCommerce to function.

2. **Database Issues**: If you experience database-related issues, you can manually trigger a database update by deactivating and reactivating the plugin.

3. **Compatibility Issues**: If you encounter compatibility issues with other plugins, ensure you're using the latest version of Reloadify, which includes PHP Scoper to prevent conflicts.

### Getting Support

If you need assistance, you can contact Reloadify support at info@reloadify.nl.

## For Developers

### Database Structure

The plugin creates its own tables to store abandoned cart data. These tables use the WordPress database connection settings but are managed separately from the WordPress core tables.

### Hooks and Filters

Developers can extend the plugin's functionality using various hooks and filters. Refer to the code documentation for a complete list of available hooks.

### Contributing

If you'd like to contribute to the development of Reloadify, please follow these guidelines:

1. Fork the repository on GitHub
2. Create a feature branch for your changes
3. Submit a pull request with a clear description of your changes

## Changelog

For a complete list of changes in each version, please refer to the readme.txt file included with the plugin.

## License

Reloadify is licensed under the GPL v2 or later.

---

For more information, visit [reloadify.com](https://www.reloadify.com) or contact support at info@reloadify.nl.