Version Notes
Tested from magento expert. Working fine
Download this release
Release Info
Developer | BluethinkIT |
Extension | cookiesbasedregistration |
Version | 0.1.0 |
Comparing to | |
See all releases |
Version 0.1.0
- app/code/local/Bluethink/Loadregistration/Helper/Data.php +6 -0
- app/code/local/Bluethink/Loadregistration/controllers/AccountController.php +69 -0
- app/code/local/Bluethink/Loadregistration/etc/config.xml +60 -0
- app/code/local/Bluethink/Loadregistration/etc/system.xml +59 -0
- app/design/frontend/base/default/layout/loadregistration.xml +9 -0
- app/design/frontend/base/default/template/loadregister/popup.phtml +166 -0
- app/etc/modules/Bluethink_Loadregistration.xml +10 -0
- package.xml +20 -0
- skin/frontend/base/default/popup/css/popup.css +118 -0
- skin/frontend/base/default/popup/images/cross_icon.png +0 -0
- skin/frontend/base/default/popup/images/loader.png +0 -0
- skin/frontend/base/default/popup/images/no_image.jpg +0 -0
- skin/frontend/base/default/popup/images/reg_message.png +0 -0
app/code/local/Bluethink/Loadregistration/Helper/Data.php
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Bluethink_Loadregistration_Helper_Data extends Mage_Core_Helper_Abstract
|
4 |
+
{
|
5 |
+
|
6 |
+
}
|
app/code/local/Bluethink/Loadregistration/controllers/AccountController.php
ADDED
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
include_once("Mage/Customer/controllers/AccountController.php");
|
3 |
+
class Bluethink_Loadregistration_AccountController extends Mage_Customer_AccountController
|
4 |
+
{
|
5 |
+
public function createPostAction() {
|
6 |
+
/** @var $session Mage_Customer_Model_Session */
|
7 |
+
$params = $this->getRequest()->getParams();
|
8 |
+
// echo $params['isAjax'].'<pre>'; var_dump($params);die;
|
9 |
+
if($params['isAjax']== 1){
|
10 |
+
$response=array();
|
11 |
+
$session = $this->_getSession();
|
12 |
+
if ($session->isLoggedIn()) {
|
13 |
+
$this->_redirect('*/*/');
|
14 |
+
return;
|
15 |
+
}
|
16 |
+
$session->setEscapeMessages(true); // prevent XSS injection in user input
|
17 |
+
|
18 |
+
|
19 |
+
|
20 |
+
//$customer = $this->_getCustomer();
|
21 |
+
$customer = Mage::getModel("customer/customer");
|
22 |
+
$websiteId = Mage::app()->getWebsite()->getId();
|
23 |
+
$store = Mage::app()->getStore();
|
24 |
+
$customer->setWebsiteId(Mage::app()->getWebsite()->getId());
|
25 |
+
$customer->loadByEmail($params['email']);
|
26 |
+
if($customer->getId()) {
|
27 |
+
$response['msg']= 'Email already exists';
|
28 |
+
$this->getResponse()->setBody(Mage::helper('core')->jsonEncode($response));
|
29 |
+
return;
|
30 |
+
|
31 |
+
}
|
32 |
+
|
33 |
+
$customer->setWebsiteId($websiteId)
|
34 |
+
->setStore($store)
|
35 |
+
->setFirstname($params['firstname'])
|
36 |
+
->setLastname($params['lastname'])
|
37 |
+
->setEmail($params['email'])
|
38 |
+
->setPassword($params['password1']);
|
39 |
+
|
40 |
+
// Try create customer
|
41 |
+
try {
|
42 |
+
$customer->save();
|
43 |
+
$customer->setConfirmation(null);
|
44 |
+
$customer->save();
|
45 |
+
$response['msg']='success';
|
46 |
+
$customAddress = Mage::getModel('customer/address')
|
47 |
+
->setCustomerId($customer->getId())
|
48 |
+
->setTelephone($params['mobile']);
|
49 |
+
$customAddress->save();
|
50 |
+
$storeId = $customer->getSendemailStoreId();
|
51 |
+
$customer->sendNewAccountEmail('registered', '', $storeId);
|
52 |
+
|
53 |
+
Mage::getSingleton('customer/session')->loginById($customer->getId());
|
54 |
+
|
55 |
+
|
56 |
+
$this->getResponse()->setBody(Mage::helper('core')->jsonEncode($response));
|
57 |
+
return;
|
58 |
+
} catch (Exception $e) {
|
59 |
+
$response['msg']='error';
|
60 |
+
$this->getResponse()->setBody(Mage::helper('core')->jsonEncode($response));
|
61 |
+
return;
|
62 |
+
}
|
63 |
+
}
|
64 |
+
else{
|
65 |
+
return parent::createPostAction();
|
66 |
+
}
|
67 |
+
}
|
68 |
+
|
69 |
+
}
|
app/code/local/Bluethink/Loadregistration/etc/config.xml
ADDED
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Bluethink_Loadregistration>
|
5 |
+
<version>1.0</version>
|
6 |
+
</Bluethink_Loadregistration>
|
7 |
+
</modules>
|
8 |
+
<frontend>
|
9 |
+
<routers>
|
10 |
+
<customer>
|
11 |
+
<args>
|
12 |
+
<modules>
|
13 |
+
<Bluethink_Loadregistration before="Mage_Customer">Bluethink_Loadregistration</Bluethink_Loadregistration>
|
14 |
+
</modules>
|
15 |
+
</args>
|
16 |
+
</customer>
|
17 |
+
</routers>
|
18 |
+
<layout>
|
19 |
+
<updates>
|
20 |
+
<loadregistration>
|
21 |
+
<file>loadregistration.xml</file>
|
22 |
+
</loadregistration>
|
23 |
+
</updates>
|
24 |
+
</layout>
|
25 |
+
</frontend>
|
26 |
+
<global>
|
27 |
+
|
28 |
+
<helpers>
|
29 |
+
<loadregistration>
|
30 |
+
<class>Bluethink_Loadregistration_Helper</class>
|
31 |
+
</loadregistration>
|
32 |
+
</helpers>
|
33 |
+
|
34 |
+
</global>
|
35 |
+
|
36 |
+
<adminhtml>
|
37 |
+
<acl>
|
38 |
+
<resources>
|
39 |
+
<all>
|
40 |
+
<title>Allow Everything</title>
|
41 |
+
</all>
|
42 |
+
<admin>
|
43 |
+
<children>
|
44 |
+
<system>
|
45 |
+
<children>
|
46 |
+
<config>
|
47 |
+
<children>
|
48 |
+
<bluethink>
|
49 |
+
<title>bluethink - All</title>
|
50 |
+
</bluethink>
|
51 |
+
</children>
|
52 |
+
</config>
|
53 |
+
</children>
|
54 |
+
</system>
|
55 |
+
</children>
|
56 |
+
</admin>
|
57 |
+
</resources>
|
58 |
+
</acl>
|
59 |
+
</adminhtml>
|
60 |
+
</config>
|
app/code/local/Bluethink/Loadregistration/etc/system.xml
ADDED
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<config>
|
3 |
+
<tabs>
|
4 |
+
<bluethink translate="label" module="loadregistration">
|
5 |
+
<label>Bluethink Extensions</label>
|
6 |
+
<sort_order>100</sort_order>
|
7 |
+
</bluethink>
|
8 |
+
</tabs>
|
9 |
+
<sections>
|
10 |
+
<bluethink translate="label" module="loadregistration">
|
11 |
+
<label>Cookies based registration</label>
|
12 |
+
<tab>bluethink</tab>
|
13 |
+
<sort_order>1000</sort_order>
|
14 |
+
<show_in_default>1</show_in_default>
|
15 |
+
<show_in_website>1</show_in_website>
|
16 |
+
<show_in_store>1</show_in_store>
|
17 |
+
<groups>
|
18 |
+
<bluethink_group translate="label" module="loadregistration">
|
19 |
+
<label>Bluethink cookies based registration setting</label>
|
20 |
+
<frontend_type>text</frontend_type>
|
21 |
+
<sort_order>1000</sort_order>
|
22 |
+
<show_in_default>1</show_in_default>
|
23 |
+
<show_in_website>1</show_in_website>
|
24 |
+
<show_in_store>1</show_in_store>
|
25 |
+
<fields>
|
26 |
+
|
27 |
+
|
28 |
+
<bluethink_select translate="label">
|
29 |
+
<label>Enable/Disable </label>
|
30 |
+
<comment>Select Yes/No values</comment>
|
31 |
+
<frontend_type>select</frontend_type>
|
32 |
+
<sort_order>90</sort_order>
|
33 |
+
<show_in_default>1</show_in_default>
|
34 |
+
<show_in_website>1</show_in_website>
|
35 |
+
<show_in_store>1</show_in_store>
|
36 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
37 |
+
</bluethink_select>
|
38 |
+
|
39 |
+
<logo translate="label comment">
|
40 |
+
<label>Logo/ Popup image</label>
|
41 |
+
<comment>Allowed file types: jpeg, gif, png.</comment>
|
42 |
+
<frontend_type>image</frontend_type>
|
43 |
+
<backend_model>adminhtml/system_config_backend_image</backend_model>
|
44 |
+
<upload_dir config="system/filesystem/media" scope_info="1">theme</upload_dir>
|
45 |
+
<base_url type="media" scope_info="1">theme</base_url>
|
46 |
+
<sort_order>1</sort_order>
|
47 |
+
<show_in_default>1</show_in_default>
|
48 |
+
<show_in_website>1</show_in_website>
|
49 |
+
<show_in_store>1</show_in_store>
|
50 |
+
</logo>
|
51 |
+
|
52 |
+
|
53 |
+
|
54 |
+
</fields>
|
55 |
+
</bluethink_group>
|
56 |
+
</groups>
|
57 |
+
</bluethink>
|
58 |
+
</sections>
|
59 |
+
</config>
|
app/design/frontend/base/default/layout/loadregistration.xml
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<layout version="0.1.0">
|
3 |
+
<default>
|
4 |
+
<reference name='before_body_end'>
|
5 |
+
<block type="core/template" name="loadregistration" template="loadregister/popup.phtml"/>
|
6 |
+
</reference>
|
7 |
+
|
8 |
+
</default>
|
9 |
+
</layout>
|
app/design/frontend/base/default/template/loadregister/popup.phtml
ADDED
@@ -0,0 +1,166 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php if(!Mage::getSingleton('customer/session')->isLoggedIn()){
|
2 |
+
$title=Mage::getStoreConfig('bluethink/bluethink_group/bluethink_input',Mage::app()->getStore());
|
3 |
+
$flag=Mage::getStoreConfig('bluethink/bluethink_group/bluethink_select',Mage::app()->getStore());
|
4 |
+
$contents=Mage::getStoreConfig('bluethink/bluethink_group/bluethink_textarea',Mage::app()->getStore());
|
5 |
+
$alphabet = "abcdefghijklmnopqrstuwxyzABCDEFGHIJKLMNOPQRSTUWXYZ0123456789";
|
6 |
+
$pass = ''; //password is a string
|
7 |
+
$alphaLength = strlen($alphabet) - 1; //put the length -1 in cache
|
8 |
+
for ($i = 0; $i <8; $i++) {
|
9 |
+
$n = mt_rand(0, $alphaLength);
|
10 |
+
$pass = $pass.$alphabet[$n]; //append a random character
|
11 |
+
}
|
12 |
+
//echo $fldddag;
|
13 |
+
|
14 |
+
if($flag){?>
|
15 |
+
|
16 |
+
<div id="popForm" >
|
17 |
+
<link rel="stylesheet" type="text/css" href="<?php echo $this->getSkinUrl('popup/css/popup.css');?>"/>
|
18 |
+
<div class="popup_container sign_in_modal" id="transparent_bg">
|
19 |
+
<div style="width:660px;" class="overlay-inner-bg" id="content">
|
20 |
+
<a href="javascript:void(0)" onclick="closeSignup()" class="cross_popup"> </a>
|
21 |
+
<div class="reg_msg">
|
22 |
+
<?php $imagePath = Mage::getStoreConfig('bluethink/bluethink_group/logo') ; ?>
|
23 |
+
<?php if(isset($imagePath) and $imagePath!=""){ ?>
|
24 |
+
<img width="288px" height="171px" class="reg_msg_img" src="<?php echo Mage::getBaseUrl('media') . 'theme/'.Mage::getStoreConfig('bluethink/bluethink_group/logo'); ?>">
|
25 |
+
<?php }else{ ?>
|
26 |
+
<img width="288px" height="171px" class="reg_msg_img" src="<?php echo $this->getSkinUrl('popup/images/no_image.jpg'); ?>">
|
27 |
+
<?php } ?>
|
28 |
+
</div>
|
29 |
+
|
30 |
+
<div style="width:300px;" class="left_block left_block_new">
|
31 |
+
<h2>Register</h2>
|
32 |
+
<div class="sign_signup_form">
|
33 |
+
<form rel="signupBox" action="" method="post" id="signup-form" name="myFrom">
|
34 |
+
<input type="hidden" value="" name="csrf_token">
|
35 |
+
<span style="color:#990000; font-size:14px;"></span>
|
36 |
+
<div class="error" id="error_msg"></div>
|
37 |
+
<ul>
|
38 |
+
<li>
|
39 |
+
<input type="text" autocomplete="off" maxlength="100" id="email" name="email" value="" placeholder="Email ID - eg: bluethink@domain.com" class="required-entry validate-email"><br>
|
40 |
+
<div style="display:none" class="validation-advice" id="emailError">Please enter a valid email address. For example bluethink@domain.com</div>
|
41 |
+
<span id="email" class="errormsz_email"></span>
|
42 |
+
</li>
|
43 |
+
<li>
|
44 |
+
<div class="form_field_left">
|
45 |
+
<input type="text" autocomplete="off" id="firstname" maxlength="35" name="firstname" value="" placeholder="First Name" class="required-entry">
|
46 |
+
<span id="firstname" class="error_msg"></span>
|
47 |
+
<div style="display:none" class="validation-advice" id="fnameError">Please use letters only (a-z or A-Z) in this field.</div>
|
48 |
+
</div>
|
49 |
+
<div class="form_field_right">
|
50 |
+
<input type="text" autocomplete="off" id="lastname" maxlength="35" name="lastname" value="" placeholder="Last Name" class="required-entry">
|
51 |
+
<span id="lastname" class="error_msg"></span>
|
52 |
+
<div style="display:none" class="validation-advice" id="lnameError">Please use letters only (a-z or A-Z) in this field.</div>
|
53 |
+
</div>
|
54 |
+
<div class="clearfix"></div>
|
55 |
+
</li>
|
56 |
+
<li>
|
57 |
+
<input type="text" autocomplete="off" name="mobile" id="mobile" class="login_input validate-number required-entry" value="" placeholder="Mobile - eg: 9800000000" pattern="[0-9]*" maxlength="10"><br>
|
58 |
+
<span id="mobile" class="error_msg"></span>
|
59 |
+
<div style="display:none" class="validation-advice" id="mobileError">Enter correct mobile number (Eg:9800000000)</div>
|
60 |
+
<div class="clearfix"></div>
|
61 |
+
</li>
|
62 |
+
<li>
|
63 |
+
<div class="form_field_left">
|
64 |
+
<input type="hidden" autocomplete="off" maxlength="30" id="password1" name="password1" value="<?php echo $pass;?>">
|
65 |
+
</div>
|
66 |
+
<input type="hidden" autocomplete="off" maxlength="30" id="isAjax" name="isAjax" value="1">
|
67 |
+
|
68 |
+
<div class="clearfix"></div>
|
69 |
+
</li>
|
70 |
+
|
71 |
+
<li>
|
72 |
+
<!-- msz alredy email exist -->
|
73 |
+
<span id ="alertMsz" class="errormsz_email"></span>
|
74 |
+
<!-- end -->
|
75 |
+
<div id="Ajaxloader" style="display:none"><img src="<?php echo $this->getSkinUrl('popup/images/loader.png')?>"/></div>
|
76 |
+
<div class="reg_trems">* T & C Apply</div>
|
77 |
+
<input type="submit" value="Save" name="register" class="grey-btn" id="formSubmit">
|
78 |
+
</li>
|
79 |
+
</ul>
|
80 |
+
</form>
|
81 |
+
</div>
|
82 |
+
<div class="clearfix"></div>
|
83 |
+
|
84 |
+
</div>
|
85 |
+
</div>
|
86 |
+
</div>
|
87 |
+
</div>
|
88 |
+
<script src="//code.jquery.com/jquery-1.11.2.min.js"></script>
|
89 |
+
<script type="text/javascript">
|
90 |
+
jQuery.noConflict();
|
91 |
+
var customForm = new VarienForm('signup-form');
|
92 |
+
</script>
|
93 |
+
|
94 |
+
<script type="text/javascript">
|
95 |
+
jQuery.noConflict();
|
96 |
+
function closeSignup(){
|
97 |
+
jQuery('#transparent_bg').hide();
|
98 |
+
|
99 |
+
}
|
100 |
+
</script>
|
101 |
+
|
102 |
+
<?php
|
103 |
+
$name = 'popupcookies';
|
104 |
+
//$value = 'yes';
|
105 |
+
// $getCookies = "";
|
106 |
+
$getCookies = Mage::getModel('core/cookie')->get($name);
|
107 |
+
$getCookies = "";
|
108 |
+
if($getCookies==""){
|
109 |
+
|
110 |
+
?>
|
111 |
+
<script>
|
112 |
+
jQuery.noConflict();
|
113 |
+
jQuery(document).ready(function() {
|
114 |
+
jQuery("#popForm").show();
|
115 |
+
|
116 |
+
});
|
117 |
+
</script>
|
118 |
+
<?php
|
119 |
+
Mage::getModel('core/cookie')->set($name, $value);
|
120 |
+
}
|
121 |
+
?>
|
122 |
+
|
123 |
+
<script>
|
124 |
+
jQuery.noConflict();
|
125 |
+
jQuery('#signup-form').submit(function(e){
|
126 |
+
e.preventDefault();
|
127 |
+
if (customForm.validator && customForm.validator.validate()){
|
128 |
+
jQuery("#Ajaxloader").show();
|
129 |
+
|
130 |
+
jQuery.ajax({
|
131 |
+
//jQuery("#signup-form" ).serialize() ;
|
132 |
+
type: "POST",
|
133 |
+
url: "<?php echo Mage::getUrl('customer/account/createpost/'); ?>", // hit action
|
134 |
+
data : jQuery("#signup-form" ).serialize(),
|
135 |
+
cache: false,
|
136 |
+
success : function(msg){
|
137 |
+
var data = jQuery.parseJSON(msg);
|
138 |
+
jQuery('#alertMsz').html(data.msg);
|
139 |
+
|
140 |
+
if(data.msg=='success'){
|
141 |
+
jQuery("#Ajaxloader").hide();
|
142 |
+
window.location = '<?php echo Mage::getBaseUrl(); ?>';
|
143 |
+
}
|
144 |
+
else if(data.msg=='Email already exists'){
|
145 |
+
jQuery("#Ajaxloader").hide();
|
146 |
+
jQuery('.already').html('Email Id already exist');
|
147 |
+
return false;
|
148 |
+
}
|
149 |
+
|
150 |
+
else{
|
151 |
+
jQuery('.already').html('Cannot Create Account');
|
152 |
+
return false;
|
153 |
+
|
154 |
+
}
|
155 |
+
|
156 |
+
}
|
157 |
+
|
158 |
+
|
159 |
+
});
|
160 |
+
}
|
161 |
+
|
162 |
+
});
|
163 |
+
</script>
|
164 |
+
<?php
|
165 |
+
}
|
166 |
+
}?>
|
app/etc/modules/Bluethink_Loadregistration.xml
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Bluethink_Loadregistration>
|
5 |
+
<active>true</active>
|
6 |
+
<codePool>local</codePool>
|
7 |
+
</Bluethink_Loadregistration>
|
8 |
+
</modules>
|
9 |
+
|
10 |
+
</config>
|
package.xml
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<package>
|
3 |
+
<name>cookiesbasedregistration</name>
|
4 |
+
<version>0.1.0</version>
|
5 |
+
<stability>stable</stability>
|
6 |
+
<license uri="http://opensource.org/licenses/osl-3.0.php">opensource</license>
|
7 |
+
<channel>community</channel>
|
8 |
+
<extends/>
|
9 |
+
<summary>Cookies based registration for guest user, pop up window will open for registration </summary>
|
10 |
+
<description>Cookies based registration will work when customer first time open the website , then pop up window will open and ask to customer for registration . customer need to fill only email, first name , last name and mobile number.
|
11 |
+

