[4.1.x.x] Checkout captcha wrong config
Author: tongo-angelovCreated Sep 27, 2026Updated Sep 28, 2026
What version of OpenCart are you reporting this for? 4.1.x.x
Describe the bug
Activating captcha and enabling Guest Checkout in store settings, does not show captcha in checkout if Register option is not selected
To Reproduce Steps to reproduce the behavior:
- Enable basic captcha extension
- Go to store settings > options > captcha
- Select basic captcha and enable only
Guest Checkoutoption - Go to catalog add product to cart and click checkout
Expected behavior Captcha should be shown since user is not logged in
Screenshots / Screen recordings
Server / Test environment (please complete the following information):
- Ubuntu Server
- PHP v8.3
- Apache/2.4.58
Additional context
catalog/controller/checkout/register index and save functions are checking if config_captcha_page contains register instead of guest
if ($extension_info && $this->config->get('captcha_' . $this->config->get('config_captcha') . '_status') && in_array('register', (array)$this->config->get('config_captcha_page')))
// Change 'register' to 'guest'
if ($extension_info && $this->config->get('captcha_' . $this->config->get('config_captcha') . '_status') && in_array('guest', (array)$this->config->get('config_captcha_page')))Source: opencart/opencart