-
AuthorPosts
-
matthewgillard Friend
matthewgillard
- Join date:
- May 2014
- Posts:
- 26
- Downloads:
- 0
- Uploads:
- 11
- Thanks:
- 8
- Thanked:
- 2 times in 1 posts
June 4, 2014 at 11:21 am #198476Hi,
I have mijoshop all in one login module to display in sidebar-1
I would like to style it the same as joomla login module
See screen shot
How can I do this with css?
Thanks
Matt
Nazario A FriendNazario A
- Join date:
- April 2013
- Posts:
- 1183
- Downloads:
- 0
- Uploads:
- 406
- Thanks:
- 91
- Thanked:
- 284 times in 263 posts
June 5, 2014 at 5:55 am #537848Please open file: /components/com_mijoshop/opencart/catalog/view/theme/bookshop/template/account/login.tpl then find and replace this code:
<div class="control-group">
<label class="col-sm-3 control-label"><?php echo $entry_email; ?></label>
<div class="col-sm-8">
<input type="text" name="email" value="<?php echo $email; ?>" class="form-control" placeholder="Email Address">
</div>
</div>
<div class="control-group">
<label class="col-sm-3 control-label"><?php echo $entry_password; ?></label>
<div class="col-sm-8">
<input type="password" name="password" value="<?php echo $password; ?>" class="form-control">
</div>
</div>With:
<div class="control-group">
<label class="col-sm-3 control-label"><?php echo $entry_email; ?></label>
<div class="col-sm-8">
<input type="text" name="email" value="<?php echo $email; ?>" class="form-control" placeholder="Email Address">
</div>
</div>
<div class="control-group">
<label class="col-sm-3 control-label"><?php echo $entry_password; ?></label>
<div class="col-sm-8">
<input type="password" name="password" value="<?php echo $password; ?>" class="form-control" placeholder="Password">
</div>
</div>Here is result: http://prntscr.com/3pt8zr
Hope this helps
matthewgillard Friendmatthewgillard
- Join date:
- May 2014
- Posts:
- 26
- Downloads:
- 0
- Uploads:
- 11
- Thanks:
- 8
- Thanked:
- 2 times in 1 posts
June 5, 2014 at 11:49 am #537879I will give it a try. Is there a way I can also get the icons????
Nazario A FriendNazario A
- Join date:
- April 2013
- Posts:
- 1183
- Downloads:
- 0
- Uploads:
- 406
- Thanks:
- 91
- Thanked:
- 284 times in 263 posts
June 6, 2014 at 3:41 am #537963@ matthewgillard,
You can try my suggestion below:
– Open the file: /components/com_mijoshop/opencart/catalog/view/theme/bookshop/template/account/login.tpl then find and replace this code:<div class="control-group">
<label class="col-sm-3 control-label"><?php echo $entry_email; ?></label>
<div class="col-sm-8">
<input type="text" name="email" value="<?php echo $email; ?>" class="form-control" placeholder="Email Address">
</div>
</div>
<div class="control-group">
<label class="col-sm-3 control-label"><?php echo $entry_password; ?></label>
<div class="col-sm-8">
<input type="password" name="password" value="<?php echo $password; ?>" class="form-control" placeholder="Password">
</div>
</div>With:
<div class="control-group">
<label class="control-label"></label>
<span class="input-group-addon">
<i class="fa fa-user tip" title="<?php echo JText::_('MOD_LOGIN_VALUE_USERNAME') ?>"></i>
</span>
<div class="col-sm-8 login-custom">
<input type="text" name="email" value="<?php echo $email; ?>" class="form-control" placeholder="Email Address">
</div>
</div>
<div class="control-group">
<label class="control-label"></label>
<span class="input-group-addon">
<i class="fa fa-lock tip" title="<?php echo JText::_('JGLOBAL_PASSWORD') ?>"></i>
</span>
<div class="col-sm-8 login-custom">
<input type="password" name="password" value="<?php echo $password; ?>" class="form-control" placeholder="Password">
</div>
</div>– Create a new file called “custom.css” in the /templates/your_template_name/css/ path, then add this rule:
.login-content .control-group .input-group-addon {
float: left;
width: 35px;
height: 34px;
font-size: 14px;
}
.login-content .control-group .login-custom{
padding: 0;
}
.form-horizontal .control-group .control-label {
width: 50px;
}
Here is result: http://prntscr.com/3q3t6x
Hope this is helpful to you.
matthewgillard Friendmatthewgillard
- Join date:
- May 2014
- Posts:
- 26
- Downloads:
- 0
- Uploads:
- 11
- Thanks:
- 8
- Thanked:
- 2 times in 1 posts
June 10, 2014 at 1:47 am #538403OK.
I now have the styling completed on the mijoshop account page. But styling is not showing on the sidebar module login (mijoshop all in one)
So how can I now add the same to the sidebar module?
See screenshots
-
Nazario A Friend
Nazario A
- Join date:
- April 2013
- Posts:
- 1183
- Downloads:
- 0
- Uploads:
- 406
- Thanks:
- 91
- Thanked:
- 284 times in 263 posts
June 10, 2014 at 8:45 am #538440Please PM me URL, Admin and FTP credentials of your site, I will investigate further and help you out.
matthewgillard Friendmatthewgillard
- Join date:
- May 2014
- Posts:
- 26
- Downloads:
- 0
- Uploads:
- 11
- Thanks:
- 8
- Thanked:
- 2 times in 1 posts
June 10, 2014 at 10:48 am #538469OK thanks just sent it
Nazario A FriendNazario A
- Join date:
- April 2013
- Posts:
- 1183
- Downloads:
- 0
- Uploads:
- 406
- Thanks:
- 91
- Thanked:
- 284 times in 263 posts
June 12, 2014 at 10:26 am #538723Please try with this tweak:
– Copy the file “login.tpl”
From : componentscom_mijoshopopencartcatalogviewthemedefaulttemplatemodule folder
To: componentscom_mijoshopopencartcatalogviewthemebookshoptemplatemodule folder. Then open this file.– Find and replace this code:
<form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="module_login">
<b><?php echo $entry_email_address; ?></b>
<br />
<span style="text-align: left;"><input type="text" name="email" /></span>
<br /><br />
<b><?php echo $entry_password; ?></b>
<br />
<input type="password" name="password" />
<br /><br />
<div style="float:left; text-align: right;"><a onclick="jQuery('#module_login').submit();" class="<?php echo MijoShop::getButton(); ?>"><span><?php echo $button_login; ?></span></a> </div>
<div style="float:left; text-align: right;"><a href="<?php echo $this->url->link('account/register', '', 'SSL');?>" class="<?php echo MijoShop::getButton(); ?>"><span><?php echo $button_create; ?></span></a></div>
<br style="clear:both;"/>
</form>With:
<div class="control-group">
<label class="control-label"></label>
<span class="input-group-addon">
<i class="fa fa-user tip" title="<?php echo JText::_('MOD_LOGIN_VALUE_USERNAME') ?>"></i>
</span>
<div class="col-sm-8 login-custom">
<input type="text" name="email" value="<?php echo $email; ?>" class="form-control" placeholder="Email Address">
</div>
</div>
<div class="control-group">
<label class="control-label"></label>
<span class="input-group-addon">
<i class="fa fa-lock tip" title="<?php echo JText::_('JGLOBAL_PASSWORD') ?>"></i>
</span>
<div class="col-sm-8 login-custom">
<input type="password" name="password" value="<?php echo $password; ?>" class="form-control" placeholder="Password">
</div>
</div>– Then, open the file: /templates/your_template_name/css/custom.css and replace this rule:
.login-content .control-group .input-group-addon {
float: left;
width: 35px;
height: 34px;
font-size: 14px;
}
.login-content .control-group .login-custom{
padding: 0;
}
.form-horizontal .control-group .control-label {
width: 50px;
}With:
.control-group {
margin-bottom: 35px;
}
.control-group .input-group-addon {
float: left;
width: 35px;
height: 34px;
font-size: 14px;
}
.control-group .login-custom{
padding: 0;
}
.form-horizontal .control-group .control-label {
width: 50px;
}Once done, you should see: http://prntscr.com/3s1tom
Hope it helps.
1 user says Thank You to Nazario A for this useful post
matthewgillard Friendmatthewgillard
- Join date:
- May 2014
- Posts:
- 26
- Downloads:
- 0
- Uploads:
- 11
- Thanks:
- 8
- Thanked:
- 2 times in 1 posts
June 13, 2014 at 7:29 am #538806Thats perfect thank you so much for your help!
matthewgillard Friendmatthewgillard
- Join date:
- May 2014
- Posts:
- 26
- Downloads:
- 0
- Uploads:
- 11
- Thanks:
- 8
- Thanked:
- 2 times in 1 posts
June 16, 2014 at 3:55 am #538974Hi @nazario A
Back again. I thought I was OK with this one but I am missing the “Login” and “Create” button on the login module. I want it to look like this attached.
Also it does not display nice when on iPad (form field goes too long) and in mobile mode where the icons go above the field.
Nazario A FriendNazario A
- Join date:
- April 2013
- Posts:
- 1183
- Downloads:
- 0
- Uploads:
- 406
- Thanks:
- 91
- Thanked:
- 284 times in 263 posts
June 17, 2014 at 10:01 am #539193<blockquote>I thought I was OK with this one but I am missing the “Login” and “Create” button on the login module. I want it to look like this attached.</blockquote>
I just got it fixed for you. You can see in this file: componentscom_mijoshopopencartcatalogviewthe mebookshoptemplatemodulelogin.tpl
Now, it is working fine. http://prntscr.com/3tnc0c<blockquote>Also it does not display nice when on iPad (form field goes too long) and in mobile mode where the icons go above the field.</blockquote>
Was fixed also. You can see in the file: /templates/your_template_name/tpls/blocks/mainbody/one-sidebar-left.php, I replace this code:
<div id="t3-content" class="t3-content col-xs-12 col-sm-12 col-md-9 col-md-push-3">
With:
<div id="t3-content" class="t3-content col-xs-12 col-sm-8 col-sm-push-4 col-md-9 col-md-push-3">
On mobile, please open the file: /templates/your_template_name/css/custom.css then add this rule:
/* For Mobile */ @media (min-width: 320px) and (max-width: 640px) {
.control-group .col-sm-8.login-custom {
float: left;
}
}Hope this helps.
1 user says Thank You to Nazario A for this useful post
matthewgillard Friendmatthewgillard
- Join date:
- May 2014
- Posts:
- 26
- Downloads:
- 0
- Uploads:
- 11
- Thanks:
- 8
- Thanked:
- 2 times in 1 posts
June 19, 2014 at 11:32 pm #539578Hi @nazario A
Mobile is working perfectly now thank you very much.
iPads are still having the form fields overlap the sidebar module (see screen shot)
Nazario A FriendNazario A
- Join date:
- April 2013
- Posts:
- 1183
- Downloads:
- 0
- Uploads:
- 406
- Thanks:
- 91
- Thanked:
- 284 times in 263 posts
June 20, 2014 at 9:23 am #539633@matthergillard,
I just added this rule in the file: /components/com_mijoshop/opencart/catalog/view/theme/bookshop/stylesheet/stylesheet.css
/* Custom for iPad */ @media (min-width: 768px) and (max-width: 1024px) {
.box_oc input, .box_oc input, .box_oc input, .box_oc textarea {
min-width: 180px !important;
}
}It’s working fine now, please check again.
1 user says Thank You to Nazario A for this useful post
matthewgillard Friendmatthewgillard
- Join date:
- May 2014
- Posts:
- 26
- Downloads:
- 0
- Uploads:
- 11
- Thanks:
- 8
- Thanked:
- 2 times in 1 posts
June 22, 2014 at 4:17 am #539750Hi @nazario A
Thank you so much for your help on this one. iPad version looks good now as well.
I think I have one more question on this issue. I found that on the Checkout page when not logged in (ie. Returning Customer fields) that our new styling also needs to be added like you have done for us in the register and login module. (see attached screen shot)
How can I do this one as well?
Thanks
Matt
Nazario A FriendNazario A
- Join date:
- April 2013
- Posts:
- 1183
- Downloads:
- 0
- Uploads:
- 406
- Thanks:
- 91
- Thanked:
- 284 times in 263 posts
June 23, 2014 at 2:59 am #539801Hi Matt,
You can try with this tweak:
– Copy the file “login.tpl”
From : componentscom_mijoshopopencartcatalogviewthemedefaulttemplatecheckout folder
To: componentscom_mijoshopopencartcatalogviewthemebookshoptemplatecheckout folder. Then open this file.– Find and replace this code:
<b><?php echo $entry_email; ?></b><br />
<input type="text" name="email" value="" />
<br />
<br />
<b><?php echo $entry_password; ?></b><br />
<input type="password" name="password" value="" />
<br />
With:
<div class="control-group">
<label class="control-label"></label>
<span class="input-group-addon">
<i class="fa fa-user tip" title="<?php echo JText::_('MOD_LOGIN_VALUE_USERNAME') ?>"></i>
</span>
<div class="col-sm-8 login-custom">
<input type="text" name="email" value="<?php echo $email; ?>" class="form-control" placeholder="Email Address">
</div>
</div>
<div class="control-group">
<label class="control-label"></label>
<span class="input-group-addon">
<i class="fa fa-lock tip" title="<?php echo JText::_('JGLOBAL_PASSWORD') ?>"></i>
</span>
<div class="col-sm-8 login-custom">
<input type="password" name="password" value="<?php echo $password; ?>" class="form-control" placeholder="Password">
</div>
</div>– Open the file: /templates/your_template_name/css/custom.css then replace this rule:
/* For Mobile */
@media (min-width: 320px) and (max-width: 640px) {
.control-group .col-sm-8.login-custom {
float: left;
}
}
With:
/* For Mobile */
@media (min-width: 320px) and (max-width: 640px) {
.control-group .col-sm-8.login-custom {
float: left;
}
.checkout .checkout-content .left {
width: 100%;
}
.checkout .checkout-content .right {
float: right;
width: 100%;
}
.checkout .checkout-content .right .control-group {
margin-left: 20px;
}
.box_oc input, .box_oc input, .box_oc input, .box_oc textarea {
min-width: 200px;
}
}Here is result:
Let me know if this helps.
-
1 user says Thank You to Nazario A for this useful post
AuthorPostsThis topic contains 17 replies, has 2 voices, and was last updated by Nazario A 10 years, 5 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum