Overview
The Paga con ZIGI plugin provides a comprehensive settings interface to customize the payment gateway experience. All settings are configured through WooCommerce’s payment gateway settings page at WooCommerce → Settings → Payments → Paga con ZIGI.Accessing Settings
Navigate to WooCommerce Settings
Go to your WordPress admin dashboard and navigate to WooCommerce → Settings
Configuration Fields
The plugin settings are defined in theinit_form_fields() method of the Zigi_Payment_WC_Gateway class (paga-con-zigi.php:96-162).
Enable/Disable
Controls whether the ZIGI payment method is available at checkout.Field Properties:
- Title: “Habilitar/Deshabilitar”
- Label: “Habilitar Paga con ZIGI”
- Type:
checkbox - Default:
no
Payment Method Title
The title displayed to customers during checkout.Field Properties:
- Title: “Título”
- Type:
text - Default:
Paga con ZIGI - Description: “Esto controla el título que el usuario ve durante el pago.”
Payment Method Description
The description shown below the payment method title at checkout.Field Properties:
- Title: “Descripción”
- Type:
textarea - Default: “Método de pago vía QR ZIGI. Al realizar el pago, debes adjuntar el comprobante con la orden de compra.”
- Description: “Esto controla la descripción que el usuario ve durante el pago.”
Popup Description
Instructions displayed in the payment popup modal that appears when customers select ZIGI payment.Field Properties:
- Title: “Descripción del Popup”
- Type:
textarea - Default: “Debes escanear el código QR, hacer clic en continuar para adjuntar la captura (es el único comprobante de pago) y podrás completar la compra.”
The popup description is rendered in
functions.php:43-45 and displayed in the payment modal when customers click to pay with ZIGI.Phone Number Configuration
The phone number affiliated with your ZIGI account in Guatemala.Field Properties:
- Title: “Número de Teléfono Afiliado”
- Type:
text - Default: (empty)
- Description: “Ingresa el número afiliado a ZIGI (Guatemala).”
tel: link (functions.php:36-38):
Settings Storage
All settings are stored in the WordPress options table under the keywoocommerce_zigi_payment_settings. The settings are loaded in the gateway constructor (paga-con-zigi.php:84-87):
Saving Settings
Settings are automatically saved when you click the Save changes button at the bottom of the settings page. The save action is hooked in the constructor:Best Practices
Recommended Title
Recommended Title
Use a clear, recognizable title like “Paga con ZIGI” or “Pago QR ZIGI” so customers immediately understand the payment method.
Effective Description
Effective Description
Your description should:
- Mention that it’s a QR code payment method
- Indicate that customers will need to upload proof of payment
- Be concise (1-2 sentences maximum)
Clear Popup Instructions
Clear Popup Instructions
The popup description should provide step-by-step guidance:
- Scan the QR code with the ZIGI app
- Complete the payment in the app
- Take a screenshot of the confirmation
- Upload the screenshot as proof
Phone Number Format
Phone Number Format
Enter the phone number in a format that’s valid for Guatemala, typically:
+502 XXXX-XXXX(with country code)XXXX-XXXX(local format)
Troubleshooting
Settings Not Saving
If your settings are not being saved:- Check that you have proper WordPress permissions
- Verify there are no JavaScript errors in the browser console
- Ensure WooCommerce is active and up to date
- Check for conflicts with other plugins by temporarily disabling them
Phone Number Not Displaying
The phone number only appears in the popup if:- The field is not empty
- The customer has selected ZIGI as their payment method
- The payment popup is displayed
Related Documentation
- QR Setup - Configure the ZIGI QR code image
- Payment Limits - Set minimum and maximum payment amounts
- Quickstart Guide - Initial plugin setup