Common Issues and Solutions
This guide covers the most common issues you may encounter with the Paga con ZIGI plugin and how to resolve them.Plugin not appearing in payment methods
Plugin not appearing in payment methods
Symptoms
- Paga con ZIGI is not visible in WooCommerce > Settings > Payments
- Payment method doesn’t show up at checkout
Solutions
1. Verify WooCommerce is installed and activeThe plugin requires WooCommerce to function. Check that:- WooCommerce plugin is installed and activated
- WooCommerce version is 9.3 or lower (tested compatibility)
woocommerce_payment_gateways filter at paga-con-zigi.php:27. Ensure:- The plugin is activated
- No PHP errors are preventing initialization
- Check WordPress debug log for errors
The plugin class
Zigi_Payment_WC_Gateway is registered during the plugins_loaded hook at priority 11, so it loads after WooCommerce.QR code not displaying
QR code not displaying
Symptoms
- QR code image is missing in checkout popup
- Broken image icon appears
- Popup shows but no QR is visible
Solutions
1. Upload the QR code imageThe QR code must be manually uploaded in the plugin settings:- Go to
WooCommerce > Settings > Payments > Paga con ZIGI - Click “Seleccionar Imagen QR” button
- Upload your ZIGI QR code image
- Save changes
preview_qr field should contain a valid image URL.3. Check file permissionsEnsure WordPress can read the uploaded image:644 and directories 755.4. Browser console errorsOpen browser Developer Tools (F12) and check the Console tab for:- 404 errors on image URLs
- CORS or mixed content warnings
- JavaScript errors preventing popup display
Receipt upload failing
Receipt upload failing
Symptoms
- “Error de red” message appears
- Upload progress indicator stays visible
- File selection doesn’t trigger upload
- “Por favor sube solo imágenes” error
Solutions
1. Verify file typeOnly image files are accepted. Supported formats:- JPG / JPEG
- PNG
- GIF
- Client-side:
woopro-front.js:52(browser validation) - Server-side:
functions.php:164(PHP validation)
php.ini if needed:functions.php:133). If you’re getting 403 errors:- Clear browser cache
- Try a different browser
- Check if caching plugins are interfering
wp-content/uploads/zigi-payment-qrcode/. Verify:functions.php:116), but ensure:- Parent directory is writable
- Web server user has write permissions
- Action:
zigi_payment_qr_code - Endpoint:
admin-ajax.php
Payment status not updating
Payment status not updating
Symptoms
- Order remains in “On Hold” status
- Payment receipt is uploaded but order isn’t completed
- Customer complains payment isn’t recognized
Expected Behavior
Paga con ZIGI is a manual payment method similar to bank transfer. The workflow is:- Customer selects payment method
- Scans QR code and pays via ZIGI app
- Uploads payment receipt
- Order is placed with “On Hold” status (
paga-con-zigi.php:255) - Store admin must manually verify and approve the payment
Manual Verification Process
1. View the receiptIn WordPress Admin:functions.php:208). The uploaded receipt image will be displayed.2. Verify payment in ZIGI appConfirm the payment was received in your ZIGI account:- Check transaction amount matches order total
- Verify timestamp
- Match receipt image to ZIGI transaction
- Change order status from “On Hold” to “Processing” or “Completed”
- Add order note (optional) with verification details
- Customer will receive order confirmation email
This plugin does not provide automatic payment verification. It’s designed for manual review to prevent fraud and ensure payment accuracy.
HPOS compatibility issues
HPOS compatibility issues
Symptoms
- Receipt meta box not appearing on order edit page
- Receipt data not saving
- Errors after enabling High-Performance Order Storage
Solutions
1. Verify HPOS compatibility is declaredThe plugin declares HPOS compatibility atpaga-con-zigi.php:39-46. This is automatically handled.2. Check WooCommerce versionHPOS is available in WooCommerce 7.0+. The plugin is tested up to WooCommerce 9.3.3. Meta box registrationThe plugin registers the receipt meta box for both:- Traditional orders:
shop_orderpost type - HPOS orders:
woocommerce_page_wc-ordersscreen
functions.php:207-211 for implementation.4. Meta data storageReceipt URLs are stored using WooCommerce’s order meta API:WooCommerce > Settings > Advanced > Features, you can:- Enable/disable HPOS
- Test the plugin in both modes
File permissions problems
File permissions problems
Symptoms
- “Falló la carga” error message
- 500 Internal Server Error during upload
- Receipts not saving to server
Solutions
1. Check WordPress uploads directoryVerify the main uploads directory exists and is writable:wp-content/uploads/zigi-payment-qrcode/ automatically (functions.php:115-118).If creation fails, manually create it:www-data with your web server user)3. Verify WP_Filesystem is initializedThe plugin uses WordPress Filesystem API. Ensure:- FTP credentials are not required
- Direct filesystem access is available
.htaccess for upload restrictions:JavaScript errors in checkout
JavaScript errors in checkout
Symptoms
- Popup doesn’t open when clicking “Place Order”
- “Continue” button doesn’t work
- File upload interface not responding
Solutions
1. Check for JavaScript conflictsOpen browser Developer Tools (F12) > Console tab. Look for:- jQuery errors
- Undefined variable errors
- Script loading failures
functions.php:78). In browser console:- Switching to a default WordPress theme (Twenty Twenty-Four)
- Testing if the issue persists
wp_enqueue_scripts hook (functions.php:99). Ensure your theme calls:- Browser cache (Ctrl+Shift+R)
- WordPress cache plugins
- Server-side caching (Redis, Memcached)
- CDN cache
The plugin scripts are versioned as
1.1. If you modify the scripts, increment the version number to bust browser caches.Popup not appearing at checkout
Popup not appearing at checkout
Symptoms
- Order places immediately without showing QR popup
- No modal window appears
- Payment method selected but no interaction prompt
Solutions
1. Verify payment method selectionThe popup only appears when “Paga con ZIGI” is selected. Check:- Clear cache
- Check for CSS minification issues
- Verify
functions.php:79is executing
functions.php:72). In browser:woopro-front.js:267-268):- WooCommerce checkout form has class
checkout - Place order button has ID
place_order
Still Having Issues?
If you’ve tried the solutions above and are still experiencing problems:-
Enable debug mode to get detailed error messages:
-
Check system requirements:
- WordPress 5.2 or higher
- WooCommerce (tested up to 9.3)
- PHP 7.4 or higher
- Modern browser with JavaScript enabled
-
Test in isolation:
- Deactivate all plugins except WooCommerce and Paga con ZIGI
- Switch to a default WordPress theme
- Test if the issue persists
-
Review server logs:
- PHP error log
- WordPress debug log (
wp-content/debug.log) - Web server error log (Apache/Nginx)
-
Contact support at [email protected] with:
- WordPress and WooCommerce versions
- PHP version
- Description of the issue
- Any error messages from logs
- Screenshots if applicable