Na Bežky Map for WooCommerce
Wordpress plugin facilitating communication with nabezky.sk
by Na Bežky · github.com/alexanderzatko/wp_nabezky_connector · website
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/alexanderzatko/wp_nabezky_connector/archive/refs/heads/main.zipWP Na bežky! Connector
A WordPress plugin to connect with Na bežky! services.
Features
- Admin settings page for API configuration
- Database table creation for data storage
- Frontend and admin assets management
- AJAX connection testing
- Translation ready
Installation
- Upload the plugin files to
/wp-content/plugins/wp-nabezky-connector/directory - Activate the plugin through the 'Plugins' screen in WordPress
- Go to Settings > Na bežky! Connector to configure the plugin
Configuration
- Navigate to Settings > Na bežky! Connector in your WordPress admin
- Enter your API key and API URL
- Enable the plugin
- Test the connection to verify your settings
Development Setup
Prerequisites
- WordPress development environment (local or staging)
- PHP 7.4 or higher
- MySQL 5.6 or higher
Local Development Options
Option 1: Local by Flywheel
- Download and install Local by Flywheel
- Create a new WordPress site
- Copy this plugin to
/wp-content/plugins/directory - Activate the plugin
Option 2: XAMPP/MAMP
- Install XAMPP or MAMP
- Download WordPress and set up a local site
- Copy this plugin to
/wp-content/plugins/directory - Activate the plugin
Option 3: Docker
- Use WordPress Docker image
- Mount this plugin directory
- Access via localhost
File Structure
wp-nabezky-connector/
├── wp-nabezky-connector.php # Main plugin file
├── admin/
│ └── admin-page.php # Admin settings page
├── assets/
│ ├── css/
│ │ ├── admin.css # Admin styles
│ │ └── frontend.css # Frontend styles
│ ├── js/
│ │ ├── admin.js # Admin JavaScript
│ │ └── frontend.js # Frontend JavaScript
│ └── images/ # Plugin images
├── includes/ # Additional PHP classes
├── languages/ # Translation files
└── README.md # This file
Development Workflow
- Make changes to plugin files
- Test locally using your WordPress development environment
- Debug using WordPress debug tools
- Version control your changes with Git
Debugging
Enable WordPress debugging by adding these lines to your wp-config.php:
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
Testing
- Test plugin activation/deactivation
- Test admin settings page functionality
- Test API connection
- Test frontend functionality
- Test with different WordPress themes
API Integration
The plugin is set up to integrate with Na bežky! services. You'll need to:
- Obtain API credentials from Na bežky!
- Configure the API endpoint URL
- Implement specific API calls based on your requirements
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
License
GPL v2 or later
Support
For support and questions, please contact the plugin author.