Хабр Курсы для всех
РЕКЛАМА
Практикум, Хекслет, SkyPro, авторские курсы — собрали всех и попросили скидки. Осталось выбрать!
<config>
...
<default>
<recaptcha>
<keys>
<public_key>public-key-here</public_key>
<private_key>private-key-here</private_key>
</keys>
</recaptcha>
</default>
...
</config>Mage::getStoreConfig('recaptcha/keys/public_key')<config>
<sections>
<recaptcha>
<label>ReCapthcha</label>
<tab>service</tab>
<frontend_type>text</frontend_type>
<sort_order>150</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<groups>
<keys>
<label>Keys</label>
<frontend_type>text</frontend_type>
<sort_order>1</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<fields>
<public_key>
<label>Public key</label>
<sort_order>1</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
</public_key>
<private_key>
<label>Private key</label>
<sort_order>2</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
</private_key>
</fields>
</keys>
</groups>
</recaptcha>
</sections>
</config>require_once('recaptcha/recaptchalib.php');
Magento. Пишем свой модуль. Добавляем CAPTCHA и дополнительные поля в регистрацию