i am using Opencart 2.1.x
for website development and i was planning to implement Social Logins
for Registration process.
I searched on internet to implement for same. The extensions are too much priced , so i decided to develop on my own.
Here is the approach that i followed to get the things work:
Controller
catalog/controller/facebook/facebook.php
Module
catalog/controller/module/facebook.php
Language File
catalog/language/english/facebook/facebook.php
Template File
catalog/view/theme/default/template/module/facebook.php
Contents in template file are as below::
<div class="box box-fbconnect">
<div class="box-heading"><?php echo $heading_title; ?></div>
<div class="box-content">
<a class="box-fbconnect-a" href="<?php echo $facebook_url; ?>">
<?php echo $facebook_button; ?></a>
</div>
</div>
As per my understanding , i did place all files correctly. But now i am unsure how to add this FaceBook Module
in registration.tpl
file.
Any clues? please
This is not a module that you developed. A module's files are present both in catalog, as well as admin. Please refer to this link.