|
12 |
+
After registration customer will get welcome message and random password. this popup window based on cookies. if user will delete cookies then agai he will get popup window. </description>
|
13 |
+
<notes>Tested from magento expert. Working fine</notes>
|
14 |
+
<authors><author><name>BluethinkIT</name><user>Bluethink</user><email>pramodgupta.bt@gmail.com</email></author></authors>
|
15 |
+
<date>2015-02-13</date>
|
16 |
+
<time>13:12:57</time>
|
17 |
+
<contents><target name="mageetc"><dir name="modules"><file name="Bluethink_Loadregistration.xml" hash="d7310502ff1d848dfb1583eb4824bc99"/></dir></target><target name="magelocal"><dir name="Bluethink"><dir name="Loadregistration"><dir name="Helper"><file name="Data.php" hash="6815ab949df22bb2fa5067854dbfefd3"/></dir><dir name="controllers"><file name="AccountController.php" hash="782740fad6eebf85a790452394617a27"/></dir><dir name="etc"><file name="config.xml" hash="bc9fa678446b64700188d3dd88d63c19"/><file name="system.xml" hash="e175f4381be4c8630a8691f70cf25f4b"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="loadregistration.xml" hash="b7188177bf6beacd990603db5efa2173"/></dir><dir name="template"><dir name="loadregister"><file name="popup.phtml" hash="e920d277c173e1885782245cd2107601"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="popup"><dir name="css"><file name="popup.css" hash="969a2705ef9a30278e4d91c9e24b5ed7"/></dir><dir name="images"><file name="cross_icon.png" hash="42e56d1ae57aaa6794f9ccef21a1fa30"/><file name="loader.png" hash="5fc9514cf8b504709ddca5327c76d524"/><file name="no_image.jpg" hash="11cfb786997ad7a4335c762e3159ed69"/><file name="reg_message.png" hash="6bca288ef61ff5be3eadd59e87850182"/></dir></dir></dir></dir></dir></target></contents>
|
18 |
+
<compatible/>
|
19 |
+
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
20 |
+
</package>
|
skin/frontend/base/default/popup/css/popup.css
ADDED
@@ -0,0 +1,118 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
@charset "utf-8";
|
2 |
+
/* CSS Document */
|
3 |
+
|
4 |
+
*{margin:0px; padding:0px; }
|
5 |
+
|
6 |
+
.capitalize { text-transform:capitalize !important; color:#000 !important;}
|
7 |
+
a{text-decoration:none; color:#4e4e4e;}
|
8 |
+
/*a:hover {color:#ec1e20; text-decoration:underline;}*/
|
9 |
+
ul{ list-style-type:none; }
|
10 |
+
.clearfix {clear:both; }
|
11 |
+
/*.red{color:#ec1e20}*/
|
12 |
+
/*.green {color: #019E0F;}*/
|
13 |
+
.last { margin-right:0px !important;}
|
14 |
+
.percent-off {font-size:11px; color:#ec1e20;}
|
15 |
+
.fright {float:right;}
|
16 |
+
.top10{margin-top:10px;}
|
17 |
+
input, textarea, select { border: 1px solid #CFCFCF; color: #6d6d6d; padding:8px; outline:none; background:#ffffff; font-family:calibri;}
|
18 |
+
|
19 |
+
|
20 |
+
.popup_container {
|
21 |
+
background: none repeat scroll 0 0 #ffffff;
|
22 |
+
left: 20%;
|
23 |
+
margin-left: 0;
|
24 |
+
margin-top: 0;
|
25 |
+
top: 20%;
|
26 |
+
z-index: 99999;
|
27 |
+
position: fixed;
|
28 |
+
}
|
29 |
+
.popup_container h2{border: medium none; color: #6C6C6C; margin: 0; text-align: left; font-size: 24px; font-weight: normal; line-height: 30px; padding-bottom: 8px; width: 100%;}
|
30 |
+
.popup_container .overlay-inner-bg {float: left; padding: 20px; width: 550px;}
|
31 |
+
.popup_container .overlay-inner-bg .heading { border-bottom: 1px solid #E2E2E3; color: #000000; font-size: 22px; font-weight: normal; line-height: 30px; margin-bottom: 20px; padding-bottom: 8px; text-align: left; width: 100%; text-transform:capitalize;}
|
32 |
+
.popup_container .cross, .cod-cross {height: 23px; position: absolute; right: 10px; top: 10px; width: 23px; background:url("cross_icon.png")}
|
33 |
+
|
34 |
+
.popup_container .left_block {padding: 0 25px 0 0; min-height:300px;margin-right:10px; font-size:13px; color:#666666;}
|
35 |
+
.popup_container .left_block .sign_signup_form ul li { margin-bottom:10px;}
|
36 |
+
.popup_container .left_block .sign_signup_form ul li span { margin-top:5px; display:block; font-size:12px; font-family:calibri, Arial, Helvetica, sans-serif;}
|
37 |
+
.popup_container .left_block .sign_signup_form ul li .form_field_left{ float:left; margin-right:10px; width:130px; margin-left: 4px;}
|
38 |
+
.popup_container .left_block .sign_signup_form ul li .form_field_right{ float:left; width:130px;}
|
39 |
+
.popup_container .left_block .sign_signup_form ul li input[type="text"], input[type="password"], select { width:100%; box-sizing:border-box; -moz-box-sizing:border-box; -webkit-box-sizing:border-box; -o-box-sizing:border-box; padding:8px; font-family:calibri, Arial, Helvetica, sans-serif; font-size:12px;}
|
40 |
+
.popup_container .left_block .sign_signup_form ul li input[type="radio"], input[type="checkbox"]{ vertical-align:middle; margin-top:-1px;}
|
41 |
+
.popup_container .right_block {width:243px; float:left; font-size:13px; color:#666666;}
|
42 |
+
.popup_container .left_block .sign_signup_form ul li a.forgot-password { color: #767676; float: right; font-size: 12px; text-decoration: underline; text-transform: capitalize; margin-top:3px;}
|
43 |
+
.popup_container .left_block .sign_signup_form ul li a.forgot-password:hover { color:#ec1e20;}
|
44 |
+
.popup_container .left_block .sign_signup_form button, .sign_signup_form input[type="submit"] {background: none repeat scroll 0 0 #58a809; color: #FFFFFF; cursor: pointer; margin: 10px 0 0px; padding: 7px 0; text-align: center; width: 100%; font-size:18px;}
|
45 |
+
|
46 |
+
|
47 |
+
.popup_container .right_block .sign_signup_form ul li input[type="text"], input[type="password"], select { width:100%; box-sizing:border-box; -moz-box-sizing:border-box; -webkit-box-sizing:border-box; -o-box-sizing:border-box; padding:8px; font-size:12px;}
|
48 |
+
.popup_container .right_block .sign_signup_form ul li { margin-bottom:10px; font-size:13px; color:#666666;}
|
49 |
+
.popup_container .right_block .sign_signup_form ul li span { margin-top:5px; display:block; font-size:12px;}
|
50 |
+
.popup_container .right_block .sign_signup_form ul li .form_field_left{ float:left; margin-right:10px; width:130px;}
|
51 |
+
.popup_container .right_block .sign_signup_form ul li .form_field_right{ float:left; width:130px;}
|
52 |
+
|
53 |
+
|
54 |
+
.popup_container.sign_in_modal { border:1px solid #000000; background:#fffff;}
|
55 |
+
.popup_container.sign_in_modal .overlay-inner-bg { margin:12px; position:relative;}
|
56 |
+
.popup_container.sign_in_modal .overlay-inner-bg .left_block { margin:0 auto; padding:0px; width:270px; margin-bottom:20px;}
|
57 |
+
.popup_container.sign_in_modal .overlay-inner-bg .left_block .heading { text-align:center; font-size:12px; line-height:18px; font-weight:bold; border-bottom:0px;}
|
58 |
+
.popup_container.sign_in_modal .overlay-inner-bg .left_block .heading .login_subheading { font-size:22px; font-family:calibri, Arial, Helvetica, sans-serif; color:#494949; font-weight:normal; margin-top:20px;}
|
59 |
+
.popup_container.sign_in_modal .overlay-inner-bg .left_block ul li .forgot_password { margin:0 auto;}
|
60 |
+
.popup_container.sign_in_modal .overlay-inner-bg .left_block ul li .forgot_password a.forgot-password { margin-top:0px;}
|
61 |
+
.popup_container.sign_in_modal .overlay-inner-bg .left_block ul li { margin-bottom:6px;}
|
62 |
+
.popup_container.sign_in_modal .overlay-inner-bg .left_block ul li label { color:#808185; margin-bottom:3px;}.popup_container.sign_in_modal .overlay-inner-bg .left_block .no_account { text-align:center; margin-top:10px;}
|
63 |
+
|
64 |
+
.popup_container.sign_in_modal .overlay-inner-bg .left_block_new { float:left; padding-left: 20px; border-left: 1px solid #cececf;}
|
65 |
+
.popup_container.sign_in_modal .overlay-inner-bg .reg_msg {float:left; width:297px; text-align:center; margin-right:10px; }
|
66 |
+
.popup_container.sign_in_modal .overlay-inner-bg .reg_msg .reg_msg_img {margin-left:-20px;}
|
67 |
+
|
68 |
+
.reg_msg img{
|
69 |
+
width:252px;
|
70 |
+
height:280px;}
|
71 |
+
|
72 |
+
|
73 |
+
/* Registrations Terms */
|
74 |
+
|
75 |
+
.reg_trems { position: absolute; bottom: 10px; right: 10px; font-size: 11px;}
|
76 |
+
.reg_trems a {text-decoration: underline;}
|
77 |
+
.reg_trems.mreg_true {left:20px; bottom:5px;}
|
78 |
+
|
79 |
+
/*POPUP FORM CSS*/
|
80 |
+
|
81 |
+
.errormsz_email{
|
82 |
+
color: #F43D3D;
|
83 |
+
bottom: 187px;
|
84 |
+
color: #f43d3d;
|
85 |
+
left: -88px;
|
86 |
+
position: relative;
|
87 |
+
|
88 |
+
}
|
89 |
+
|
90 |
+
.already {
|
91 |
+
color: #EB340A;
|
92 |
+
}
|
93 |
+
|
94 |
+
#content > .cross_popup{
|
95 |
+
|
96 |
+
color: #161414;
|
97 |
+
margin-left: 20px;
|
98 |
+
position: absolute;
|
99 |
+
top: -9px;
|
100 |
+
background: url(../images/cross_icon.png);
|
101 |
+
width: 20px;
|
102 |
+
height: 24px;
|
103 |
+
right:0px ;
|
104 |
+
}
|
105 |
+
|
106 |
+
.reg_msg_new{
|
107 |
+
|
108 |
+
color: gray;
|
109 |
+
float: left;
|
110 |
+
margin-right: 287px;
|
111 |
+
margin-top: -375px;
|
112 |
+
width: 119px;
|
113 |
+
height: 0 auto;
|
114 |
+
font-size: 12px;
|
115 |
+
|
116 |
+
|
117 |
+
|
118 |
+
}
|
skin/frontend/base/default/popup/images/cross_icon.png
ADDED
Binary file
|
skin/frontend/base/default/popup/images/loader.png
ADDED
Binary file
|
skin/frontend/base/default/popup/images/no_image.jpg
ADDED
Binary file
|
skin/frontend/base/default/popup/images/reg_message.png
ADDED
Binary file
|