0800 999 999 7 info@cybersiara.com

CyberSiara™ | Opencart

Open Cart Integration Guideline

1. Download SiaraShield Plugin here

2. Go to Admin Panel -> Extensions -> Installer.

3. Upload SiaraShield.ocmod.zip.

4. Go to Extensions-> Extensions Then choose the extension type “Modules”.

5. Click on Green Plus button to install SiaraShield extension.

6. After click on edit Button.

7. Add your Public key, Private key, Form Class ID, Submit Class ID and Enable Status then click the Save Changes  button.

8. Open this default theme page.

<script src="catalog/view/javascript/siarashield.js" type="text/javascript"></script>

1. Create method for initialized captcha on load.

        <script>
            export default{
                    name:'PageName',
                    components:{...},
                    mounted() {this.mycybersiara()},
                    methods(){
                            mycybersiara(){
                            var PublicKey = 'TEST-CYBERSIARA';
                         InitCaptcha('PublicKey');
                         $('.CaptchaSubmit').click(function (){
                    if(CheckCaptcha()){
                axios.get('https://embed.mycybersiara.com/api/validate-token',{
                    headers:{ key: 'TEST-CYBERSIARA', Authorization: `Bearer ${CyberSiaraToken}' }
                             }).then((res) =>{
                    // Please write your submit button click event function here //
                            })
                    }
                            });
                        }
                    }...
                }
                                
</script>