# Teleship Global Shipping

Copyright (c) 2025 Teleship Limited. All rights reserved.

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

Seamlessly integrate Teleship shipping platform with your WooCommerce store.

## Description

Teleship Global Shipping connects your store with the Teleship shipping platform, enabling you to streamline your shipping operations, reduce costs, and improve the customer experience.

## Installation

1. Upload the `teleship-global-shipping` folder to the `/wp-content/plugins/` directory
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Configure the plugin using environment variables (see below)

## Configuration

The plugin is configured using environment variables. This approach provides several benefits:
- Secure configuration without exposing sensitive settings in the database
- Easy configuration across different environments (development, staging, production)
- Simple deployment across multiple sites

### Required Environment Variables

The following environment variables can be set to configure the plugin:

| Variable | Description | Default |
|----------|-------------|---------|
| `TELESHIP_API_URL` | URL for the Teleship API | https://api.teleship.com |
| `TELESHIP_APP_URL` | URL for the Teleship App | https://app.teleship.com |

### How to Set Environment Variables

The easiest way to set these variables is in your `wp-config.php` file:

```php
// Teleship Configuration
putenv('TELESHIP_API_URL=https://api.teleship.com');
putenv('TELESHIP_APP_URL=https://app.teleship.com');
```

For detailed instructions on how to set environment variables in different hosting environments, please see the [Environment Variables Guide](docs/environment-variables.md).

## Support

For support requests, please contact us at support@teleship.com or visit https://teleship.com/support.

## License

This plugin is released under the GPL v2 or later license.

## Changelog

See [changelog.txt](changelog.txt) for a list of changes.
