Releases: JRG-code/region-manager
Release list
Version 1.3.5
Version 1.3.4
The region was actually being saved successfully but the JavaScript crashed when trying to show the success notification, making it appear that save failed.
Changed from using wp.notices.init() (which doesn't exist) to manually creating and handling the dismiss button for admin notices.
Fixes: 'Uncaught TypeError: wp.notices.init is not a function'
Version 1.3.3
Version 1.3.2
Features:
Auto-fill language and currency based on selected country (e.g., Portugal → pt_PT + EUR, Brazil → pt_BR + BRL)
Added extensive debug logging in PHP (error_log) and JavaScript (console.log)
Better error reporting with database error messages
This helps identify save issues and improves user experience by pre-filling common settings.
Version 1.3.1
Version 1.3.0
When WooCommerce currencies are unavailable, the currency dropdown was empty causing countries to not be saved or displayed. Added fallback currencies in both PHP and JavaScript to ensure currency options are always available.
Fixes issue where countries disappeared from regions after debug changes.
Version 1.2.9
- Added console.log for debugging AJAX requests and responses
- Added console.error for AJAX failures
- Improved error handling to always show alerts and notices
- Added validation for response format
- Ensures button is always reset on error
- Helps diagnose why region save button gets stuck
This will help identify why the save button gets stuck when adding new regions.
Version 1.2.8
This commit adds the ability to manage regional and country-specific pricing directly from the Region Manager -> Products page, and fixes CSS issues with the Regions column in WooCommerce products list.
Version 1.2.7
Version 1.2.6
CRITICAL FIX: The rewrite class was registering rules for region slugs (e.g., /eu/, /us/) but the system now uses country URL slugs (e.g., /pt/, /es/). This caused WordPress to not recognize URLs like /pt/home and redirect them to /home.